• 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.

[JASS] Order Code

Status
Not open for further replies.
Level 10
Joined
Jun 1, 2008
Messages
485
ok, I'm just want to ask one noobish JASS question.

how can i know the order code of an ability? (the ones that used in IssueTargetOrderById)

maybe this was one noobish, and easy questions, but I inexperienced in JASS and i'm really need it for my map, so please answer.

~Mage_Goo

EDIT: what i want is an order id that used in this function:
JASS:
call IssueTargetOrderById(GetTriggerUnit() , <80000> , GetAttackingUnit())
i want to know how can i get that order id? (in this example is 80000) if i get it, so i can order unit to use some no-order-ability like item create illusion or other item ability.

sorry for bad explain on first
 
Last edited:
Level 11
Joined
Apr 6, 2008
Messages
760
Target Spell:

native IssueInstantTargetOrder takes unit whichUnit, string order, widget targetWidget, widget instantTargetWidget returns boolean


No-Target Spell:

native IssueImmediateOrder takes unit whichUnit, string order returns boolean


hope this helps
 
Level 11
Joined
Apr 6, 2008
Messages
760
aha well that my friend u find in the object editor :)

attachment.php


what will is the order string that u will type in to the trigger :)

all ability have that. even if it is for a item or a unit
 

Attachments

  • Mage_Goo_Help2.JPG
    Mage_Goo_Help2.JPG
    8.7 KB · Views: 412
Level 12
Joined
Apr 27, 2008
Messages
1,228
This should do:
JASS:
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
    call BJDebugMsg(I2S(GetIssuedOrderId()))
endfunction

//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
    set gg_trg_Untitled_Trigger_001 = CreateTrigger(  )
    call TriggerRegisterAnyUnitEventBJ( gg_trg_Untitled_Trigger_001, EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER )//Replace this with the event you like ( for no target, for location target)
    call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction
 
Last edited:
Level 10
Joined
Jun 1, 2008
Messages
485
sorry, but I'm bad explain on my post what i want is this:

on this function
JASS:
call IssueTargetOrderById(GetTriggerUnit() , <80000> , GetAttackingUnit())
80000 is order id right? it's an id that ability have and act as an order to that ability right?
I'm just want to know how to get that id so i can order unit to use no-order-string-ability like item ability (ex: item create illusion).

once again, sorry for bad explaining.

P.S: 80000 is not a right order id, I'm just entering random number.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
There is a native to convert orders into their ID form. As for wand of illusion item. To get that's order ID, you need to make a dummy trigger which displays the order ID of the last issued order. Then you get the unit to cast the illusion and write down the ID you are given. Finally enter that number in the id field as a plain integer (with no <> stuff).
 
Level 7
Joined
Jul 12, 2008
Messages
295
I don't understand JASS well but i think this is the custom script:

call IssueTargetOrderById(udg_Caster, code, udg_Target)
. But i think this script is for GUI. Well try it then reply here
 
Status
Not open for further replies.
Top