Undead_Lives
New Member
Ok, so in my map I want Heroes only able to carry one item of a type. (In my case it's Campaign)
So here's the trigger, but it doesn't work...need help...
Help anyone? What am I doing wrong?
So here's the trigger, but it doesn't work...need help...
Code:
Campaign Items
????Events
????????Unit - A unit Acquires an item
????Conditions
????????(Item-class of (Picked item)) Equal to Campaign
????Actions
????????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 - Conditions
????????????????????????(Item-class of (Item carried by (Triggering unit) in slot (Integer A))) Equal to Campaign
????????????????????Then - Actions
????????????????????????Hero - Drop (Matching item) from (Triggering unit)
????????????????????Else - Actions
????????????????????????Hero - Give (Matching item) to (Triggering unit)