- Joined
- Feb 22, 2025
- Messages
- 78
Created a spell - Summon Sindragosa:
-----------------------------------------------------------------------
Now, I'm wondering is there a way to damage units in SS_DMG_Group just once when they get hit by the frost breath and they continue to recieve damage if they stand in the frost splat while it lasts ? Can't think of a simple way of doing this...
-----------------------------------------------------------------------
-
SS Cast
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Summon Sindragosa
-
-
Actions
-
Set SS_Caster = (Triggering unit)
-
Set SS_Target_Point = (Target point of ability being cast)
-
Set SS_Spawn_Point = ((Position of SS_Caster) offset by (-300.00, 0.00))
-
Unit - Create 1 Sindragosa for (Owner of SS_Caster) at SS_Spawn_Point facing SS_Target_Point
-
Set SS_Sindragosa = (Last created unit)
-
Unit - Turn collision for SS_Sindragosa Off.
-
Animation - Change SS_Sindragosa flying height to 650.00 at 0.00
-
Animation - Play SS_Sindragosa's birth animation
-
Countdown Timer - Start SS_Delay_Timer as a One-shot timer that will expire in 1.30 seconds
-
Set SS_Delay_Timer = (Last started timer)
-
Hashtable - Create a hashtable
-
Set SS_Hashtable = (Last created hashtable)
-
Hashtable - Save Handle OfSS_Sindragosa as (Key SS_Caster.) of 0 in SS_Hashtable.
-
Hashtable - Save Handle OfSS_Caster as (Key SS_Sindragosa.) of 1 in SS_Hashtable.
-
Hashtable - Save Handle OfSS_Target_Point as (Key SS_Caster.) of 2 in SS_Hashtable.
-
Custom script: call RemoveLocation( udg_SS_Spawn_Point)
-
-
-
SS Delay
-
Events
-
Time - SS_Delay_Timer expires
-
-
Conditions
-
(Load (Key SS_Caster.) of 0 in SS_Hashtable.) Not equal to No unit
-
-
Actions
-
Set SS_Sindragosa = (Load (Key SS_Caster.) of 0 in SS_Hashtable.)
-
Set SS_Caster = (Load (Key SS_Sindragosa.) of 1 in SS_Hashtable.)
-
Set SS_Target_Point = (Load (Key SS_Caster.) of 2 in SS_Hashtable.)
-
Animation - Reset SS_Sindragosa's animation
-
Trigger - Turn on SS Move <gen>
-
Trigger - Turn on SS SFX <gen>
-
-
-
SS Move
-
Events
-
Time - Every 0.03 seconds of game time
-
-
Conditions
-
(Load (Key SS_Caster.) of 0 in SS_Hashtable.) Not equal to No unit
-
-
Actions
-
Set SS_Current_Position = (Position of SS_Sindragosa)
-
Set SS_Direction = (Angle from SS_Current_Position to SS_Target_Point)
-
Set SS_Move_Offset = (SS_Current_Position offset by 25.00 towards SS_Direction degrees.)
-
Unit - Move SS_Sindragosa instantly to SS_Move_Offset
-
Set SS_Damage_Offset = (SS_Move_Offset offset by 300.00 towards SS_Direction degrees.)
-
Set SS_DMG_Group = (Units within 200.00 of SS_Damage_Offset matching ((((Matching unit) belongs to an enemy of (Owner of SS_Caster).) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) is hidden) Equal to False))).)
-
Unit Group - Pick every unit in SS_DMG_Group and do (Actions)
-
Loop - Actions
-
Unit - Cause SS_Caster to damage (Picked unit), dealing 50.00 damage of attack type Spells and damage type Normal
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Distance between SS_Move_Offset and SS_Target_Point) Less than 25.00
-
-
Then - Actions
-
Trigger - Turn off (This trigger)
-
Trigger - Turn off SS SFX <gen>
-
Custom script: call RemoveLocation( udg_SS_Move_Offset)
-
Custom script: call RemoveLocation( udg_SS_Damage_Offset)
-
Custom script: call RemoveLocation( udg_SS_Target_Point)
-
Hashtable - Clear SS_Hashtable
-
Animation - Play SS_Sindragosa's death animation
-
Wait 2.00 seconds
-
Unit - Remove SS_Sindragosa from the game
-
-
Else - Actions
-
-
Custom script: call RemoveLocation( udg_SS_Current_Position)
-
Custom script: call DestroyGroup( udg_SS_DMG_Group)
-
-
-
SS SFX
-
Events
-
Time - Every 0.33 seconds of game time
-
-
Conditions
-
Actions
-
Special Effect - Create a special effect at SS_Damage_Offset using Sfx_Arthas_LichKing_Sindragosa_Splat.mdx
-
Set SS_Frost = (Last created special effect)
-
Special Effect - Set Scale of SS_Frost to 0.30
-
Special Effect - Set Time Scale of SS_Frost to 0.50
-
Special Effect - Destroy SS_Frost
-
-
Now, I'm wondering is there a way to damage units in SS_DMG_Group just once when they get hit by the frost breath and they continue to recieve damage if they stand in the frost splat while it lasts ? Can't think of a simple way of doing this...