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!
You trigger that. Whenever your hero tries to pick up an item, it scans the inventory for orbs. If it finds existing orbs, it forces the hero to stop so it can't pick up the item.
can you give me a exampe? i tryed make a trigger but when a unit just buys it it removes it, i can get it to only do that if the unit already has 1 of the item it will remove the second one
(Item-type of (Item being manipulated)) equal to ItemYouWant
Event
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
(Item carried by (Triggering unit) in slot (Integer A)) Gleich (Item being manipulated)
'THEN'-Aktionen
Set SlotNumber = (Integer A)
'ELSE'-Aktionen
For each (Integer B) from 1 to 6, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
And - All (Conditions) are true
Conditions
(Integer B) not equal to SlotNumber
(Item-type of (Item carried by (Triggering unit) in slot SlotNumber)) equal to (Item-type of (Item carried by (Triggering unit) in slot (Integer B)))
'THEN'-Actions
Item - Set charges remaining in (Item carried by (Triggering unit) in slot (Integer B)) to ((Charges remaining in (Item carried by (Triggering unit) in slot (Integer B))) + (Charges remaining in (Item being manipulated)))
Item - Remove (Item being manipulated)
'ELSE'-Actions
This trigger does not only remove the item. I adds the charges of the picked item to the item already carried.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.