D
DsD)Core(
Guest
Hey, I'm trying to make a ''damage meter'' for my map. What I got right now is:
And some commands that will call it. But they always say 0, so it seems like the damage is somehow not stored. Am I doing anything wrong?
Thanks!
JASS:
Globalsys damage meter
Events
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Attacking unit) belongs to an ally of Player 1 (Red)) Equal to True
((Attacked unit) belongs to an ally of Player 1 (Red)) Equal to True
Then - Actions
Unit - Order (Attacking unit) to Stop
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Attacking unit) belongs to an ally of Player 6 (Orange)) Equal to True
((Attacked unit) belongs to an ally of Player 6 (Orange)) Equal to True
Then - Actions
Unit - Order (Attacking unit) to Stop
Else - Actions
Set DmgDealt_Total[(Player number of (Owner of (Damage source)))] = (DmgDealt_Total[(Player number of (Owner of (Damage source)))] + (Damage taken))
Set DmgDealt_Round[(Player number of (Owner of (Damage source)))] = (DmgDealt_Round[(Player number of (Owner of (Damage source)))] + (Damage taken))
And some commands that will call it. But they always say 0, so it seems like the damage is somehow not stored. Am I doing anything wrong?
Thanks!