Leazy
You can change this now in User CP.
- Reaction score
- 50
Hello,
I made a trigger which is suppose to add to a variable the dmg done when you attack a unit.
So, I made these triggers:
Works, however some times it displays ''u did 0 dmg!'', why is this? (The DMG dealer is a lvl 10 tauren chieftain)
I made a trigger which is suppose to add to a variable the dmg done when you attack a unit.
So, I made these triggers:
Code:
Get Unit Damage Setup A
Events
Map initialization
Conditions
Actions
Set UnitGroup[1] = (Units in (Playable map area))
Unit Group - Pick every unit in UnitGroup[1] and do (Actions)
Loop - Actions
Trigger - Add to Get Unit Damage <gen> the event (Unit - (Picked unit) Takes damage)
Custom script: call DestroyGroup(udg_UnitGroup[1])
Custom script: call DestroyTrigger( GetTriggeringTrigger() )
Code:
Get Unit Damage Setup B
Events
Unit - A unit enters (Playable map area)
Conditions
Actions
Trigger - Add to Get Unit Damage <gen> the event (Unit - (Entering unit) Takes damage)
Code:
Get Unit Damage NO SPELL DMG
Events
Unit - A unit Begins channeling an ability
Unit - A unit Starts the effect of an ability
Unit - A unit Begins casting an ability
Conditions
Actions
Unit Group - Remove (Triggering unit) from DMGUnitGroup
Code:
Get Unit Damage YES TO ATTACK DMG
Events
Unit - A unit Is attacked
Conditions
Actions
Unit Group - Add (Attacking unit) to DMGUnitGroup
Code:
Get Unit Damage
Events
Conditions
((Damage source) is in DMGUnitGroup) Equal to True
((Damage source) is A Hero) Equal to True
Actions
Quest - Display to (Player group((Owner of (Damage source)))) the Quest Update message: (u did + ((String((Integer((Damage taken))))) + dmg!))
Set UnitDamage[(Player number of (Owner of (Damage source)))] = (Damage taken)
Works, however some times it displays ''u did 0 dmg!'', why is this? (The DMG dealer is a lvl 10 tauren chieftain)