Using the Order as Variable

G00dG4m3

New Member
Reaction score
1
EDIT : Is it possible to store an order into a variable, and then issue enemy hero use it on another target.
PS.: I want to create a passive ability, which would change the target of unit-target spell if there is an ally creep nearby.

Please help me!?
 

Komaqtion

You can change this now in User CP.
Reaction score
469
You mean something like this ? :S
Trigger:
  • Store Order
    • Events
      • Unit - A unit Is issued an order targeting a point
    • Conditions
    • Actions
      • Set TempString = (String((Issued order)))
      • Set TempPoint = (Target point of issued order)
      • Wait 0.01 seconds
      • Custom script: call IssuePointOrderLoc( GetTriggerUnit(), udg_TempString, udg_TempPoint)
      • Custom script: call RemoveLocation(udg_TempPoint)


Isn't possible in all-GUI though, and this leaks too :(
 

G00dG4m3

New Member
Reaction score
1
I need it to be the unit-target spell, cuz it should retarget the creep unit.
Besides, it should get activated only when it begins casting spell, cuz it should order same order, but another target.
 

Cookiemaster

New Member
Reaction score
36
Can I ask you to be more specific?


Is it a creep that causes the casting unit to retarget it's ability (to e.g. the creep itself or a different target), or is it the casting unit that retargets due to casting on a specific type of target?
 

G00dG4m3

New Member
Reaction score
1
Hero learns a passive ability. If spell is not in 'cooldown', there is an ally creep in 1000 AoE and enemy targets the <hero> as a target of unit-target spell, teleports the creep infront of the <hero> and causes the enemy target the teleported creep instead of the <hero>.

Is that clear enough?
 
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