How to Check Item Slots ?

Raizn

New Member
Reaction score
2
Hi Helpers,

i got a little Problem with my trigger.
Trigger:
  • Orb of Trickery
    • Events
      • Unit - A unit Is attacked
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (((Attacking unit) is A Hero) Equal to True) and ((Item-type of (Item carried by (Attacking unit) in slot (Min(1, 6)))) Equal to Orb of Trickery)
          • ((Attacked unit) belongs to an enemy of (Owner of (Attacking unit))) Equal to True
        • Then - Actions
          • Player - Add 3 to (Owner of (Attacking unit)) Current gold
          • Player - Add -3 to (Owner of (Attacked unit)) Current gold
        • Else - Actions


i dont know how to check the items slots from 1 to 6. the item is only working for slot 1.

Bye Raizn
 

Happy

Well-Known Member
Reaction score
71
make a loop with integer A....

Trigger:
  • * Orb of Trickery
    • o Events
      • + Unit - A unit Is attacked
    • o Conditions
    • o Actions
    • >>>>For each integer A from 1 to 6 do actions<<<<
      • + If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • # If - Conditions
          • * (((Attacking unit) is A Hero) Equal to True) and ((Item-type of (Item carried by (Attacking unit) in slot >>>>(Integer A)<<<< Equal to Orb of Trickery)
          • * ((Attacked unit) belongs to an enemy of (Owner of (Attacking unit))) Equal to True
        • # Then - Actions
          • * Player - Add 3 to (Owner of (Attacking unit)) Current gold
          • * Player - Add -3 to (Owner of (Attacked unit)) Current gold
        • # Else - Actions


where >>>>xyz<<<< is are the changes....
 
General chit-chat
Help Users

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top