• 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.

The Trigger is a broken

Status
Not open for further replies.
Level 2
Joined
Jan 2, 2009
Messages
16
i am not that noob. tried this loads of times but it wont work. how do you make/ perfect an item system that allows only 1 item of each item class in the hero's inventory at once?

this system is for my rpg game. an example picture is posted of the ingame character

here is my try, only works sometimes
  • Events
    • Unit - A unit Acquires an item
  • Conditions
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Item being manipulated) Not equal to (Item carried by (Hero manipulating item) in slot 1)
        • Or - Any (Conditions) are true
          • Conditions
            • (Item-class of (Item carried by (Hero manipulating item) in slot 1)) Equal to (Item-class of (Item carried by (Hero manipulating item) in slot 2))
            • (Item-class of (Item carried by (Hero manipulating item) in slot 1)) Equal to (Item-class of (Item carried by (Hero manipulating item) in slot 3))
            • (Item-class of (Item carried by (Hero manipulating item) in slot 1)) Equal to (Item-class of (Item carried by (Hero manipulating item) in slot 4))
            • (Item-class of (Item carried by (Hero manipulating item) in slot 1)) Equal to (Item-class of (Item carried by (Hero manipulating item) in slot 5))
            • (Item-class of (Item carried by (Hero manipulating item) in slot 1)) Equal to (Item-class of (Item carried by (Hero manipulating item) in slot 6))
      • Then - Actions
        • Hero - Drop the item from slot 1 of (Hero manipulating item)
      • Else - Actions
        • -------- This is were the if/then/else will go for 2nd slot --------
(Note: i will do this with other 5 inventory slots)
 
Last edited:
Status
Not open for further replies.
Top