- Joined
- Aug 19, 2007
- Messages
- 109
In my castle map i have an ability where when learned, every 40 sec. some units will be created at the keep of the castle and will be ordered to move. At start of map i learned lvl 1 of this ability and w8ed 40 seconds... nothing happened lol. Whats wrong with it?

Note:I tried to make it so only when hero is alive will the units spawn(the first condition) COTG=The unit variable of the hero.
Help plz.



-
Learns 3rd Ability
-
Events
-
Unit - A unit Learns a skill
-
-
Conditions
-
(Learned Hero Skill) Equal to Call to Arms (Dummy bash)
-
-
Actions
-
Trigger - Turn on Periodic Men <gen>
-
Trigger - Turn off (This trigger)
-
-
-
Periodic Men
-
Events
-
Time - Every 40.00 seconds of game time
-
-
Conditions
-
(COTG is alive) Equal to True
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Call to Arms (Dummy bash) for COTG) Equal to 1
-
-
Then - Actions
-
For each (Integer A) from 1 to 10, do (Actions)
-
Loop - Actions
-
Set Temp_Point = (Random point in Ability Summon Guards <gen>)
-
Unit - Create 1 Armed Peasent (Captain of the Guard) for Player 9 (Gray) at Temp_Point facing Default building facing degrees
-
Unit - Change color of (Last created unit) to (Color of (Owner of (Ordered unit)))
-
Unit - Order (Last created unit) to Attack-Move To (Random point in Step1 <gen>)
-
Custom script: call RemoveLocation (udg_Temp_Point)
-
-
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Call to Arms (Dummy bash) for COTG) Equal to 2
-
-
Then - Actions
-
For each (Integer A) from 1 to 8, do (Actions)
-
Loop - Actions
-
Set Temp_Point = (Random point in Ability Summon Guards <gen>)
-
Unit - Create 1 Axeman (Captain of the Guard) for Player 9 (Gray) at Temp_Point facing Default building facing degrees
-
Unit - Change color of (Last created unit) to (Color of (Owner of (Ordered unit)))
-
Unit - Order (Last created unit) to Attack-Move To (Random point in Step1 <gen>)
-
Custom script: call RemoveLocation (udg_Temp_Point)
-
-
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Call to Arms (Dummy bash) for COTG) Equal to 3
-
-
Then - Actions
-
For each (Integer A) from 1 to 6, do (Actions)
-
Loop - Actions
-
Set Temp_Point = (Random point in Ability Summon Guards <gen>)
-
Unit - Create 1 Swordsman (Captain of the Guard) for Player 9 (Gray) at Temp_Point facing Default building facing degrees
-
Unit - Change color of (Last created unit) to (Color of (Owner of (Ordered unit)))
-
Unit - Order (Last created unit) to Attack-Move To (Random point in Step1 <gen>)
-
Custom script: call RemoveLocation (udg_Temp_Point)
-
-
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Call to Arms (Dummy bash) for COTG) Equal to 4
-
-
Then - Actions
-
For each (Integer A) from 1 to 4, do (Actions)
-
Loop - Actions
-
Set Temp_Point = (Random point in Ability Summon Guards <gen>)
-
Unit - Create 1 Royal Guard (Captain of the Guard) for Player 9 (Gray) at Temp_Point facing Default building facing degrees
-
Unit - Change color of (Last created unit) to (Color of (Owner of (Ordered unit)))
-
Unit - Order (Last created unit) to Attack-Move To (Random point in Step1 <gen>)
-
Custom script: call RemoveLocation (udg_Temp_Point)
-
-
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
-
-
-
-
-
Note:I tried to make it so only when hero is alive will the units spawn(the first condition) COTG=The unit variable of the hero.
Help plz.

