• 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.

[Trigger] Item Event Help

Status
Not open for further replies.

Ice

Ice

Level 10
Joined
Sep 4, 2004
Messages
153
hi, im trying to make it so when someone rightclicks a item it will remove a item on the unit but has to be removed befor a item is picked up se he will pick up the new item but event unit: loses item is for a item that is like dropped upon death, and, issued order isnt working for me unless im doing it wrong well here it is plz help.

Itempickup
Events
Unit - A unit Is issued an order targeting an object
Conditions
(Issued order) Equal to (Order(rightclick))
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Custom value of (Target item of issued order)) Equal to 1
Then - Actions
Item - Remove (Item carried by playerunit1[(Player number of (Owner of (Triggering unit)))] of type Weapon Slot
Else - Actions
 
Level 22
Joined
Feb 4, 2005
Messages
3,971
Yeah, I remember trying to use this event for items but doesn't work. The mistake is in the order (click). Your strings are order (move), (attack), (stop), etc i think, but I can tell for sure it's not right click, there isn't a string like that one. Maybe if you even use another event.
 
Status
Not open for further replies.
Top