Soulbound Items

Tothumn

New Member
Reaction score
4
Hi!
I want to make that if a hero drops an item no one can pick it up, except the hero who dropped it.My relationship is not really good with variables so I'd like to get some help :)

Trigger:
  • DropItem
    • Events
      • Unit - A unit Loses an item
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Crafter
    • Actions


I need something below the 'Actions' what stores which player dropped that item.

Trigger:
  • Soulbound
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
        • Then - Actions
          • Do nothing
        • Else - Actions
          • Hero - Drop (Item being manipulated) from (Triggering unit)


I need something what checks if the item is dropped by that player who wants to pick it up.Someone please explain me what type of variable should I use , should it be Array or not, etc...
I have only 1unit/player on my map.
 

jig7c

Stop reading me...-statement
Reaction score
123
Trigger:
  • DropItem
    • Events
      • Unit - A unit Loses an item
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Crafter
    • Actions
      • Set ItemLoser = Triggering unit (unit variable)


Trigger:
  • Soulbound
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Item being manipulated equal to Soulbound
        • Acquiring unit equal to ItemLoser
      • Then - Actions
        • Do Nothing
      • Else - Actions
        • Hero - Drop (Item being manipulated) from (Triggering unit)
 

Tothumn

New Member
Reaction score
4
Thanks. +rep
It seems simple now :)
I understand variables but i couldn't make them myself :(
Ill test it when my map is ready to host on b.net because of testing.
I hope i will not have to completely change this trigger... I dont have inventory system, yet.
 
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