|
|
#1 |
|
Rehabbing
|
A map that answers many beginners questions, and is a compilation of many things I have learned over the past months....
Includes: Hero Revive Hero Restore Tree Respawn Creep Respawn Creep Waves No Ally Attack Hero/Creep Spawn Random Weather **Now requires preprocessors Last edited by emjlr3 : 03-29-2007 at 07:41 PM. |
|
|
|
| Sponsored Links - Login to hide this ad! |
|
|
|
|
#2 |
|
User
Join Date: Feb 2006
Posts: 21
|
COOL! I like stuff like this :D
__________________ |
|
|
|
|
|
#3 |
|
Rehabbing
|
wow 109 views and a response, finally...
__________________ |
|
|
|
|
|
#4 |
|
User
Join Date: Mar 2006
Posts: 28
|
Nice. This should be helpful. Too bad i didn't see it sooner. They seem awful simple though. Still, since they seem to be simple, I kinda feel like sifting through your code and see how it is better than mine noob JASS code... Or are the triggers non-JASS? (come to think of it... i should've checked the map out first before posting. but what the heck.)
__________________ |
|
|
|
|
|
#5 |
|
Rehabbing
|
triggers are JASS so hopefully a lot more optimized then GUI
__________________ |
|
|
|
|
|
#6 |
|
User
|
Guy I dowloaded it but I'm really a noob in jass code, could you tell me what i must do there?
__________________call CreateUnitAtLoc( Player(PLAYER_NEUTRAL_AGGRESSIVE), udg_Creep_Types[i], udg_Creep_Positions[i], bj_UNIT_FACING ) // It says in the editor there's a expected name, all other things are ok... please tell me, I'm going to use it on my map... I'll credit you, but I don't know what to do here.... |
|
|
|
|
|
#7 |
|
.
Respected User
|
Have you copied the variables to your map? If you haven't, then that is most likely the problem.
__________________ |
|
|
|
|
|
#8 |
|
User
|
Well I created 2 variables...
__________________Creep_Positions (Point Array) Creep_Types (Unit Type Array) like in the map, but it doesn't works... the creep doesn't spawn... Look: function Revive_Creep takes nothing returns nothing local integer i set i = GetUnitUserData(GetTriggerUnit()) call TriggerSleepAction( 2.00 ) // call CreateUnitAtLoc( Player(PLAYER_NEUTRAL_AGGRESSIVE), udg_Creep_Types[i], udg_Creep_Positions[i], bj_UNIT_FACING ) // call SetUnitUserData( GetLastCreatedUnit(), i ) endfunction //=========================================================================== function InitTrig_Creep_Revive takes nothing returns nothing set gg_trg_Creep_Revive = CreateTrigger( ) call TriggerRegisterPlayerUnitEventSimple( gg_trg_Creep_Revive, Player(PLAYER_NEUTRAL_AGGRESSIVE), EVENT_PLAYER_UNIT_DEATH ) call TriggerAddAction( gg_trg_Creep_Revive, function Revive_Creep ) endfunction Anything that I must change? For my test I put 2 seconds to spawn.... I must remove the //====? Sorry for the noob questions... I learned JASS today. |
|
|
|
|
|
#9 |
|
User
|
bahhh no one knows??
__________________ |
|
|
|
|
|
#11 |
|
User
|
Copy the variables, don't make new ones. The editor is looking for the variables in the original map
|
|
|
|
|
|
#12 |
|
User
Join Date: Feb 2006
Posts: 128
|
This doesn't make much sense to me... whats the point in a "beginner's map" that is supposed to be very basic but does everything in jass? Seems pointless to me, anyone that knows how to read jass will know how to write this stuff on their own...
__________________ |
|
|
|
|
|
#13 |
|
Rehabbing
|
Very large update, reworked almost every trigger, added many more optimizations and comments in, as well as globals for easier customization
__________________now requires preprocessors @DurotarLord, it is more of a beginners JASS map, but it is good for everyone actually, what could be benefited from JASS as far as efficiency and MUI goes, I made in JASS, the rest is in GUI |
|
|
|
|
|
#14 |
|
User
Join Date: Nov 2008
Posts: 2
|
Uhm.. What is a preprocessor? Is that JASS Newgen or similar?
|
|
|
|
|
|
#15 |
|
Free Software Terrorist
Technical Director
|
__________________ |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
|
Donate |