• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] Handling Right Click or Left Click On items ?

Status
Not open for further replies.
Get the Right Click Recipe system from my signature, it has a double-right-click disassemble feature.

To make it require 4 clicks, you need to add a timer to the trigger.

If the time remaining on the timer is equal to 0, start the timer (1 sec or so should be fine). Then on the next activation if there is more than 0 time remaining, continue with the disassemble.
 
Changing the inventory slot of an item fires an order event. To achieve what you want you have to listen to two of such order events in a row that put the item in the same slot as it was before.


Add this event to the trigger:
JASS:
call TriggerRegisterUnitEvent( trigger, unit, EVENT_PLAYER_UNIT_ISSUED_UNIT_ORDER)

Here are the order ID's for the 6 slots:
_____________
|852002|852003|
|852004|852005|
|852006|852007|
----------------
 
Status
Not open for further replies.
Back
Top