| 04-02-2009, 06:12 PM | #1 |
Hi, i want use a finger of death based skill with an spell that use CasterSystem, but i must have finger of death order id to do it, the default order id is "none" =X |
| 04-02-2009, 06:47 PM | #2 |
make a trigger to detect it, then cast it, and you get the id. |
| 04-02-2009, 07:14 PM | #3 |
=o i'll try =o Edit : How to ? =o |
| 04-02-2009, 07:38 PM | #4 |
try this JASS:scope Debug initializer Init //needs JassNewGenPack private function showorderid takes nothing returns nothing local integer id=GetIssuedOrderId() local unit u=GetOrderedUnit() if(StringLength(OrderId2String(id))>1)then call BJDebugMsg(GetUnitName(u)+" "+OrderId2String(id)+" "+I2S(id)) else call BJDebugMsg(GetUnitName(u)+" "+I2S(id)) endif set u=null endfunction //INITIALIZER //========================================= private function Init takes nothing returns nothing local trigger t=CreateTrigger( ) call TriggerRegisterAnyUnitEventBJ(t, EVENT_PLAYER_UNIT_ISSUED_ORDER ) call TriggerRegisterAnyUnitEventBJ(t, EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER ) call TriggerRegisterAnyUnitEventBJ(t, EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER ) call TriggerAddAction(t, function showorderid ) endfunction endscope just cast the spell and it will display the orderstring and orderid of it... |
| 04-02-2009, 08:08 PM | #5 |
Thanks you =D |
| 04-02-2009, 08:32 PM | #6 |
852230 fingerofdeath |
| 04-03-2009, 05:44 AM | #7 |
Heh this should be helpful, I was looking for a way to find order IDs too. Is there a list of order IDs anywhere or do we have to use this function every time we want an order ID |
| 04-03-2009, 08:30 AM | #8 |
see attached file (excel sheet) dunno who made it .. |
| 04-03-2009, 10:20 AM | #9 |
The correct solution is once again found from the wc3c resources section: ConvOrder - OrderString/Id Convertor by Blade.dk |
| 04-03-2009, 11:27 AM | #10 |
well that tool is nice, but still it wont help you at all when you dont know either the order string nor the orderid ... |
| 04-03-2009, 12:36 PM | #11 |
If you can't guess the orderstring, you probably shouldn't be making maps. :p |
| 04-03-2009, 01:52 PM | #12 |
Or just don't having world edit in english + never sure what's the english name of a skill |
| 04-03-2009, 02:02 PM | #13 |
Hrm. I wonder if orderstrings change with language. That would be weird. They probably do. |
| 04-03-2009, 02:52 PM | #14 | |
Quote:
This is very handy. I'm so using it from now on. |
| 04-03-2009, 02:58 PM | #15 | |
Quote:
|
