• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Get your art tools and paintbrushes ready and enter Hive's 34th Texturing Contest: Void! Click here to enter!

Item Condition?

Status
Not open for further replies.
Level 29
Joined
Jun 4, 2007
Messages
1,480
No sorry it doesn't.
But...
You could make a condition for each inventory slot.

Item - Item Class of item carried by hero in slot 1 equal to Permanent
Make 6 copies of this condition and put them in an Or condition with multiple conditions.
And of course change the inventory slots to 1,2,3,4,5 and 6.

(Often you see an ä in many other citys but swedish ones)
 
Level 16
Joined
Mar 26, 2004
Messages
569
I think you'd have to divide it. One loop that counts the number of permanents carried, then an IF/THEN/ELSE to check if they're zero.

  • Untitled Trigger 002
    • Events
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • Multiple FunctionsIf (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 (==) Permanent
            • Then - Actions
              • Set TempInt = (TempInt + 1)
            • Else - Actions
              • Do nothing
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TempInt Equal to (==) 0
        • Then - Actions
          • DO YOUR ACTIONS
        • Else - Actions
          • Do nothing
 
Status
Not open for further replies.
Top