• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

"can only carry one of those items"

Status
Not open for further replies.
Level 3
Joined
Jul 18, 2007
Messages
23
Hi !

I have been looking through some maps, for a Trigger that, posts a message if a hero trys to pick up an item, that he already got one of.

i aint good to explain this.
lets try this:

A hero pick up a Axe.

The hero already got a Sword in his bag.

then he drops the axe, and a message tells him that he can't the axe.

Any Simple way to do this?

this is intended for a Single player map so far.


Any1 who could help here?
 
Level 8
Joined
Apr 7, 2008
Messages
176
make a trigger

Unit acquires an item
Item being manipulated equal to axe
If then else
If - triggering unit has item (item of type (sword))
then - order triggering unit to drop item of type (axe or item being manipulated)
else - leave it blank if you got nothing to go here, dont put a Do Nothing people will yell at u. O.O
 
Status
Not open for further replies.
Top