• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

"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