FireBladesX
Eating my wings!
- Reaction score
- 123
I have this map where I'm making all of the diablo sorceress spells, and they've all worked perfect until I added the fireball spell (very simple spell compared to the other ones). Then my computer randomly freezes while I'm testing it.
Does this ever happen? With the computer freezing, not just closing warcraft and saying fatal error.
I don't know what to do =(
EDIT: put in my trigger. It appears later as well.
Trigger 1 (unit casts ability)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Fire Ball
Then - Actions
Set L = (Position of (Triggering unit))
Unit - Create 1 Peasant for (Owner of (Triggering unit)) at L facing (Facing of (Triggering unit)) degrees
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Add Fire Ball to (Last created unit)
Unit - Set the custom value of (Last created unit) to (700 / 25)
Custom script: call RemoveLocation(udg_L)
Else - Actions
Trigger 2
Events
Time - Every 0.04 seconds of game time
Set G = (Units of type Peasant)
Unit Group - Pick every unit in G and do (Actions)
Loop - Actions
Set L = ((Position of (Picked unit)) offset by (Real((Custom value of (Picked unit)))) towards (Facing of (Picked unit)) degrees)
Unit - Move (Picked unit) instantly to L
Custom script: call RemoveLocation(udg_L)
If - Conditions
(Level of Fire Ball for (Picked unit)) Equal to 1
Then - Actions
Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Weapons\RedDragonBreath\RedDragonMissile.mdl
Special Effect - Destroy (Last created special effect)
Else - Actions
Custom script: call DestroyGroup(udg_G)
Trigger 3 (event: unit is damaged, damage source is a peasant, the peasants have an immolation)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Fire Ball for (Damage source)) Equal to 1
Then - Actions
Set G = (Units within 300.00 of (Position of (Triggering unit)) matching ((((Matching unit) belongs to an enemy of (Owner of (Damage source))) Equal to True) and (((Triggering unit) is alive) Equal to True)))
Unit Group - Pick every unit in G and do (Actions)
Loop - Actions
Unit - Cause Caster[(Player number of (Owner of (Damage source)))] to damage (Picked unit), dealing (Random real number between (150.00 + (2.00 x (Real(FireBall[(Player number of (Owner of (Damage source)))])))) and (350.00 + (6.00 x (Real(FireBall[(Player number of (Owner of (Damage source)))]))))) damage of attack type Spells and damage type Fire
Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Weapons\FireBallMissile\FireBallMissile.mdl
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect attached to the chest of (Triggering unit) using Abilities\Weapons\SteamTank\SteamTankImpact.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call DestroyGroup(udg_G)
Unit - Remove (Damage source) from the game
Else - Actions
Does this ever happen? With the computer freezing, not just closing warcraft and saying fatal error.
I don't know what to do =(
EDIT: put in my trigger. It appears later as well.
Trigger 1 (unit casts ability)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Fire Ball
Then - Actions
Set L = (Position of (Triggering unit))
Unit - Create 1 Peasant for (Owner of (Triggering unit)) at L facing (Facing of (Triggering unit)) degrees
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Add Fire Ball to (Last created unit)
Unit - Set the custom value of (Last created unit) to (700 / 25)
Custom script: call RemoveLocation(udg_L)
Else - Actions
Trigger 2
Events
Time - Every 0.04 seconds of game time
Set G = (Units of type Peasant)
Unit Group - Pick every unit in G and do (Actions)
Loop - Actions
Set L = ((Position of (Picked unit)) offset by (Real((Custom value of (Picked unit)))) towards (Facing of (Picked unit)) degrees)
Unit - Move (Picked unit) instantly to L
Custom script: call RemoveLocation(udg_L)
If - Conditions
(Level of Fire Ball for (Picked unit)) Equal to 1
Then - Actions
Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Weapons\RedDragonBreath\RedDragonMissile.mdl
Special Effect - Destroy (Last created special effect)
Else - Actions
Custom script: call DestroyGroup(udg_G)
Trigger 3 (event: unit is damaged, damage source is a peasant, the peasants have an immolation)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Fire Ball for (Damage source)) Equal to 1
Then - Actions
Set G = (Units within 300.00 of (Position of (Triggering unit)) matching ((((Matching unit) belongs to an enemy of (Owner of (Damage source))) Equal to True) and (((Triggering unit) is alive) Equal to True)))
Unit Group - Pick every unit in G and do (Actions)
Loop - Actions
Unit - Cause Caster[(Player number of (Owner of (Damage source)))] to damage (Picked unit), dealing (Random real number between (150.00 + (2.00 x (Real(FireBall[(Player number of (Owner of (Damage source)))])))) and (350.00 + (6.00 x (Real(FireBall[(Player number of (Owner of (Damage source)))]))))) damage of attack type Spells and damage type Fire
Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Weapons\FireBallMissile\FireBallMissile.mdl
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect attached to the chest of (Triggering unit) using Abilities\Weapons\SteamTank\SteamTankImpact.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call DestroyGroup(udg_G)
Unit - Remove (Damage source) from the game
Else - Actions