HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Order string for illusions

10-02-2005, 06:49 PM#1
Mezzer
Does anyone know how to order a unit to cast the item illusion spell on a unit? Cause the original spell doesnt have any order string and I dont know how to get around that. Any help appriciated
10-03-2005, 04:23 PM#2
Anitarf
I have a link (among others) to a thread that adresses this issue, however, with the new forum, all my links are now useless. Luckily, I also have the main Lord Vexorian's post from that thread in a txt file, let me just c&p it.

Quote:
Originally Posted by Lord Vexorian
OrderId s are integers, most of the usual abilities have an orderstring, but some don't , but every ability has an orderid.
To get the orderid of an ability that doesn't have a string

Events
A unit is issued an order targeting a point
A unit is issued an order targeting an object
A unit is issued an order with no target
Conditions
Actions:
Custom SCript: call BJDebugMsg(I2S(GetIssuedOrderId()))

now have that trigger in a test map, enter to the map (in war3) pick a unit and order it to use the spell you want to find the order id.
It should show a silly number like 856703, take a paper and write it down, that is the order id for that ability and every ability based on it.
Now to use that ability you need to use the byId Natives:

native IssueImmediateOrderById takes unit whichUnit, integer order returns boolean
native IssuePointOrderByIdLoc takes unit whichUnit, integer order, location whichLocation returns boolean
native IssueTargetOrderById takes unit whichUnit, integer order, widget targetWidget returns boolean
10-06-2005, 01:12 PM#3
xxxSpikexxx
Damn these custom Scripts always make me feel dumb.
Anyway. Nice thing perhaps I could need it aswell.
10-08-2005, 08:09 PM#4
Mezzer
K, thanx, that's all i needed to know!