Limiting Item Classes Trigger Bug

illidan92

New Member
Reaction score
6
Okay so i'm trying to only limit heros to 1 item in their inventory of these classes: Permanent, artifact, and campaign.
My trigger currently doesn't let them pick up the item if it belongs to one of those classes even if their inventory is empty. Heres the trigger:
Code:
Events
    Unit - A unit Acquires an item
Conditions
Actions
    For each (Integer A) from 1 to 6, do (Actions)
        Loop - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                If - Conditions
                    (Item-class of (Item being manipulated)) Equal to (Item-class of (Item carried by (Hero manipulating item) in slot (Integer A)))
                    (Item-class of (Item being manipulated)) Not equal to Purchasable
                    (Item-class of (Item being manipulated)) Not equal to Powerup
                Then - Actions
                    Hero - Drop (Item being manipulated) from (Hero manipulating item)
                Else - Actions
                    Do nothing
No one can help me? Cmon peeps >.<
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> Your first condition is comparing the item the itself...

Not really, it's comparing classes...


You need two conditions:
item-class in inventory slot integer A equal to class of item being manipulated
item in slot integer A not equal to item being manipulated


And, you don't need this "do nothing", it isn't doing anything anyway.
 

illidan92

New Member
Reaction score
6
Thx ace man! Finally someone tells me how to do it, thx so much! I think I can release my new map today because of u, tytyty!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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