| 03-07-2009, 08:22 PM | #1 |
Right Button Mouse On Item In Inventory Left Button Mouse On relief (Order Drop Item) -> Run Trigger How? |
| 03-07-2009, 08:25 PM | #2 |
| 03-07-2009, 08:39 PM | #3 |
no, this is when is already droped need fact of the order |
| 03-07-2009, 08:45 PM | #4 |
Dropping an item does not trigger the following events: JASS:EVENT_UNIT_ISSUED_ORDER EVENT_UNIT_ISSUED_POINT_ORDER EVENT_UNIT_ISSUED_TARGET_ORDER I do not thing there is an order ID for dropping an item. Sorry man. |
| 03-07-2009, 08:45 PM | #5 |
there is no order for this as i know. You can pick item back and do actions you like. |
| 03-07-2009, 08:50 PM | #6 |
on network play, order send, signifies he there is, right? |
| 03-07-2009, 09:02 PM | #7 | ||
Quote:
I'm sorry, I'm not sure what you are trying to clarify. This question has actually already been asked. Search the forum for "IssueInstantTargetOrder" and it is one of the first posts (I was actually doing some testing with IssueInstantTargetOrder and wanted to check up on wc3c.net. What a coincidence. Quote:
The order of a unit when he is dropping an item is "dropitem". By the way, only one post to go :P |
| 03-07-2009, 11:04 PM | #8 |
The order ID for dropping an item is 852001. It does not represent a slot ID unfortunantly. The string name is "dropitem". If I caught this right you want to run a trigger directly before the player drops an item? This is impossible unfortunantly; you must run off of the EVENT_UNIT_DROP_ITEM event. If you don't want an item to be droppable though, and don't want to use the "Item can't be dropped" flag; you can destroy the dropped item and recreate a new one immedaitely; it's quick enough to look appropriate. |
| 03-07-2009, 11:19 PM | #9 |
If there was a trigger that fired off when a unit was issued the order "dropitem" it would execute at the exact same time as EVENT_UNIT_ITEM_DROPPED anyways, so just use that event like I said in my first post. |
