• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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