Item conditions not working

Level 8
Joined
Jul 18, 2010
Messages
332
My trigger ignores the condition I made for it and just goes directly to the actions.
  • epic item conditions
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • ((Hero manipulating item) is A Hero) Equal to True
    • 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 (Azin) (No.1 - 1)
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Hero manipulating item)) Not equal to Azin Tyrin
              • (Level of (Hero manipulating item)) Less than 15
            • 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
              • Wait 0.03 seconds
              • Item - Remove (Item being manipulated)
              • Set secrets = 1
              • Unit - Add Skill Tree (Azin) (No.1 - 1) to (Hero manipulating item)
              • Special Effect - Create a special effect attached to the overhead of (Triggering unit) using HolyBlast.mdx
              • Special Effect - Destroy (Last created special effect)
              • Floating Text - Create floating text that reads SUCCESS!! above (Triggering unit) with Z offset 0.00, using font size 8.00, color (0.00%, 100.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
      • 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 (Azin) (No.1 - 2)
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • And - All (Conditions) are true
                • Conditions
                  • (Unit-type of (Hero manipulating item)) Not equal to Azin Tyrin
                  • (Level of (Hero manipulating item)) Less than 25
                  • secrets Not equal to 1
            • 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
              • Wait 0.03 seconds
              • Item - Remove (Item being manipulated)
              • Unit - Add Skill Tree (Azin) (No.1 - 2) to (Hero manipulating item)
              • Special Effect - Create a special effect attached to the overhead of (Triggering unit) using HolyBlast.mdx
              • Special Effect - Destroy (Last created special effect)
              • Floating Text - Create floating text that reads SUCCESS!! above (Triggering unit) with Z offset 0.00, using font size 8.00, color (0.00%, 100.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
      • 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 (Azin) (No.1 - 3)
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Hero manipulating item)) Not equal to Azin Tyrin
              • (Level of (Hero manipulating item)) Less than 40
              • secrets Not equal to 1
            • 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
              • Wait 0.03 seconds
              • Item - Remove (Item being manipulated)
              • Unit - Add Skill Tree (Azin) (No.1 - 3) to (Hero manipulating item)
              • Special Effect - Create a special effect attached to the overhead of (Triggering unit) using HolyBlast.mdx
              • Special Effect - Destroy (Last created special effect)
              • Floating Text - Create floating text that reads SUCCESS!! above (Triggering unit) with Z offset 0.00, using font size 8.00, color (0.00%, 100.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
      • 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 (Azin) (No.2 - 1)
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Hero manipulating item)) Not equal to Azin Tyrin
              • (Level of (Hero manipulating item)) Less than 20
            • 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
              • Wait 0.03 seconds
              • Item - Remove (Item being manipulated)
              • Unit - Add Skill Tree (Azin) (No.2 - 1) to (Hero manipulating item)
              • Special Effect - Create a special effect attached to the overhead of (Triggering unit) using HolyBlast.mdx
              • Special Effect - Destroy (Last created special effect)
              • Floating Text - Create floating text that reads SUCCESS!! above (Triggering unit) with Z offset 0.00, using font size 8.00, color (0.00%, 100.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
      • 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 (Azin) (No.2 - 2)
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Hero manipulating item)) Not equal to Azin Tyrin
              • (Level of (Hero manipulating item)) Less than 32
            • 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
              • Wait 0.03 seconds
              • Item - Remove (Item being manipulated)
              • Unit - Add Skill Tree (Azin) (No.2 - 2) to (Hero manipulating item)
              • Special Effect - Create a special effect attached to the overhead of (Triggering unit) using HolyBlast.mdx
              • Special Effect - Destroy (Last created special effect)
              • Floating Text - Create floating text that reads SUCCESS!! above (Triggering unit) with Z offset 0.00, using font size 8.00, color (0.00%, 100.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
      • 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 (Azin) (No.2 - 3)
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Hero manipulating item)) Not equal to Azin Tyrin
              • (Level of (Hero manipulating item)) Less than 48
            • 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
              • Wait 0.03 seconds
              • Item - Remove (Item being manipulated)
              • Unit - Add Skill Tree (Azin) (No.2 - 3) to (Hero manipulating item)
              • Special Effect - Create a special effect attached to the overhead of (Triggering unit) using HolyBlast.mdx
              • Special Effect - Destroy (Last created special effect)
              • Floating Text - Create floating text that reads SUCCESS!! above (Triggering unit) with Z offset 0.00, using font size 8.00, color (0.00%, 100.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
      • 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 (Lime) (No.1 - 1)
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Hero manipulating item)) Not equal to Lime Serenity
              • (Level of (Hero manipulating item)) Less than 20
            • 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
              • Wait 0.03 seconds
              • Item - Remove (Item being manipulated)
              • Unit - Add Skill Tree (Lime) (No.1 - 1) to (Hero manipulating item)
              • Special Effect - Create a special effect attached to the overhead of (Triggering unit) using HolyBlast.mdx
              • Special Effect - Destroy (Last created special effect)
              • Floating Text - Create floating text that reads SUCCESS!! above (Triggering unit) with Z offset 0.00, using font size 8.00, color (0.00%, 100.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
      • 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 (Lime) (No.1 - 2)
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Hero manipulating item)) Not equal to Lime Serenity
              • (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
              • Wait 0.03 seconds
              • Item - Remove (Item being manipulated)
              • Unit - Add Skill Tree (Lime) (No.1 - 2) to (Hero manipulating item)
              • Special Effect - Create a special effect attached to the overhead of (Triggering unit) using HolyBlast.mdx
              • Special Effect - Destroy (Last created special effect)
              • Floating Text - Create floating text that reads SUCCESS!! above (Triggering unit) with Z offset 0.00, using font size 8.00, color (0.00%, 100.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
      • 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 (Lime) (No.1 - 3)
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of (Hero manipulating item)) Less than 51
              • (Unit-type of (Hero manipulating item)) Not equal to Lime Serenity
            • 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
              • Wait 0.03 seconds
              • Item - Remove (Item being manipulated)
              • Unit - Add Skill Tree (Lime) (No.1 - 3) to (Hero manipulating item)
              • Special Effect - Create a special effect attached to the overhead of (Triggering unit) using HolyBlast.mdx
              • Special Effect - Destroy (Last created special effect)
              • Floating Text - Create floating text that reads SUCCESS!! above (Triggering unit) with Z offset 0.00, using font size 8.00, color (0.00%, 100.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
      • 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 (Lime) (No.2 - 2)
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Hero manipulating item)) Not equal to Lime Serenity
              • (Level of (Hero manipulating item)) Less than 30
            • 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
              • Wait 0.03 seconds
              • Item - Remove (Item being manipulated)
              • Unit - Add Skill Tree (Lime) (No.2 - 2) to (Hero manipulating item)
              • Special Effect - Create a special effect attached to the overhead of (Triggering unit) using HolyBlast.mdx
              • Special Effect - Destroy (Last created special effect)
              • Floating Text - Create floating text that reads SUCCESS!! above (Triggering unit) with Z offset 0.00, using font size 8.00, color (0.00%, 100.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
      • 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 (Lime) (No.2 - 1)
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Hero manipulating item)) Not equal to Lime Serenity
              • (Level of (Hero manipulating item)) Less than 18
            • 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
              • Wait 0.03 seconds
              • Item - Remove (Item being manipulated)
              • Unit - Add Skill Tree (Lime) (No.2 - 1) to (Hero manipulating item)
              • Special Effect - Create a special effect attached to the overhead of (Triggering unit) using HolyBlast.mdx
              • Special Effect - Destroy (Last created special effect)
              • Floating Text - Create floating text that reads SUCCESS!! above (Triggering unit) with Z offset 0.00, using font size 8.00, color (0.00%, 100.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
      • 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 (Lime) (No.2 - 3)
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Hero manipulating item)) Not equal to Lime Serenity
              • (Level of (Hero manipulating item)) Less than 45
            • 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
              • Wait 0.03 seconds
              • Item - Remove (Item being manipulated)
              • Unit - Add Skill Tree (Lime) (No.2 - 3) to (Hero manipulating item)
              • Special Effect - Create a special effect attached to the overhead of (Triggering unit) using HolyBlast.mdx
              • Special Effect - Destroy (Last created special effect)
              • Floating Text - Create floating text that reads SUCCESS!! above (Triggering unit) with Z offset 0.00, using font size 8.00, color (0.00%, 100.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
Well they're all the same but they all ignore the conditions I gave. Anybody knows why?

Note: I've made this trigger at the time I had an issue with large arrays. Almost all of my triggers stopped working. I needed to fix the variables that had large arrays and shrink them to just 1. It worked but I'm not sure if it has something to do with this.
I'm having the issue again at this time but this time it's not about arrays but it could have something to do with my newly imported model. It could have been corrupted.
 
Level 27
Joined
Jan 26, 2007
Messages
4,788
So it always drops the item, no matter what you try?
Would you mind uploading the map? If you do meet the level/unit-type requirement, there's no reason it should still drop the item.

What are "Large arrays"? Arrays can go up to 8191, after that they just stop working (because it's coded that way).

(By the way: in my head it sounds more logical to drop the item if you fail to meet the conditions, but that doesn't really matter :D).
 
Level 36
Joined
Mar 6, 2006
Messages
9,243
also if you use a wait value less than 0.27,the result will be 0.27 too.
so the delay you are putting is 0.27 not 0.03

Not quite. In single player, a value chose from [0.100, 0,125, 0,150, 0,175, 0,200] is added to the wait time.

0.00 becomes one of [0.100, 0,125, 0,150, 0,175, 0,200]
0.50 becomes one of [0.600, 0,625, 0,650, 0,675, 0,700]

The added value is chosen randomly each time.

I have not tested multiplayer.
 
Top