HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Conditions with Items

01-29-2003, 08:13 PM#1
Dmonmonk
Is there a way you can make a trigger where it checks the number of items you have in your inventory? I need it to check if the hero carries 2 Wands of Negation it will research the first priest ability for you
thnx in advance


EDIT: Oops I thought this was a folder for learning nerw triggers my bad :/ can you move this too
01-30-2003, 12:20 AM#2
DaKaN
NP, moved..

As for your question..

Action
Unit gains a item

conditions
none

Actions
for each interger A do If (item type of item in slot Interger A is of type Wand of Negation) then do (set varible(counter) = Arithmatic(counter +1) ) else do Nothing
If (interger comparison)Counter is = to or > 2) then do (action) (else do nothing)