Pyromancer
New Member
- Reaction score
- 16
trigger help
hey,
i was wondering, can sum1 please help me with this trigger?
timer trigger
unit maker p1 (human
unit mover trigger
next unit mover
that was for player 1. basacly the same stuff for player 2, andso on. now player one and to units both move to um1,2 then um 2,, then turn around and go back. then theres a huge clog..... yeah. please help.....
ps, sry about then thread name
hey,
i was wondering, can sum1 please help me with this trigger?
timer trigger
Code:
timer
events:
map initialation
conditions:
actions:
Countdown Timer - Start unit_maker_timer[(Player number of Player 1 (Red))] as a Repeating timer that will expire in 20.00 seconds
Countdown Timer - Start unit_maker_timer[(Player number of Player 2 (Blue))] as a Repeating timer that will expire in 20.00 seconds
Countdown Timer - Start unit_maker_timer[(Player number of Player 3 (Teal))] as a Repeating timer that will expire in 20.00 seconds
[etc thru player 8}
unit maker p1 (human
Code:
p1 human
events:
Time - unit_maker_timer[(Player number of Player 1 (Red))] expires
conditions:
Actions
Unit Group - Pick every unit in (Units in p1 start location <gen>) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Human I
Then - Actions
Unit - Create 5 Footman for Player 11 (Dark Green) at (Center of p1 start location <gen>) facing Default building facing (270.0) degrees
Unit Group - Pick every unit in (Units in p1 start location <gen>) and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Attack-Move To (Center of um1 <gen>)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Human II
Then - Actions
Unit - Create 3 Knight for Player 11 (Dark Green) at (Center of p1 start location <gen>) facing Default building facing (270.0) degrees
Unit Group - Pick every unit in (Units in p1 start location <gen>) and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Attack-Move To (Center of um1 <gen>)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Picked unit)) Equal to Human III
Then - Actions
Unit - Create 3 Gryphon Rider for Player 11 (Dark Green) at (Center of p1 start location <gen>) facing Default building facing (270.0) degrees
Unit Group - Pick every unit in (Units in p1 start location <gen>) and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Attack-Move To (Center of um1 <gen>)
Else - Actions
Do nothing
unit mover trigger
Code:
Events
Unit - A unit enters um1 <gen>
Conditions
((Triggering unit) is A Hero) Not equal to True
Actions
Unit - Order (Triggering unit) to Attack-Move To (Center of unit move 1 <gen>)
next unit mover
Code:
Events
Unit - A unit enters unit move 1 <gen>
Conditions
((Triggering unit) is A Hero) Not equal to True
Actions
Unit - Order (Triggering unit) to Attack-Move To (Center of unit move 1 2 3 4 <gen>)
that was for player 1. basacly the same stuff for player 2, andso on. now player one and to units both move to um1,2 then um 2,, then turn around and go back. then theres a huge clog..... yeah. please help.....
ps, sry about then thread name