- Joined
- Mar 25, 2006
- Messages
- 43
this is what my code looks like at the moment
Events
Unit - A unit enters back spawn bar <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
GAME_MODE Equal to 1
Then - Actions
Unit - Create 3 Small Zombie for Player 5 (Yellow) at (Center of bar spawn mario and luigi <gen>) facing Default building facing degrees
Unit Group - Order (Units in bar spawn mario and luigi <gen>) to Attack-Move To (Center of west spawn mario and luigi <gen>)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
GAME_MODE Equal to 2
Then - Actions
Unit - Create 6 Small Zombie for Player 5 (Yellow) at (Center of bar spawn mario and luigi <gen>) facing Default building facing degrees
Unit Group - Order (Units in bar spawn mario and luigi <gen>) to Attack-Move To (Center of west spawn mario and luigi <gen>)
Else - Actions
Unit - Create 12 Small Zombie for Player 5 (Yellow) at (Center of bar spawn mario and luigi <gen>) facing Default building facing degrees
Unit Group - Order (Units in bar spawn mario and luigi <gen>) to Attack-Move To (Center of west spawn mario and luigi <gen>)
Unit Group - Order (Units in bar spawn mario and luigi <gen>) to Attack-Move To (Center of west spawn mario and luigi <gen>)
Trigger - Turn off (This trigger)
yes that is a big code for just 1 spawn but....
i wanted to use levels (easy medium hard) for my game
and well i set GAME_MODE(variable)1 for easy 2 for medium 3 for hard
i used a dialog box to vote for it in game it all works fine. but like you can see
the way i did it my code is massive and im scared its gonna start to take up lag.
and 2nd question is only about 15 units can be told to move at a time like on hard i set it to 20 spawn on one of them. and only about 15 move other than that i have to wait about 5 seconds and then tell the game to send again. so should i split it up into spawn 10 wait spawn 10??? or just add a wait and attack. but if i do that u can double activate the trigger???
plz help me thx
Events
Unit - A unit enters back spawn bar <gen>
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
GAME_MODE Equal to 1
Then - Actions
Unit - Create 3 Small Zombie for Player 5 (Yellow) at (Center of bar spawn mario and luigi <gen>) facing Default building facing degrees
Unit Group - Order (Units in bar spawn mario and luigi <gen>) to Attack-Move To (Center of west spawn mario and luigi <gen>)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
GAME_MODE Equal to 2
Then - Actions
Unit - Create 6 Small Zombie for Player 5 (Yellow) at (Center of bar spawn mario and luigi <gen>) facing Default building facing degrees
Unit Group - Order (Units in bar spawn mario and luigi <gen>) to Attack-Move To (Center of west spawn mario and luigi <gen>)
Else - Actions
Unit - Create 12 Small Zombie for Player 5 (Yellow) at (Center of bar spawn mario and luigi <gen>) facing Default building facing degrees
Unit Group - Order (Units in bar spawn mario and luigi <gen>) to Attack-Move To (Center of west spawn mario and luigi <gen>)
Unit Group - Order (Units in bar spawn mario and luigi <gen>) to Attack-Move To (Center of west spawn mario and luigi <gen>)
Trigger - Turn off (This trigger)
yes that is a big code for just 1 spawn but....
i wanted to use levels (easy medium hard) for my game
and well i set GAME_MODE(variable)1 for easy 2 for medium 3 for hard
i used a dialog box to vote for it in game it all works fine. but like you can see
the way i did it my code is massive and im scared its gonna start to take up lag.
and 2nd question is only about 15 units can be told to move at a time like on hard i set it to 20 spawn on one of them. and only about 15 move other than that i have to wait about 5 seconds and then tell the game to send again. so should i split it up into spawn 10 wait spawn 10??? or just add a wait and attack. but if i do that u can double activate the trigger???
plz help me thx