Hi, if possible, could anyone help me change the "Move Unit Instantly" GUI to GetUnitX/Y position because i don't want to disrupt orders and i am not familiar to JASS much.
Thanks
And the map: (I use a default editor, not JNPG)
Thanks
-
Warp
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Warp
-
Actions
- Set Warp_key = (Custom value of (Triggering unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Warp_FirstCastIsOn[Warp_key] Equal to False
-
Then - Actions
- Set Warp_FirstCastIsOn[Warp_key] = True
- Set Warp_Point[1] = (Target point of ability being cast)
- Set Warp_Level = (Level of Warp for (Triggering unit))
- Unit - Create 1 Chronosphere for (Owner of (Triggering unit)) at Warp_Point[1] facing Default building facing degrees
- Set Warp_Sphere[Warp_key] = (Last created unit)
- Animation - Change Warp_Sphere[Warp_key]'s size to (80.00%, 80.00%, 80.00%) of its original size
- Unit - Remove Warp from (Triggering unit)
- Unit - Add Warp to (Triggering unit)
- Unit - Set level of Warp for (Triggering unit) to Warp_Level
- Custom script: call RemoveLocation(udg_Warp_Point[1])
-
Else - Actions
- Set Warp_FirstCastIsOn[Warp_key] = False
- Set Warp_Point[1] = (Target point of ability being cast)
- Set Warp_Point[2] = (Position of Warp_Sphere[Warp_key])
- Set Warp_Group = (Units within 300.00 of Warp_Point[2] matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is dead) Equal to False) and ((Unit-type of (Matching unit)) Not equal to Chronosphere))))
-
Unit Group - Pick every unit in Warp_Group and do (Actions)
-
Loop - Actions
- Set Warp_Point[3] = (Warp_Point[1] offset by (Random real number between 0.00 and 300.00) towards (Random angle) degrees)
- Set Warp_Point[4] = (Position of (Picked unit))
- Special Effect - Create a special effect at Warp_Point[4] using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Move (Picked unit) instantly to Warp_Point[3]
- Set Warp_Point[4] = (Position of (Picked unit))
- Special Effect - Create a special effect at Warp_Point[4] using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_Warp_Point[3])
- Custom script: call RemoveLocation(udg_Warp_Point[4])
-
Loop - Actions
- Unit - Kill Warp_Sphere[Warp_key]
- Unit - Remove Warp_Sphere[Warp_key] from the game
- Custom script: call RemoveLocation(udg_Warp_Point[1])
- Custom script: call RemoveLocation(udg_Warp_Point[2])
- Custom script: call DestroyGroup(udg_Warp_Group)
-
If - Conditions
-
Events
And the map: (I use a default editor, not JNPG)