- Joined
- Apr 23, 2010
- Messages
- 312
I'm working on a item based resurrection that selects dead heroes in an area and am trying to find the point of the item being used (not the location of the unit using the item). For instance, if I am using Healing Ward I want to find the location of the ward. How would I do this? Below is the current trigger but it doesn't work because there is no location being stated.
I'll work out any bugs in the trigger later I just want to know how I would go about finding the point of the ward. Thank you in advance!
-
Potion Revive
-
Events
- Unit - A unit Uses an item
-
Conditions
- (Item-type of (Item being manipulated)) Equal to Ressurection
-
Actions
- Set p_Temp_Point = (Position of (Target item of ability being cast))
- Special Effect - Create a special effect at p_Temp_Point using war3mapImported\Holy Nova.mdx
- Special Effect - Destroy (Last created special effect)
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 200.00 of p_Temp_Point) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
- ((Picked unit) is dead) Equal to True
- (Picked unit) Equal to ua_Dead_Stone[(Integer A)]
-
Conditions
-
And - All (Conditions) are true
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- ua_Dead_Stone[(Integer A)] Equal to ua_Dead_Stone[1]
- ua_Dead_Stone[(Integer A)] Equal to ua_Dead_Stone[3]
- ua_Dead_Stone[(Integer A)] Equal to ua_Dead_Stone[5]
- ua_Dead_Stone[(Integer A)] Equal to ua_Dead_Stone[7]
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Hero - Instantly revive ua_Dead_Hero[(Integer A)] at (Position of ua_Dead_Stone[(Integer A)]), Hide revival graphics
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- ua_Dead_Stone[(Integer A)] Equal to ua_Dead_Stone[2]
- ua_Dead_Stone[(Integer A)] Equal to ua_Dead_Stone[4]
- ua_Dead_Stone[(Integer A)] Equal to ua_Dead_Stone[6]
- ua_Dead_Stone[(Integer A)] Equal to ua_Dead_Stone[8]
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Hero - Instantly revive ua_Dead_Hero[(Integer A)] at (Position of ua_Dead_Stone[(Integer A)]), Hide revival graphics
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Unit - Remove ua_Dead_Stone[(Integer A)] from the game
- Custom script: call RemoveLocation(udg_p_Temp_Point)
-
Events