- Joined
- Oct 10, 2009
- Messages
- 439
Ohai! First of all, I would love some help in converting this trigger (See below) So it uses the jass command [Move x Y] (I think thats the command) Basically, at the moment, this trigger intterrupts any animations and orders the unit was using, And I do not want it to be so.
<3 if you help
<3 if you help
-
Loop
-
Events
-
Time - Every 0.03 seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in KB_Move and do (Actions)
-
Loop - Actions
-
Set KB_Active = True
-
Set MovementDistance = ((Load (Key Distance) of (Key (Picked unit)) from Hastable) + 1.00)
-
Set MovementTime = (Load (Key Duration) of (Key (Picked unit)) from (Last created hashtable))
-
Set MovementNow = (10.00 x MovementTime)
-
Set MovementAngle = (Load (Key Angle) of (Key (Picked unit)) from Hastable)
-
Set Point[0] = (Position of (Picked unit))
-
Set Point[1] = (Point[0] offset by MovementNow towards MovementAngle degrees)
-
Unit - Move (Picked unit) instantly to Point[1]
-
Set MovementTime = (MovementTime - 0.03)
-
Hashtable - Save MovementTime as (Key Duration) of (Key (Picked unit)) in Hastable
-
Set MovementTime = (MovementDistance - MovementNow)
-
Hashtable - Save MovementTime as (Key Distance) of (Key (Picked unit)) in Hastable
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
MovementTime Less than or equal to 0.10
-
-
Then - Actions
-
Unit Group - Remove (Picked unit) from KB_Move
-
Hashtable - Clear all child hashtables of child (Key (Picked unit)) in Hastable
-
-
Else - Actions
-
-
Custom script: call RemoveLocation(udg_Point[1])
-
Custom script: call RemoveLocation(udg_Point[0])
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
KB_Active Equal to False
-
-
Then - Actions
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
Set KB_Active = False
-
-
-
-