First the code:
now to my question:
i use the "AAAAAAAAAAZZZZZZZ" variable to monitor how often this code is running (how often the damage ticks), i turn the trigger on and let it run for 6 seconds. in theory, by using simple maths, 6 seconds at a triggerrate of 0.05 should result in 120 ticks am i right? somehow "AAAAAAAAAAZZZZZZZ" displays 150 ticks everytime i run it, also the dmg output isnt the dmg i calculated.
because the dmg was too high i got aware of that and found that it ticks more often then it should.
but why does it do that?
the activation trigger litteraly is just:
anyone knows why i get 30 ticks too much?
Code:
Nova dmg Hero
Ereignisse
Zeit - Every 0.05 seconds of game time
Bedingungen
Aktionen
Set AAAAAAAAAAZZZZZZZ = (AAAAAAAAAAZZZZZZZ + 1)
Set LN_damagedunits = (Units in Gebiet 147 <gen>)
Set group28 = (Units within 85.00 of (Position of LightningNova_Ball[1]) matching (((Matching unit) belongs to an enemy of (Owner of LightningNova_Wraith)) Gleich True))
Einheitengruppe - Pick every unit in group28 and do (Actions)
Schleifen - Aktionen
Einheitengruppe - Add (Picked unit) to LN_damagedunits
Set LN_Effect_Count[1] = (LN_Effect_Count[1] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
LN_Effect_Count[1] Größer gleich 6
'THEN'-Aktionen
Spezialeffekt - Create a special effect attached to the chest of (Picked unit) using Abilities\Weapons\VengeanceMissile\VengeanceMissile.mdl
Spezialeffekt - Destroy (Last created special effect)
Set LN_Effect_Count[1] = 0
'ELSE'-Aktionen
Custom script: call DestroyGroup (udg_group28)
Set group28 = (Units within 85.00 of (Position of LightningNova_Ball[2]) matching (((Matching unit) belongs to an enemy of (Owner of LightningNova_Wraith)) Gleich True))
Einheitengruppe - Pick every unit in group28 and do (Actions)
Schleifen - Aktionen
Einheitengruppe - Add (Picked unit) to LN_damagedunits
Set LN_Effect_Count[2] = (LN_Effect_Count[2] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
LN_Effect_Count[2] Größer gleich 6
'THEN'-Aktionen
Spezialeffekt - Create a special effect attached to the chest of (Picked unit) using Abilities\Weapons\VengeanceMissile\VengeanceMissile.mdl
Spezialeffekt - Destroy (Last created special effect)
Set LN_Effect_Count[2] = 0
'ELSE'-Aktionen
Custom script: call DestroyGroup (udg_group28)
Set group28 = (Units within 85.00 of (Position of LightningNova_Ball[3]) matching (((Matching unit) belongs to an enemy of (Owner of LightningNova_Wraith)) Gleich True))
Einheitengruppe - Pick every unit in group28 and do (Actions)
Schleifen - Aktionen
Einheitengruppe - Add (Picked unit) to LN_damagedunits
Set LN_Effect_Count[3] = (LN_Effect_Count[3] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
LN_Effect_Count[3] Größer gleich 6
'THEN'-Aktionen
Spezialeffekt - Create a special effect attached to the chest of (Picked unit) using Abilities\Weapons\VengeanceMissile\VengeanceMissile.mdl
Spezialeffekt - Destroy (Last created special effect)
Set LN_Effect_Count[3] = 0
'ELSE'-Aktionen
Custom script: call DestroyGroup (udg_group28)
Set group28 = (Units within 85.00 of (Position of LightningNova_Ball[4]) matching (((Matching unit) belongs to an enemy of (Owner of LightningNova_Wraith)) Gleich True))
Einheitengruppe - Pick every unit in group28 and do (Actions)
Schleifen - Aktionen
Einheitengruppe - Add (Picked unit) to LN_damagedunits
Set LN_Effect_Count[4] = (LN_Effect_Count[4] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
LN_Effect_Count[4] Größer gleich 6
'THEN'-Aktionen
Spezialeffekt - Create a special effect attached to the chest of (Picked unit) using Abilities\Weapons\VengeanceMissile\VengeanceMissile.mdl
Spezialeffekt - Destroy (Last created special effect)
Set LN_Effect_Count[4] = 0
'ELSE'-Aktionen
Custom script: call DestroyGroup (udg_group28)
Set dmg28 = (((0.42 + (0.06 x (Real((Level of Lightning Nova [E] wraith for LightningNova_Wraith))))) x (Real((Kraft of LightningNova_Wraith (Einschließen bonuses))))) / 20.00)
Einheitengruppe - Pick every unit in group28 and do (Actions)
Schleifen - Aktionen
Einheitengruppe - Add (Picked unit) to LN_damagedunits
Set LN_Effect_Count[5] = (LN_Effect_Count[5] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
LN_Effect_Count[5] Größer gleich 6
'THEN'-Aktionen
Spezialeffekt - Create a special effect attached to the chest of (Picked unit) using Abilities\Weapons\VengeanceMissile\VengeanceMissile.mdl
Spezialeffekt - Destroy (Last created special effect)
Set LN_Effect_Count[5] = 0
'ELSE'-Aktionen
Custom script: call DestroyGroup (udg_group28)
Set group28 = (Units within 85.00 of (Position of LightningNova_Ball[6]) matching (((Matching unit) belongs to an enemy of (Owner of LightningNova_Wraith)) Gleich True))
Einheitengruppe - Pick every unit in group28 and do (Actions)
Schleifen - Aktionen
Einheitengruppe - Add (Picked unit) to LN_damagedunits
Set LN_Effect_Count[6] = (LN_Effect_Count[6] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
LN_Effect_Count[6] Größer gleich 6
'THEN'-Aktionen
Spezialeffekt - Create a special effect attached to the chest of (Picked unit) using Abilities\Weapons\VengeanceMissile\VengeanceMissile.mdl
Spezialeffekt - Destroy (Last created special effect)
Set LN_Effect_Count[6] = 0
'ELSE'-Aktionen
Custom script: call DestroyGroup (udg_group28)
Einheitengruppe - Pick every unit in LN_damagedunits and do (Actions)
Schleifen - Aktionen
Set dmg28 = (((0.42 + (0.06 x (Real((Level of Lightning Nova [E] wraith for LightningNova_Wraith))))) / 20.00) x (Real((Kraft of LightningNova_Wraith (Einschließen bonuses)))))
Spiel - Display to (All players) the text: (String(AAAAAAAAAAZZZZZZZ))
Einheit - Cause LightningNova_Wraith to damage (Picked unit), dealing dmg28 damage of attack type Zaubersprüche and damage type Unbekannt
Custom script: call DestroyGroup (udg_LN_damagedunits)
now to my question:
i use the "AAAAAAAAAAZZZZZZZ" variable to monitor how often this code is running (how often the damage ticks), i turn the trigger on and let it run for 6 seconds. in theory, by using simple maths, 6 seconds at a triggerrate of 0.05 should result in 120 ticks am i right? somehow "AAAAAAAAAAZZZZZZZ" displays 150 ticks everytime i run it, also the dmg output isnt the dmg i calculated.
because the dmg was too high i got aware of that and found that it ticks more often then it should.
but why does it do that?
the activation trigger litteraly is just:
Code:
Nova cast Hero
Ereignisse
Einheit - A unit Startet den Effekt einer Fähigkeit
Bedingungen
(Ability being cast) Gleich Lightning Nova [E] wraith
Aktionen
Auslöser - Turn on Nova dmg Hero <gen>
Spezialeffekt - Create a special effect attached to the origin of LightningNova_Wraith using Abilities\Spells\Demon\DemonBoltImpact\DemonBoltImpact.mdl
Spezialeffekt - Destroy (Last created special effect)
Wait 0.50 seconds
Spezialeffekt - Create a special effect attached to the origin of LightningNova_Wraith using Abilities\Spells\Demon\DemonBoltImpact\DemonBoltImpact.mdl
Spezialeffekt - Destroy (Last created special effect)
Wait 0.50 seconds
Spezialeffekt - Create a special effect attached to the origin of LightningNova_Wraith using Abilities\Spells\Demon\DemonBoltImpact\DemonBoltImpact.mdl
Spezialeffekt - Destroy (Last created special effect)
Wait 0.50 seconds
Spezialeffekt - Create a special effect attached to the origin of LightningNova_Wraith using Abilities\Spells\Demon\DemonBoltImpact\DemonBoltImpact.mdl
Spezialeffekt - Destroy (Last created special effect)
Wait 0.50 seconds
Spezialeffekt - Create a special effect attached to the origin of LightningNova_Wraith using Abilities\Spells\Demon\DemonBoltImpact\DemonBoltImpact.mdl
Spezialeffekt - Destroy (Last created special effect)
Wait 0.50 seconds
Spezialeffekt - Create a special effect attached to the origin of LightningNova_Wraith using Abilities\Spells\Demon\DemonBoltImpact\DemonBoltImpact.mdl
Spezialeffekt - Destroy (Last created special effect)
Wait 0.50 seconds
Spezialeffekt - Create a special effect attached to the origin of LightningNova_Wraith using Abilities\Spells\Demon\DemonBoltImpact\DemonBoltImpact.mdl
Spezialeffekt - Destroy (Last created special effect)
Wait 0.50 seconds
Spezialeffekt - Create a special effect attached to the origin of LightningNova_Wraith using Abilities\Spells\Demon\DemonBoltImpact\DemonBoltImpact.mdl
Spezialeffekt - Destroy (Last created special effect)
Wait 0.50 seconds
Spezialeffekt - Create a special effect attached to the origin of LightningNova_Wraith using Abilities\Spells\Demon\DemonBoltImpact\DemonBoltImpact.mdl
Spezialeffekt - Destroy (Last created special effect)
Wait 0.50 seconds
Spezialeffekt - Create a special effect attached to the origin of LightningNova_Wraith using Abilities\Spells\Demon\DemonBoltImpact\DemonBoltImpact.mdl
Spezialeffekt - Destroy (Last created special effect)
Wait 0.50 seconds
Spezialeffekt - Create a special effect attached to the origin of LightningNova_Wraith using Abilities\Spells\Demon\DemonBoltImpact\DemonBoltImpact.mdl
Spezialeffekt - Destroy (Last created special effect)
Wait 0.50 seconds
Spezialeffekt - Create a special effect attached to the origin of LightningNova_Wraith using Abilities\Spells\Demon\DemonBoltImpact\DemonBoltImpact.mdl
Spezialeffekt - Destroy (Last created special effect)
Wait 0.50 seconds
Auslöser - Turn off Nova dmg Hero <gen>
anyone knows why i get 30 ticks too much?
Last edited: