Limiting an Item of type

junz13

New Member
Reaction score
1
How can I limit the carrying of that item-type by one...per player/Hero/unit.
 

Sil3nt

SUP?
Reaction score
134
when a unit picks an item up, check if it has the items of the same type if it has a same type then drop the item. Im not sure how you would do the condition part tho
 

Jesus4Lyf

Good Idea™
Reaction score
397
Code:
Events
    Unit - A unit Acquires an item
Conditions
    (Item-type of (Item being manipulated)) Equal to X
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-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to (Item-type of (Item being manipulated))
                    (Item carried by (Hero manipulating item) in slot (Integer A)) Not equal to (Item being manipulated)
                Then - Actions
                    Hero - Drop (Item being manipulated) from (Hero manipulating item)
                    Skip remaining actions
                Else - Actions
 

Metov

New Member
Reaction score
4
need to drop the acquired item, then check if the unit has an item of that type. if not, add the item to the hero again.
 
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