[ASK] how to earn gold depends on hero damage ??

omniversal

New Member
Reaction score
0
1.i want to ask how make a trigger that make we earn gold every time attack but the amount gold we earn is based on hero damage ( if our hero damage 1000 then we will get 1000 gold every attack , so the amount of gold we earn will always equal to our damage ) ???

2. how to make a trigger that make that make we earn gold every time attack but the amount gold we earn is based on the damage of hero ( if our hero damage 1000 then we will get 1000 gold every attack , so the amount of gold we earn will always equal to our damage ) and the trigger only active if we acquire an item that have set by us : example the trigger will active if we acquire "claw of attack" and the trigger will automatic turn off if the "Claw of attack" if we drop the item
 

NeuroToxin

New Member
Reaction score
46
You'd need a damage detection system, in both ones, Search around they have some, When you find one tell us which, ill help then, ill look around too
 

X-maul

AKA: Demtrod
Reaction score
201
1.i want to ask how make a trigger that make we earn gold every time attack but the amount gold we earn is based on hero damage ( if our hero damage 1000 then we will get 1000 gold every attack , so the amount of gold we earn will always equal to our damage ) ???

2. how to make a trigger that make that make we earn gold every time attack but the amount gold we earn is based on the damage of hero ( if our hero damage 1000 then we will get 1000 gold every attack , so the amount of gold we earn will always equal to our damage ) and the trigger only active if we acquire an item that have set by us : example the trigger will active if we acquire "claw of attack" and the trigger will automatic turn off if the "Claw of attack" if we drop the item

1. there is a system which checks damage taken, but thats JASS as far as i know...
2. for the system which activates a trigger upon picking up item.
there is a event which checks "Unit - Unit Aquires Item" or drops item.
then make an condition which check if minipulated item is your "Claw of attack"..
 

Hatebreeder

So many apples
Reaction score
381
It's not hard to write it in Jass.

Just use the instructions the system gives you after you've written code (mostly, it's just event registration and unit replacement (From GetTriggerUnit() into GetTriggerDamagedUnit() or something))
 
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