• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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