HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

one weapon only in inventory

07-23-2003, 12:39 AM#1
aznmobboss
is there neway to make it so that A hero can carry only one weapon and armor item at a time.. im making a new map where weapons determine how much damage a hero does
07-23-2003, 12:41 AM#2
FarieFire
You could try a trigger that says hero may only carry 1 of (list of all your weapon 'items') in there equipment.
07-23-2003, 10:53 AM#3
Guest
i tried it once and failed... :-(
07-23-2003, 11:12 AM#4
exN
I heard that some triggers are bugged... its maybe one of these, but I don't have tried this functionnality right now...emote_confused
07-23-2003, 03:43 PM#5
Guest
http://www.battle.net/forums/thread....t=10#post35423

Code:
DropOldItems
    Events
        Unit - A unit Acquires an item
    Conditions
    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
                        (Current life of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Current life of (Item being manipulated))
                    Then - Actions
                        If - Conditions
                            (Item being manipulated) Not equal to (Item carried by (Hero manipulating item) in slot (Integer A))
                        Then - Actions
                             Hero - Drop the item from slot (Integer A) of (Hero manipulating item)
                        Else - Actions
                             Do nothing
                    Else - Actions
                        Do nothing