is it possible to issue a dummy unit an item ability?
Feb 11, 2009 #1 snmiglight Active Member Reaction score 3 is it possible to issue a dummy unit an item ability?
Feb 11, 2009 #2 Dinowc don't expect anything, prepare for everything Reaction score 223 yes using the spell's ID it's done with a custom script
Feb 11, 2009 #3 snmiglight Active Member Reaction score 3 can you give me the steps on how to do that?
Feb 11, 2009 #4 AceHart Your Friendly Neighborhood Admin Reaction score 1,495 What ability do you want?
Feb 11, 2009 #6 AceHart Your Friendly Neighborhood Admin Reaction score 1,495 The one on "Moonstone"? Custom script: call IssueImmediateOrderById(bj_lastCreatedUnit, 852621) How to get those numbers: Put a unit on the map, give it the ability, cast it. Along with this trigger: Trigger: Get Order ID Events Unit - A unit owned by Player 1 (Red) Is issued an order targeting an object Unit - A unit owned by Player 1 (Red) Is issued an order targeting a point 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: + (String((Issued order)))) Custom script: call DisplayTextToPlayer(GetLocalPlayer(), 0, 0, "Order ID: " + I2S(GetIssuedOrderId())) After that, it depends on what target it was, as each one has a different "IssueOrder" function...
The one on "Moonstone"? Custom script: call IssueImmediateOrderById(bj_lastCreatedUnit, 852621) How to get those numbers: Put a unit on the map, give it the ability, cast it. Along with this trigger: Trigger: Get Order ID Events Unit - A unit owned by Player 1 (Red) Is issued an order targeting an object Unit - A unit owned by Player 1 (Red) Is issued an order targeting a point 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: + (String((Issued order)))) Custom script: call DisplayTextToPlayer(GetLocalPlayer(), 0, 0, "Order ID: " + I2S(GetIssuedOrderId())) After that, it depends on what target it was, as each one has a different "IssueOrder" function...
Feb 11, 2009 #7 snmiglight Active Member Reaction score 3 i was about to ask you how you get those numbers.. then you edited it... anyways thanks a lot and +rep! EDIT: oh.. i need to spread some reps before give it again to you.. sorry..
i was about to ask you how you get those numbers.. then you edited it... anyways thanks a lot and +rep! EDIT: oh.. i need to spread some reps before give it again to you.. sorry..