Order String

Anything.

New Member
Reaction score
69
What order string would I use for Item Illusions? It doesn't work if I set one by myself and then use it in this trigger:

Code:
Shadow Mirage
    Events
        Unit - A unit Is attacked
    Conditions
        (Level of Shadow Mirage (Shadow_Dummy) for (Attacking unit)) Equal to 1
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Attacked unit) is An Ancient) Equal to False
            Then - Actions
                Set splPoint = (Position of (Attacked unit))
                Unit - Create 1 Acolyte for (Owner of (Attacking unit)) at splPoint facing (Position of (Triggering unit))
                Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
                Unit - Add Shadow Mirage (Dummy_Cast)  to (Last created unit)
                Unit - Order (Last created unit) to Neutral Naga Sea Witch - Frost Arrows (Attacked unit)
                Custom script:   call RemoveLocation (udg_splPoint)
            Else - Actions
                Do nothing
 

phyrex1an

Staff Member and irregular helper
Reaction score
447
Item Illusion doesn't have an order string, however it has an order id which you can use. If you use jass code.

Code:
    Set Caster = <The Unit That Casts the ability>
    Set Target = <The taget of the ability>
    Custom script:   call IssueTargetOrderById(udg_Caster,  852274, udg_Target)

Caster must ofc have the ability.
 

SFilip

Gone but not forgotten
Reaction score
634
how do you find out the order id of some ability?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Code:
OrderNoTarget
    Events
        Unit - A unit owned by Player 1 (Red) Is issued an order with no target
    Conditions
    Actions
        Game - Display to (All players) the text: ((Order No Target:  + (Name of (Triggering unit))) + ( -  + (String((Issued order)))))
        [B]Custom script:   call BJDebugMsg( I2S( GetIssuedOrderId() ) )[/B]

Same for the other orders.
 
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