Item Requirements Problem

silentgamerz

New Member
Reaction score
0
Trigger:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Item-type of (Item being manipulated)) Equal to Skill Tree (Elesis No.2)
    • Then - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Unit-type of (Hero manipulating item)) Not equal to Elesis
              • (Level of (Hero manipulating item)) Less than 22
        • Then - Actions
          • Hero - Drop (Item being manipulated) from (Hero manipulating item)
          • Floating Text - Create floating text that reads Your hero doesn't m... above (Hero manipulating item) with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
          • Floating Text - Change (Last created floating text): Disable permanence
          • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
        • Else - Actions
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Item-type of (Item being manipulated)) Equal to Skill Tree (Elesis)
      • Then - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Or - Any (Conditions) are true
              • Conditions
                • (Unit-type of (Hero manipulating item)) Not equal to Elesis
                • (Level of (Hero manipulating item)) Less than 22
          • Then - Actions
            • Hero - Drop (Item being manipulated) from (Hero manipulating item)
            • Floating Text - Create floating text that reads Your hero doesn't m... above (Hero manipulating item) with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
            • Floating Text - Change (Last created floating text): Disable permanence
            • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
          • Else - Actions
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Item-type of (Item being manipulated)) Equal to Skill Tree (Lire)
      • Then - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Or - Any (Conditions) are true
              • Conditions
                • (Unit-type of (Hero manipulating item)) Not equal to Lire
                • (Level of (Hero manipulating item)) Less than 22
          • Then - Actions
            • Hero - Drop (Item being manipulated) from (Hero manipulating item)
            • Floating Text - Create floating text that reads Your hero doesn't m... above (Hero manipulating item) with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
            • Floating Text - Change (Last created floating text): Disable permanence
            • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
          • Else - Actions
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Item-type of (Item being manipulated)) Equal to Skill Tree (Lire No.2)
      • Then - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Or - Any (Conditions) are true
              • Conditions
                • (Unit-type of (Hero manipulating item)) Not equal to Lire
                • (Level of (Hero manipulating item)) Less than 22
          • Then - Actions
            • Hero - Drop (Item being manipulated) from (Hero manipulating item)
            • Floating Text - Create floating text that reads Your hero doesn't m... above (Hero manipulating item) with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
            • Floating Text - Change (Last created floating text): Disable permanence
            • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
          • Else - Actions
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Item-type of (Item being manipulated)) Equal to Skill Tree (Arme No.2)
      • Then - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Or - Any (Conditions) are true
              • Conditions
                • (Unit-type of (Hero manipulating item)) Not equal to Arme
                • (Level of (Hero manipulating item)) Less than 25
          • Then - Actions
            • Hero - Drop (Item being manipulated) from (Hero manipulating item)
            • Floating Text - Create floating text that reads Your hero doesn't m... above (Hero manipulating item) with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
            • Floating Text - Change (Last created floating text): Disable permanence
            • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
          • Else - Actions
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Item-type of (Item being manipulated)) Equal to Skill Tree (Arme)
      • Then - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Or - Any (Conditions) are true
              • Conditions
                • (Unit-type of (Hero manipulating item)) Not equal to Arme
                • (Level of (Hero manipulating item)) Less than 25
          • Then - Actions
            • Hero - Drop (Item being manipulated) from (Hero manipulating item)
            • Floating Text - Create floating text that reads Your hero doesn't m... above (Hero manipulating item) with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
            • Floating Text - Change (Last created floating text): Disable permanence
            • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
          • Else - Actions
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Item-type of (Item being manipulated)) Equal to Skill Tree (Lass)
      • Then - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Or - Any (Conditions) are true
              • Conditions
                • (Unit-type of (Hero manipulating item)) Not equal to Slasher
                • (Level of (Hero manipulating item)) Less than 22
          • Then - Actions
            • Hero - Drop (Item being manipulated) from (Hero manipulating item)
            • Floating Text - Create floating text that reads Your hero doesn't m... above (Hero manipulating item) with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
            • Floating Text - Change (Last created floating text): Disable permanence
            • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
          • Else - Actions
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Item-type of (Item being manipulated)) Equal to Skill Tree (Lass No.2)
      • Then - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Or - Any (Conditions) are true
              • Conditions
                • (Unit-type of (Hero manipulating item)) Not equal to Slasher
                • (Level of (Hero manipulating item)) Less than 22
          • Then - Actions
            • Hero - Drop (Item being manipulated) from (Hero manipulating item)
            • Floating Text - Create floating text that reads Your hero doesn't m... above (Hero manipulating item) with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
            • Floating Text - Change (Last created floating text): Disable permanence
            • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
          • Else - Actions
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Item-type of (Item being manipulated)) Equal to Skill Tree (Ryan)
      • Then - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Or - Any (Conditions) are true
              • Conditions
                • (Unit-type of (Hero manipulating item)) Not equal to Ryan
                • (Level of (Hero manipulating item)) Less than 22
          • Then - Actions
            • Hero - Drop (Item being manipulated) from (Hero manipulating item)
            • Floating Text - Create floating text that reads Your hero doesn't m... above (Hero manipulating item) with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
            • Floating Text - Change (Last created floating text): Disable permanence
            • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
          • Else - Actions
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Item-type of (Item being manipulated)) Equal to Skill Tree (Ryan No.2)
      • Then - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Or - Any (Conditions) are true
              • Conditions
                • (Unit-type of (Hero manipulating item)) Not equal to Ryan
                • (Level of (Hero manipulating item)) Less than 22
          • Then - Actions
            • Hero - Drop (Item being manipulated) from (Hero manipulating item)
            • Floating Text - Create floating text that reads Your hero doesn't m... above (Hero manipulating item) with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
            • Floating Text - Change (Last created floating text): Disable permanence
            • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
          • Else - Actions
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Item-type of (Item being manipulated)) Equal to Skill Tree (Elesis 2nd Bar Skill)
      • Then - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Or - Any (Conditions) are true
              • Conditions
                • (Unit-type of (Hero manipulating item)) Not equal to Elesis
                • (Level of (Hero manipulating item)) Less than 33
          • Then - Actions
            • Hero - Drop (Item being manipulated) from (Hero manipulating item)
            • Floating Text - Create floating text that reads Your hero doesn't m... above (Hero manipulating item) with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
            • Floating Text - Change (Last created floating text): Disable permanence
            • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
          • Else - Actions
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Item-type of (Item being manipulated)) Equal to Skill Tree (Lire 2nd Bar Skill)
      • Then - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Or - Any (Conditions) are true
              • Conditions
                • (Unit-type of (Hero manipulating item)) Not equal to Lire
                • (Level of (Hero manipulating item)) Less than 33
          • Then - Actions
            • Hero - Drop (Item being manipulated) from (Hero manipulating item)
            • Floating Text - Create floating text that reads Your hero doesn't m... above (Hero manipulating item) with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
            • Floating Text - Change (Last created floating text): Disable permanence
            • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
          • Else - Actions
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Item-type of (Item being manipulated)) Equal to Skill Tree (Arme 2nd Bar Skill No.1)
      • Then - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Or - Any (Conditions) are true
              • Conditions
                • (Unit-type of (Hero manipulating item)) Not equal to Arme
                • (Level of (Hero manipulating item)) Less than 35
          • Then - Actions
            • Hero - Drop (Item being manipulated) from (Hero manipulating item)
            • Floating Text - Create floating text that reads Your hero doesn't m... above (Hero manipulating item) with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
            • Floating Text - Change (Last created floating text): Disable permanence
            • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
          • Else - Actions
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Item-type of (Item being manipulated)) Equal to Skill Tree (Arme 2nd Bar Skill No.2)
      • Then - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Or - Any (Conditions) are true
              • Conditions
                • (Unit-type of (Hero manipulating item)) Not equal to Arme
                • (Level of (Hero manipulating item)) Less than 35
          • Then - Actions
            • Hero - Drop (Item being manipulated) from (Hero manipulating item)
            • Floating Text - Create floating text that reads Your hero doesn't m... above (Hero manipulating item) with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
            • Floating Text - Change (Last created floating text): Disable permanence
            • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
          • Else - Actions
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Item-type of (Item being manipulated)) Equal to Skill Tree (Lass 2nd Bar Skill)
      • Then - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Or - Any (Conditions) are true
              • Conditions
                • (Unit-type of (Hero manipulating item)) Not equal to Slasher
                • (Level of (Hero manipulating item)) Less than 33
          • Then - Actions
            • Hero - Drop (Item being manipulated) from (Hero manipulating item)
            • Floating Text - Create floating text that reads Your hero doesn't m... above (Hero manipulating item) with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
            • Floating Text - Change (Last created floating text): Disable permanence
            • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
          • Else - Actions
      • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Item-type of (Item being manipulated)) Equal to Skill Tree (Ryan 2nd Bar Skill)
      • Then - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Or - Any (Conditions) are true
              • Conditions
                • (Unit-type of (Hero manipulating item)) Not equal to Ryan
                • (Level of (Hero manipulating item)) Less than 33
          • Then - Actions
            • Hero - Drop (Item being manipulated) from (Hero manipulating item)
            • Floating Text - Create floating text that reads Your hero doesn't m... above (Hero manipulating item) with Z offset 0.00, using font size 8.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
            • Floating Text - Change (Last created floating text): Disable permanence
            • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
          • Else - Actions
      • Else - Actions
    • Else - Actions


Other parts of my trigger seems to work but I always have problem with these parts. Not sure if it's the conditions but what I want is for the item to be only acquirable for the specified hero and can only be worn at a certain level.

EDIT: Sorry, but I can't post the whole trigger. It was too long. I've just found out that all skill tree parts of this trigger doesn't work so that's why it's the only thing that i posted. Other items like the weapons, armors, and accessories work. The item class of the skill tree items are miscellaneous(not sure if that was the problem) and it's the only one that doesn't work. Need help, please hurry.
 

NeuroToxin

New Member
Reaction score
46
Please explain what this is supposed to do. And the correct tags are
Trigger:
  • [ /wc3]
 
Reaction score
7
I think it only allows certain types of Heroes to pick up certain types of items, and only at or above level 22. So, only Elesis can pick up Skill Tree (Elesis) or Skill Tree (Elesis No.2) etc.

Is this in the 'Acquires an item' unit event?

Please explain exactly what it's doing or not doing that it shouldn't.
 

silentgamerz

New Member
Reaction score
0
sorry about that. it's an acquire item event which allows items only for specific heroes and only at a certain level. other parts of the actions work except for the given above.
the problem is that the items given above doesn't follow the conditions that i made.
 

Inflicted

Currently inactive
Reaction score
63
hmm this might be a lame solution, but maybe try chopping it up into many triggers?

just to test and see which you did wrong, maybe you will notice small errors in the individual parts this way.
Just an idea.
 

NeuroToxin

New Member
Reaction score
46
Individual triggers is a bad idea. Use a loop. Set each item type to a variable, set the hero required to a variable and set the item required to a variable (Note that each of the variable numbers in the array of heroes and requirements MUST match up with the correct item in the item type array.)

Then just loop through them all.
 

silentgamerz

New Member
Reaction score
0
thx but i already solved problem. i accidentally put the if then else action in another if then else action. wat a stupid mistake.
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top