• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Is this skill leakless? (

Status
Not open for further replies.
Level 1
Joined
Sep 29, 2008
Messages
2
I know mostly how to make a ability leakless... except! I'm not too sure if this one is considering the variable array addition. If you could check for me, that'd be great. Thanks!

  • Swap Cast
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Swap
    • Actions
      • Set swappoint_1[(Player number of (Triggering player))] = (Position of swapcaster[(Player number of (Triggering player))])
      • Set swappoint_2[(Player number of (Triggering player))] = (Position of swapcaster_target[(Player number of (Triggering player))])
      • Set swapinteger[(Player number of (Triggering player))] = (Level of Mechanical Ward for swapcaster[(Player number of (Triggering player))])
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Distance between swappoint_1[(Player number of (Triggering player))] and swappoint_2[(Player number of (Triggering player))]) Less than or equal to (500.00 + (50.00 x (Real(swapinteger[(Player number of (Triggering player))]))))
        • Then - Actions
          • Unit - Move swapcaster[(Player number of (Triggering player))] instantly to swappoint_2[(Player number of (Triggering player))]
          • Unit - Move swapcaster_target[(Player number of (Triggering player))] instantly to swappoint_1[(Player number of (Triggering player))]
        • Else - Actions
      • Custom script: call RemoveLocation(udg_swappoint_1[GetConvertedPlayerId(GetTriggerPlayer())])
      • Custom script: call RemoveLocation(udg_swappoint_2[GetConvertedPlayerId(GetTriggerPlayer())])
I know the swapinterger variable is useless... forgot to remove it. (Or at least I think it is. :p) The unit variables are set in another trigger, by the way.
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
You dont need arrayed variables to make this MUI
as long as it doesnt have timer or waits its MUI
 
Status
Not open for further replies.
Top