A test map, when I spam my custom spell, it crash, not on first try, you will have to spam spell like 4-5 times as soon as posible.
-
Does another map crash after spam spell ??
Code 1:
-
Does another map crash after spam spell ??
Code 1:
-
Untitled Trigger 001
-
Events
-
Unit - Far Seer 0000 <gen> Starts the effect of an ability
-
-
Conditions
-
Actions
-
Set W_d4_U[0] = (Triggering unit)
-
Set W_d4_U[1] = (Target unit of ability being cast)
-
Set W_d4_P = (Position of W_d4_U[1])
-
Unit Group - Remove all units from W_d4_UG
-
Wait 0.05 seconds
-
Unit - Pause (Triggering unit)
-
Unit - Hide W_d4_U[0]
-
Unit Group - Pick every unit in (Random 15 units from (Units within 250.00 of W_d4_P)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is alive) Equal to True
-
((Picked unit) is in W_d4_UG) Equal to False
-
((Picked unit) belongs to an enemy of (Owner of W_d4_U[0])) Equal to True
-
((Picked unit) is A structure) Equal to False
-
-
Then - Actions
-
Unit Group - Add (Picked unit) to W_d4_UG
-
-
Else - Actions
-
-
-
-
Trigger - Turn on Untitled Trigger 002 <gen>
-
Wait until ((Untitled Trigger 002 <gen> is on) Equal to False), checking every 0.10 seconds
-
Lightning - Destroy W_d4_L
-
Unit Group - Remove all units from W_d4_UG
-
Unit - Unpause W_d4_U[0]
-
-
-
Untitled Trigger 002
-
Events
-
Time - Every 0.05 seconds of game time
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Number of units in (Units within 300.00 of W_d4_P matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) is in W_d4_UG) Equal to False))))) Equal to 0
-
(Number of units in W_d4_UG) Equal to 0
-
-
-
-
Then - Actions
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
Unit Group - Pick every unit in (Random 1 units from W_d4_UG) and do (Actions)
-
Loop - Actions
-
Lightning - Destroy W_d4_L
-
Lightning - Create a Healing Wave - Primary lightning effect from source (Position of W_d4_U[0]) to target (Position of (Picked unit))
-
Set W_d4_L = (Last created lightning effect)
-
Unit - Move W_d4_U[0] instantly to ((Position of (Picked unit)) offset by -100.00 towards (Facing of (Picked unit)) degrees), facing (Facing of (Picked unit)) degrees
-
Animation - Play W_d4_U[0]'s attack animation
-
Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Human\Invisibility\InvisibilityTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Unit - Cause W_d4_U[0] to damage (Picked unit), dealing 75.00 damage of attack type Spells and damage type Magic
-
Unit Group - Remove (Picked unit) from W_d4_UG
-
-
-
-
-
-
Attachments
Last edited: