Leak help!

MicroSheep

New Member
Reaction score
3
okay so im making a pokemon map yeah, and all my spell triggers are in array eg, Point array.

when i use "Custom script: call RemoveLocation(udg_reversalpoint)" it comes up with an error because the variable is array.

whenever i put in reversalpoint(1), it doesn't work still.

basically i need it to be:

Trigger:
  • Reversal
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Reversal
    • Actions
      • Set ReversalTarget[(Player number of (Owner of (Triggering unit)))] = (Target unit of ability being cast)
      • Set ReversalPoint[(Player number of (Owner of (Triggering unit)))] = (Position of (Target unit of ability being cast))
      • Unit - Create 1 Reversal Dummy for (Owner of (Triggering unit)) at (ReversalPoint[(Player number of (Owner of (Triggering unit)))] offset by 5.00 towards 0.00 degrees) facing (Angle from ReversalPoint[(Player number of (Owner of (Triggering unit)))] to (ReversalPoint[(Player number of (Owner of (Triggering unit)))] offset by 5.00 towards 0.00 degrees)) degrees
      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Unit Group - Add (Last created unit) to ReversalGroup[(Player number of (Owner of (Triggering unit)))]
      • Unit - Create 1 Reversal Dummy for (Owner of (Triggering unit)) at (ReversalPoint[(Player number of (Owner of (Triggering unit)))] offset by 5.00 towards 60.00 degrees) facing (Angle from ReversalPoint[(Player number of (Owner of (Triggering unit)))] to (ReversalPoint[(Player number of (Owner of (Triggering unit)))] offset by 5.00 towards 60.00 degrees)) degrees
      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Unit Group - Add (Last created unit) to ReversalGroup[(Player number of (Owner of (Triggering unit)))]
      • Unit - Create 1 Reversal Dummy for (Owner of (Triggering unit)) at (ReversalPoint[(Player number of (Owner of (Triggering unit)))] offset by 5.00 towards 120.00 degrees) facing (Angle from ReversalPoint[(Player number of (Owner of (Triggering unit)))] to (ReversalPoint[(Player number of (Owner of (Triggering unit)))] offset by 5.00 towards 120.00 degrees)) degrees
      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Unit Group - Add (Last created unit) to ReversalGroup[(Player number of (Owner of (Triggering unit)))]
      • Unit - Create 1 Reversal Dummy for (Owner of (Triggering unit)) at (ReversalPoint[(Player number of (Owner of (Triggering unit)))] offset by 5.00 towards 180.00 degrees) facing (Angle from ReversalPoint[(Player number of (Owner of (Triggering unit)))] to (ReversalPoint[(Player number of (Owner of (Triggering unit)))] offset by 5.00 towards 180.00 degrees)) degrees
      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Unit Group - Add (Last created unit) to ReversalGroup[(Player number of (Owner of (Triggering unit)))]
      • Unit - Create 1 Reversal Dummy for (Owner of (Triggering unit)) at (ReversalPoint[(Player number of (Owner of (Triggering unit)))] offset by 5.00 towards 240.00 degrees) facing (Angle from ReversalPoint[(Player number of (Owner of (Triggering unit)))] to (ReversalPoint[(Player number of (Owner of (Triggering unit)))] offset by 5.00 towards 240.00 degrees)) degrees
      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Unit Group - Add (Last created unit) to ReversalGroup[(Player number of (Owner of (Triggering unit)))]
      • Unit - Create 1 Reversal Dummy for (Owner of (Triggering unit)) at (ReversalPoint[(Player number of (Owner of (Triggering unit)))] offset by 5.00 towards 300.00 degrees) facing (Angle from ReversalPoint[(Player number of (Owner of (Triggering unit)))] to (ReversalPoint[(Player number of (Owner of (Triggering unit)))] offset by 5.00 towards 300.00 degrees)) degrees
      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Unit Group - Add (Last created unit) to ReversalGroup[(Player number of (Owner of (Triggering unit)))]
      • Trigger - Turn on reversal movement start 1 <gen>
      • Wait 1.00 seconds
      • Unit Group - Pick every unit in ReversalGroup[1] and do (Actions)
        • Loop - Actions
          • Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
      • Trigger - Turn off reversal movement start 1 <gen>
      • Trigger - Turn on reversal movement finish 1 <gen>
      • Wait 1.00 seconds
      • Trigger - Turn off reversal movement finish 1 <gen>
      • Special Effect - Create a special effect at ReversalPoint[(Player number of (Owner of (Triggering unit)))] using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
      • Unit - Cause (Triggering unit) to damage ReversalTarget[(Player number of (Owner of (Triggering unit)))], dealing (((Max life of (Triggering unit)) - (Life of (Triggering unit))) x 1.50) damage of attack type Spells and damage type Normal
      • Unit Group - Remove all units from ReversalGroup[(Player number of (Owner of (Triggering unit)))]


How do i make it work for an array variable??
 

Komaqtion

You can change this now in User CP.
Reaction score
469
It's supposed to be:
Trigger:
  • Custom script: call RemoveLocation(udg_ReversalPoint[GetPlayerId( GetOwningPlayer(GetTriggerUnit())) + 1])
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top