HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

hero is carryng what item?

07-13-2003, 12:07 AM#1
ceb5503
I need a trigger that checks to see if a hero is carrying an item. How would you set this?

I noticed there is a way to check a hero slot, but it seems to only check items that are precreated. I just want to make sure that the hero has an item of item-type on them. Doesn't even have to be a certain slot. Basically, I want.

hero carries item-type
then
do this
else
do this

Doesn't seem to be a way to set this though, but I'm hoping someone knows.
07-13-2003, 12:33 AM#2
rishistomper
Have an item comparison like this:

((Item carried by <hero> of type <type>) Not Equal to (No Item))

This will return TRUE if <hero> carries an item of type <type>, FALSE if it doesn't. ("No Item" is a preset.)