Count damage done by Hero

Status
Not open for further replies.
You need the following system and JNGP.
https://www.hiveworkshop.com/forums...tion-v1-2-1-a-149098/?prev=d=list&r=20&u=Weep

  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Hashtable - Create a hashtable
      • Set myHash = (Last created hashtable)
  • Display Damage
    • Events
      • Game - GDD_Event becomes Equal to 0.00
    • Conditions
    • Actions
      • -------- you need to create a integer variable named "key" --------
      • Custom script: local integer udg_key = GetHandleId(udg_GDD_DamageSource)
      • Set damage_done = (Load 1 of key from myHash)
      • Set damage_done = (damage_done + GDD_Damage)
      • Hashtable - Save damage_done as 1 of key in myHash
      • Game - Display to (All players) the text: (Damage Done: + (String(damage_done)))
 
You need the following system and JNGP.
https://www.hiveworkshop.com/forums...tion-v1-2-1-a-149098/?prev=d=list&r=20&u=Weep

  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Hashtable - Create a hashtable
      • Set myHash = (Last created hashtable)
  • Display Damage
    • Events
      • Game - GDD_Event becomes Equal to 0.00
    • Conditions
    • Actions
      • -------- you need to create a integer variable named "key" --------
      • Custom script: local integer udg_key = GetHandleId(udg_GDD_DamageSource)
      • Set damage_done = (Load 1 of key from myHash)
      • Set damage_done = (damage_done + GDD_Damage)
      • Hashtable - Save damage_done as 1 of key in myHash
      • Game - Display to (All players) the text: (Damage Done: + (String(damage_done)))
Thanx :)
 
Status
Not open for further replies.
Back
Top