ImmortaL_GoD
New Member
- Reaction score
- 4
Trigger:
- Ambush
- Events
- Unit - Lord of Emyn Arnor 0177 <gen> Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Ambush
- Actions
- Set temp_group = (Units within 500.00 of (Position of Lord of Emyn Arnor 0177 <gen>) matching (((Matching unit) is owned by Player 1 (Red)) Equal to True))
- Set temp_point = (Center of (Playable map area))
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Ambush for Lord of Emyn Arnor 0177 <gen>) Equal to 1
- Then - Actions
- Unit Group - Pick every unit in temp_group and do (Actions)
- Loop - Actions
- Unit - Create 1 Dummy Ambush for Player 1 (Red) at temp_point facing Default building facing (270.0) degrees
- Set Ambush = (Last created unit)
- Unit - Order Ambush to Human Sorceress - Invisibility (Picked unit)
- Unit - Add a 10.00 second Generic expiration timer to Ambush
- Custom script: call DestroyGroup (udg_temp_group)
- Custom script: call RemoveLocation (udg_temp_point)
- Loop - Actions
- Unit Group - Pick every unit in temp_group and do (Actions)
- Else - Actions
- Do nothing
- If - Conditions
- Set temp_group = (Units within 500.00 of (Position of Lord of Emyn Arnor 0177 <gen>) matching (((Matching unit) is owned by Player 1 (Red)) Equal to True))
- Set temp_point = (Center of (Playable map area))
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Ambush for Lord of Emyn Arnor 0177 <gen>) Equal to 2
- Then - Actions
- Unit Group - Pick every unit in temp_group and do (Actions)
- Loop - Actions
- Unit - Create 1 Dummy Ambush for Player 1 (Red) at temp_point facing Default building facing (270.0) degrees
- Set Ambush = (Last created unit)
- Unit - Set level of Stealth for Ambush to 2
- Unit - Order Ambush to Human Sorceress - Invisibility (Picked unit)
- Unit - Add a 10.00 second Generic expiration timer to Ambush
- Custom script: call DestroyGroup (udg_temp_group)
- Custom script: call RemoveLocation (udg_temp_point)
- Loop - Actions
- Unit Group - Pick every unit in temp_group and do (Actions)
- Else - Actions
- Do nothing
- If - Conditions
- Set temp_group = (Units within 500.00 of (Position of Lord of Emyn Arnor 0177 <gen>) matching (((Matching unit) is owned by Player 1 (Red)) Equal to True))
- Set temp_point = (Center of (Playable map area))
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Ambush for Lord of Emyn Arnor 0177 <gen>) Equal to 3
- Then - Actions
- Unit Group - Pick every unit in temp_group and do (Actions)
- Loop - Actions
- Unit - Create 1 Dummy Ambush for Player 1 (Red) at temp_point facing Default building facing (270.0) degrees
- Set Ambush = (Last created unit)
- Unit - Set level of Stealth for Ambush to 3
- Unit - Order Ambush to Human Sorceress - Invisibility (Picked unit)
- Unit - Add a 10.00 second Generic expiration timer to Ambush
- Custom script: call DestroyGroup (udg_temp_group)
- Custom script: call RemoveLocation (udg_temp_point)
- Loop - Actions
- Unit Group - Pick every unit in temp_group and do (Actions)
- Else - Actions
- Do nothing
- If - Conditions
- Events
It use to work fine, then I think after the patch it stopped working, kinda weird =/. I tried cleaning it up a bit and changing the way it designated the level of the ability to just one looped action (this is pasted prior to that though, since I think I messed it up more then), but it still didn't work. Any ideas?