Pawn item add gold to allies

Aiden

Member
Reaction score
0
im thinking trigger like this ...

Events
Unit - A unit Pawns an item (to shop)
Actions
Player Group - Pick every player in (All allies of (Owner of (Triggering unit))) and do (Actions)
Loop - Actions
Player - Add ((Custom value of (Sold Item)) / (Number of players in Losbuenos[1])) to (Picked player) Current gold

The problem is this. how set the price of item and / per player of group.
 

Aiden

Member
Reaction score
0
I'm your Huckleberry.

I had this problem, and I figured it out.

If you want to be able to refer to the cost of *any/all* item with only 1 trigger line - simply set the *hit points* of every item equivalent to its cost - because you can refer to the hit points of an item via trigger.

But i dont know how set that variable.
what kind of variable i have to create?
 

0WN3D

New Member
Reaction score
15
I think it means to Player - Add ((life of (Sold Item)) / (Number of players in Losbuenos[1])) to (Picked player) Current gold
 

Aiden

Member
Reaction score
0
I think it means to Player - Add ((life of (Sold Item)) / (Number of players in Losbuenos[1])) to (Picked player) Current gold

wow that more simple.
i set this :
ITEM VALUE
Events
Unit - A unit Sells an item (from shop)
Conditions
Actions
Wait 0.02 seconds
Item - Set the custom value of (Sold Item) to (Integer((Current life of (Sold Item))))
 

Aiden

Member
Reaction score
0
I think it means to Player - Add ((life of (Sold Item)) / (Number of players in Losbuenos[1])) to (Picked player) Current gold

and one more thing
this will work? even the sold item not exist?
if sold item was sold ... dosent exist, right?
 
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