- Joined
- Jun 27, 2010
- Messages
- 2,709
Hi, I'm trying to make a change, and here it is. I know there is charge and slash in spells section, but the warrior and the target are ALREADY in variables here, so they can't be in other variables, that's why I have to put the target in unit group. Don't think that the warrior is MUI just because it is in an array, just makes it easier for me . the spell is not MUI, and cannot be cast multiple times before the cooldown refresh.
The problem is that when i castt charge it charges but continues to run against the target. can someone lighten me up why?
The problem is that when i castt charge it charges but continues to run against the target. can someone lighten me up why?
-
Charge cast
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Charge (Warrior)
-
Actions
- Unit Group - Add (Target unit of ability being cast) to Warrior_Charge_Group
-
Events
-
Charge finish
-
Events
- Unit - A unit Finishes casting an ability
-
Conditions
- (Ability being cast) Equal to Charge (Warrior)
-
Actions
- Trigger - Turn on Charge loop <gen>
-
Events
-
Charge loop
-
Events
- Time - Every 0.03 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in Warrior_Charge_Group and do (Actions)
-
Loop - Actions
- Set Warrior_Charge_TargetPos = (Position of (Picked unit))
- Set Warrior_Charge_points[1] = (Position of Hero_units[2])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Distance between Warrior_Charge_points[1] and Warrior_Charge_TargetPos) Greater than 30.00
-
Then - Actions
- Unit - Make Hero_units[2] face (Picked unit) over 0.00 seconds
- Set Warrior_Charge_points[2] = (Warrior_Charge_points[1] offset by 10.00 towards (Facing of Hero_units[2]) degrees)
- Unit - Move Hero_units[2] instantly to Warrior_Charge_points[2]
- Custom script: call RemoveLocation(udg_Warrior_Charge_points[1])
- Custom script: call RemoveLocation(udg_Warrior_Charge_points[2])
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Distance between Warrior_Charge_points[1] and Warrior_Charge_TargetPos) Less than or equal to 30.00
-
Then - Actions
- Unit Group - Remove (Picked unit) from Warrior_Charge_Group
- Unit - Order Hero_units[2] to Stop
- Trigger - Turn off (This trigger)
- Custom script: call RemoveLocation(udg_Warrior_Charge_points[1])
- Custom script: call RemoveLocation(udg_Warrior_Charge_points[2])
- Else - Actions
-
If - Conditions
-
Loop - Actions
-
Unit Group - Pick every unit in Warrior_Charge_Group and do (Actions)
-
Events