• 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.

Count damage done by Hero

Status
Not open for further replies.

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
You need the following system and JNGP.
http://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.
http://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.
Top