A unit Sells an item

HydraRancher

Truth begins in lies
Reaction score
197
Trigger:
  • Potion
    • Events
      • Unit - A unit Sells an item (from shop)
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Hero manipulating item)) Food used) Greater than or equal to (Integer((Current life of (Item being manipulated))))
        • Then - Actions
          • Player - Add ((Integer((Current life of (Item being manipulated)))) x -1) to (Owner of (Hero manipulating item)) Food used
        • Else - Actions
          • Item - Remove (Item being manipulated)


I cant seem to retrieve the unit that actually purchases the item for this trigger.
 

Pharaoh_

The epic journey will soon begin... Prepare!
Reaction score
136
It is "Buying unit" , not "Hero Manipulating Item", actually.
 

HydraRancher

Truth begins in lies
Reaction score
197
I did here are my full triggers, they dont seem to work:

Trigger:
  • Refund
    • Events
      • Unit - A unit Pawns an item (to shop)
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (((Owner of (Selling unit)) Food used) + (Integer(((Current life of (Item being manipulated)) / 2.00)))) Less than or equal to ((Owner of (Buying unit)) Food max)
        • Then - Actions
          • Player - Add (Integer((Current life of (Item being manipulated)))) to (Owner of (Selling unit)) Food used
        • Else - Actions
          • Player - Set (Owner of (Selling unit)) Food used to ((Owner of (Selling unit)) Food max)


Trigger:
  • Potion
    • Events
      • Unit - A unit Sells an item (from shop)
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Buying unit)) Food used) Greater than or equal to (Integer((Current life of (Item being manipulated))))
        • Then - Actions
          • Player - Add ((Integer((Current life of (Item being manipulated)))) x -1) to (Owner of (Buying unit)) Food used
        • Else - Actions
          • Item - Remove (Item being manipulated)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top