Does This Trigger Work?

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
You don't really need that loop there. You're just dropping the item from the unit. Make sure to reset the integer variable to 1 after the item is dropped, as well.
 

Tinki3

Special Member
Reaction score
418
>I was wondering if this trigger will actually work

Yes, it will, but only for one unit.

This trigger will work just fine:
Code:
Item Limit
    Events
        Unit - A unit Acquires an item
    Conditions
        (Item-class of (Item being manipulated)) Equal to Artifact
    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 carried by (Hero manipulating item) in slot (Integer A))) Equal to Artifact
                    Then - Actions
                        Set ItemCount = (ItemCount + 1)
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                ItemCount Greater than 1
                            Then - Actions
                                Hero - Drop the item from slot (Integer A) of (Hero manipulating item)
                            Else - Actions
                    Else - Actions
        Set ItemCount = 0
 
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