• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

1 Item per hero?

Status
Not open for further replies.
Level 13
Joined
Jun 3, 2011
Messages
1,058
Hi guys is there a system that a hero can only carry 1 item slot for the swords 1 item slot for the shield item slot for the amulet and 1 item slot for the ring?
 
Level 12
Joined
Sep 11, 2011
Messages
1,176
you could make all the level 1 item of item class Permanent to Weapons. and then do something like this.

  • Weapon
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • (Item-class of (Item being manipulated)) Equal to Permanent
          • (Item level of (Item being manipulated)) Equal to 1
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • WeaponIsOwned Equal to True
        • Then - Actions
          • Hero - Drop (Item being manipulated) from (Triggering unit)
          • Game - Display to (All players) the text: You cannot hold two...
        • Else - Actions
          • Set WeaponIsOwned = True
Note : WeaponIsOwned is a boolean variable.
 
Status
Not open for further replies.
Top