- Joined
- Mar 17, 2012
- Messages
- 582
Howdy!
I'm trying to make a MUI spell that will throw a target forward with a wind effect, but it doesn't seem to be working with all players
It throws herself perfecty, but the ally gets no effect... I'll show you my triggers so you can point out my obvious mistake:
init

I guess I solved it
I changed Player_Number_Int variable to Player Number of Target unit of ability being cast
I'm trying to make a MUI spell that will throw a target forward with a wind effect, but it doesn't seem to be working with all players
init
-
Breath of Wind init
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Breath of Wind
-
-
Actions
-
Set Player_Number_Int = (Player number of (Owner of (Triggering unit)))
-
Set Breath_of_Wind_Caster[Player_Number_Int] = (Triggering unit)
-
Set Breath_of_Wind_Target[Player_Number_Int] = (Target unit of ability being cast)
-
Set Breath_of_Wind_Target_Point[Player_Number_Int] = (Position of Breath_of_Wind_Target[Player_Number_Int])
-
Set Breath_of_Wind_Distance[Player_Number_Int] = 350.00
-
Set Breath_of_Wind_Distance_Travel[Player_Number_Int] = 0.00
-
Set Breath_of_Wind_TRUE[Player_Number_Int] = True
-
Unit Group - Add Breath_of_Wind_Target[Player_Number_Int] to Breath_of_Wind_Group
-
Custom script: call RemoveLocation(udg_Breath_of_Wind_Target_Point[udg_Player_Number_Int])
-
-
-
Breath of Wind loop
-
Events
-
Time - Every 0.03 seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in Breath_of_Wind_Group and do (Actions)
-
Loop - Actions
-
Set Player_Number_Int = (Player number of (Owner of (Picked unit)))
-
Set Breath_of_Wind_Target[Player_Number_Int] = (Picked unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Breath_of_Wind_TRUE[Player_Number_Int] Equal to True
-
-
Then - Actions
-
Set Breath_of_Wind_Target_Point[Player_Number_Int] = (Position of Breath_of_Wind_Target[Player_Number_Int])
-
Set Breath_of_Wind_Movement[Player_Number_Int] = (Breath_of_Wind_Target_Point[Player_Number_Int] offset by 30.00 towards (Facing of Breath_of_Wind_Target[Player_Number_Int]) degrees)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
-
(Terrain pathing at Breath_of_Wind_Movement[Player_Number_Int] of type Flyability is off) Not equal to True
-
Breath_of_Wind_Distance_Travel[Player_Number_Int] Less than Breath_of_Wind_Distance[Player_Number_Int]
-
-
-
-
Then - Actions
-
Set Breath_of_Wind_Distance_Travel[Player_Number_Int] = (Breath_of_Wind_Distance_Travel[Player_Number_Int] + 30.00)
-
Custom script: call SetUnitX (udg_Breath_of_Wind_Target[udg_Player_Number_Int], GetLocationX (udg_Breath_of_Wind_Movement[udg_Player_Number_Int]))
-
Custom script: call SetUnitY (udg_Breath_of_Wind_Target[udg_Player_Number_Int], GetLocationY (udg_Breath_of_Wind_Movement[udg_Player_Number_Int]))
-
Special Effect - Create a special effect attached to the chest of Breath_of_Wind_Target[Player_Number_Int] using OrbOfWind.mdl
-
Special Effect - Destroy (Last created special effect)
-
Custom script: call RemoveLocation(udg_Breath_of_Wind_Target_Point[udg_Player_Number_Int])
-
Custom script: call RemoveLocation(udg_Breath_of_Wind_Movement[udg_Player_Number_Int])
-
-
Else - Actions
-
Set Breath_of_Wind_TRUE[Player_Number_Int] = False
-
Unit Group - Remove Breath_of_Wind_Target[Player_Number_Int] from Breath_of_Wind_Group
-
-
-
-
Else - Actions
-
-
-
-
-
I guess I solved it
I changed Player_Number_Int variable to Player Number of Target unit of ability being cast
Last edited: