Hi again, I got a problem and I cant figur out what it is.
The trigger (visualization is a little buggy)
The text output is to check how many times it runs the loop. An it'll only show the message 2 times.
As you might see I'd like the variable TIME to count up (as replacement for the waits) until it reaches the value of 5 (5x0.2 = 1sec delay) to fulfill the requirements for the damage part.
I cant get the dmg properly to work. Either it is to fast (not matching the animation) or nothing at all. I tried a lot of different placements but so far I couldn't find the correct one.
The trigger (visualization is a little buggy)
-
Sun Blast
-

Ereignisse
-


Einheit - A unit Beginnt, eine Fähigkeit zu kanalisieren
-
-

Bedingungen
-


(Ability being cast) Gleich Sun Blast
-
-

Aktionen
-


-------- Setting up Variables --------
-


Set SunBlast_CASTER = (Triggering unit)
-


Set SunBlast_LIFE_GAIN = 0.10
-


Set SunBlast_DMG = (Kraft of SunBlast_CASTER (Einschließen bonuses))
-


Set SunBlast_MAX_LIFE = (Max. Leben of SunBlast_CASTER)
-


Set SunBlast_CASTER_POS = (Position of SunBlast_CASTER)
-


Set SunBlast_TIME = 0.00
-


Set SunBlast_EXPLOS = 0.00
-


Spezialeffekt - Create a special effect at SunBlast_CASTER_POS using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
-


Set SunBlast_EFCT = (Last created special effect)
-


Einheit - Set life of SunBlast_CASTER to ((Leben of SunBlast_CASTER) + (SunBlast_MAX_LIFE x SunBlast_LIFE_GAIN))
-


Spezialeffekt - Destroy SunBlast_EFCT
-


Auslöser - Run Sun Blast DMG <gen> (checking conditions)
-
-
-
Sun Blast DMG
-

Ereignisse
-


Zeit - Every 0.20 seconds of game time
-
-

Bedingungen
-

Aktionen
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



'IF'-Bedingungen
-




(SunBlast_CASTER is alive) Gleich True
-
-



'THEN'-Aktionen
-




Set SunBlast_GROUP = (Units within 350.00 of SunBlast_CASTER_POS matching ((((Matching unit) is Ein Gebäude) Ungleich True) and ((((Matching unit) is Immun gegen Magie) Ungleich True) and (((Matching unit) belongs to an enemy of (Owner of SunBlast_CASTER)) Gleich True))))
-




Set SunBlast_CASTER_POS = (Position of SunBlast_CASTER)
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





'IF'-Bedingungen
-





'THEN'-Aktionen
-






Einheitengruppe - Pick every unit in SunBlast_GROUP and do (Actions)
-







Schleifen - Aktionen
-








Spiel - Display to (All players) the text: 1
-








Set SunBlast_EXPLOS = (SunBlast_TIME + 1.00)
-








Set SunBlast_TIME = SunBlast_EXPLOS
-








Set SunBlast_CASTER_POS = (Position of SunBlast_CASTER)
-
-
-
-





'ELSE'-Aktionen
-
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





'IF'-Bedingungen
-






SunBlast_EXPLOS Gleich 5.00
-
-





'THEN'-Aktionen
-






Einheit - Cause SunBlast_CASTER to damage (Picked unit), dealing (50.00 + (Real(SunBlast_DMG))) damage of attack type Zaubersprüche and damage type Normal
-






Set SunBlast_TIME = 0.00
-






Custom script: call DestroyGroup(udg_SunBlast_GROUP)
-






Custom script: call RemoveLocation(udg_SunBlast_CASTER_POS)
-






Auslöser - Turn off (This trigger)
-
-





'ELSE'-Aktionen
-
-
-



'ELSE'-Aktionen
-
-
-
As you might see I'd like the variable TIME to count up (as replacement for the waits) until it reaches the value of 5 (5x0.2 = 1sec delay) to fulfill the requirements for the damage part.
I cant get the dmg properly to work. Either it is to fast (not matching the animation) or nothing at all. I tried a lot of different placements but so far I couldn't find the correct one.





