Reverse Polarity Trigger

bryanEX1993

New Member
Reaction score
0
In dota, there is a hero called magnateur. He has a skill which can vacuum nearby units to him, before stunning it. I know the skill is based of war stomp. However I do not know how the custom script for the trigger should be. My trigger is only half completed. Here it goes..
Magnetic Pull
Events
Unit - A unit Starts the effect of an ability
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Magnetic Pull
Then - Actions
Else - Actions


What should the Then - Actions be?
 

free_killing

TH.net Regular
Reaction score
23
In dota, there is a hero called magnateur. He has a skill which can vacuum nearby units to him, before stunning it. I know the skill is based of war stomp. However I do not know how the custom script for the trigger should be. My trigger is only half completed. Here it goes..
Magnetic Pull
Events
Unit - A unit Starts the effect of an ability
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Magnetic Pull
Then - Actions
Else - Actions


What should the Then - Actions be?
Im not sure if i know what you mean, but, what i think is:
Trigger:
  • Magnetic Pull
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to MagneticPull
    • Actions
      • Set Caster = (Casting unit)
      • Set CasterLoc = (Position of Caster)
      • Set AffectedUnitsRange = 512.00
      • Set TimeBeforeStun = 0.40
      • Set StunTime = 1.50
      • Set UnitGroup = (Units within AffectedUnitsRange of CasterLoc)
      • Unit Group - Pick every unit in UnitGroup and do (Actions)
        • Loop - Actions
          • Set AffectedUnits = (Picked unit)
          • Unit - Move AffectedUnits instantly to CasterLoc
          • Wait TimeBeforeStun seconds
          • Unit - Pause AffectedUnits
          • Wait StunTime seconds
          • Unit - Unpause AffectedUnits
      • Custom script: call RemoveLocation(udg_CasterLoc)
      • Custom script: call DestroyGroup(udg_UnitGroup)

or:
Trigger:
  • Magnetic Pull
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to MagneticPull
    • Actions
      • Set Caster = (Casting unit)
      • Set CasterLoc = (Position of Caster)
      • Set AffectedUnitsRange = 512.00
      • Set TimeBeforeStun = 0.40
      • Set UnitGroup = (Units within AffectedUnitsRange of CasterLoc)
      • Unit Group - Pick every unit in UnitGroup and do (Actions)
        • Loop - Actions
          • Set AffectedUnits = (Picked unit)
          • Unit - Move AffectedUnits instantly to CasterLoc
          • Unit - Add War Stomp to Caster
          • Wait TimeBeforeStun seconds
          • Unit - Order Caster to Orc Tauren Chieftain - War Stomp
      • Custom script: call RemoveLocation(udg_CasterLoc)
      • Custom script: call DestroyGroup(udg_UnitGroup)
 
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