- Joined
- May 9, 2011
- Messages
- 228
anyone knows how to fix this trigger coz when i cast a spell near the shops it will blew the shops away
Massive Blast made by RMX
Massive Blast made by RMX
-
Massive Blast On
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Massive Blast
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in OnorOff) Equal to 0
-
Then - Actions
- Trigger - Turn on Massive Blast Loop <gen>
- Else - Actions
-
If - Conditions
- Set Times2 = (Times2 + 1)
- Set MB_Caster[Times2] = (Casting unit)
- -------- For not spamming the abilitie coz it create huge lag if spammed like 800 times still MUI --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (MB_Caster[Times2] is in OnorOff) Equal to False
-
Then - Actions
- Unit Group - Add MB_Caster[Times2] to OnorOff
- Set MB_Center[Times2] = (Position of MB_Caster[Times2])
- Set MBLevel[Times2] = (Level of Massive Blast for MB_Caster[Times2])
- -------- Settings that can be modified --------
- Set MB_Speed[Times2] = 16.00
- Set MB_Distance[Times2] = (((Real(MBLevel[Times2])) x 100.00) + 100.00)
- Set MB_Formula[Times2] = (MB_Distance[Times2] / MB_Speed[Times2])
- Set MB_Damage[Times2] = ((Real(MBLevel[Times2])) x 100.00)
- Set MB_Eyecandy1[Times2] = 90.00
- -------- This MB_Countbuff is for the effects Set it to 3 if u don't want the game to lag ! --------
- Set MB_Coutbuff[Times2] = 1
- -------- 477 range is coz if 450 the unit will have the slow effect but not get sucked into the Blast :) --------
- -------- It ensures unit getting in that Whirlpool :p --------
- Set MB_Group[Times2] = (Units within 477.00 of MB_Center[Times2] matching (((Owner of (Matching unit)) Not equal to (Owner of MB_Caster[Times2])) and (((Matching unit) is alive) Equal to True)))
-
Unit Group - Pick every unit in MB_Group[Times2] and do (Actions)
-
Loop - Actions
- Unit - Turn collision for (Picked unit) Off
-
Loop - Actions
- Set MB_HOW[Times2] = ((MBLevel[Times2] + 1) x 34)
- -------- ------------------------------------------------------------------ --------
- Set MB_Switch[Times2] = 0
-
Else - Actions
- Floating Text - Create floating text that reads |cff03dbffMassive B... above MB_Caster[Times2] with Z offset 0.00, using font size 10.00, color (0.00%, 0.00%, 100.00%), and 0.00% transparency
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
- Floating Text - Change the fading age of (Last created floating text) to 2.00 seconds
- Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
- Set MB_Caster[Times2] = No unit
- Set Times2 = (Times2 - 1)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Massive Blast Loop
-
Events
- Time - Every 0.03 seconds of game time
- Conditions
-
Actions
- -------- Plz do not touch if u Don't know what ur doing ! --------
-
For each (Integer MB_Loop) from 1 to Times2, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (MB_Caster[MB_Loop] is in OnorOff) Equal to True
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- MB_Switch[MB_Loop] Equal to 0
-
Then - Actions
- Set MB_Coutbuff[MB_Loop] = (MB_Coutbuff[MB_Loop] - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- MB_Coutbuff[MB_Loop] Equal to 0
-
Then - Actions
- Set MB_Coutbuff[MB_Loop] = 1
- Set MB_Eyecandy1[MB_Loop] = (MB_Eyecandy1[MB_Loop] + 11.00)
- Set MB_Point[6] = (MB_Center[MB_Loop] offset by 250.00 towards (MB_Eyecandy1[MB_Loop] + 90.00) degrees)
- Set MB_Point[7] = (MB_Center[MB_Loop] offset by 250.00 towards (MB_Eyecandy1[MB_Loop] + 270.00) degrees)
- Set MB_Point[5] = (MB_Center[MB_Loop] offset by 400.00 towards MB_Eyecandy1[MB_Loop] degrees)
- Set MB_Point[8] = (MB_Center[MB_Loop] offset by 400.00 towards (MB_Eyecandy1[MB_Loop] + 180.00) degrees)
- Special Effect - Create a special effect at MB_Point[8] using Abilities\Spells\Other\CrushingWave\CrushingWaveDamage.mdl
- Special Effect - Destroy (Last created special effect)
- Special Effect - Create a special effect at MB_Point[7] using Abilities\Spells\Other\CrushingWave\CrushingWaveDamage.mdl
- Special Effect - Destroy (Last created special effect)
- Special Effect - Create a special effect at MB_Point[5] using Abilities\Spells\Other\CrushingWave\CrushingWaveDamage.mdl
- Special Effect - Destroy (Last created special effect)
- Special Effect - Create a special effect at MB_Point[6] using Abilities\Spells\Other\CrushingWave\CrushingWaveDamage.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_MB_Point[5])
- Custom script: call RemoveLocation(udg_MB_Point[6])
- Custom script: call RemoveLocation(udg_MB_Point[7])
- Custom script: call RemoveLocation(udg_MB_Point[8])
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Random integer number between 1 and 7) Equal to 1
-
Then - Actions
- Special Effect - Create a special effect at MB_Center[MB_Loop] using Objects\Spawnmodels\Naga\NagaDeath\NagaDeath.mdl
- Special Effect - Destroy (Last created special effect)
- Else - Actions
-
If - Conditions
-
Unit Group - Pick every unit in MB_Group[MB_Loop] and do (Actions)
-
Loop - Actions
- Set MB_Point[1] = (Position of (Picked unit))
- Set MB_Point[2] = (MB_Point[1] offset by 7.00 towards (Angle from MB_Point[1] to MB_Center[MB_Loop]) degrees)
- Unit - Move (Picked unit) instantly to MB_Point[2]
-
Destructible - Pick every destructible within 150.00 of MB_Point[2] and do (Actions)
-
Loop - Actions
- Destructible - Kill (Picked destructible)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Random integer number between 1 and 5) Equal to 1
-
Then - Actions
- Special Effect - Create a special effect at MB_Point[1] using Abilities\Weapons\GryphonRiderMissile\GryphonRiderMissileTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Else - Actions
-
If - Conditions
- Custom script: call RemoveLocation(udg_MB_Point[1])
- Custom script: call RemoveLocation(udg_MB_Point[2])
-
Loop - Actions
- Set MB_HOW[MB_Loop] = (MB_HOW[MB_Loop] - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- MB_HOW[MB_Loop] Less than or equal to 2
-
Then - Actions
- Set MB_Switch[MB_Loop] = 1
- Set MB_Coutbuff[MB_Loop] = 0
- Set MB_HOW[MB_Loop] = 0
- Set MB_Eyecandy1[MB_Loop] = 0.00
-
Unit Group - Pick every unit in MB_Group[MB_Loop] and do (Actions)
-
Loop - Actions
- Unit - Cause MB_Caster[MB_Loop] to damage (Picked unit), dealing MB_Damage[MB_Loop] damage of attack type Spells and damage type Cold
-
Loop - Actions
- Set MB_Damage[MB_Loop] = 0.00
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in MB_Group[MB_Loop]) Equal to 0
-
Then - Actions
-
Unit Group - Pick every unit in MB_Group[MB_Loop] 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
-
Then - Actions
- Unit - Turn collision for (Picked unit) On
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_MB_Center[udg_MB_Loop])
- Custom script: call DestroyGroup(udg_MB_Group[udg_MB_Loop])
- Unit Group - Remove MB_Caster[MB_Loop] from OnorOff
- Set MB_Damage[MB_Loop] = 0.00
- Set MB_HOW[MB_Loop] = 0
- Set MB_Eyecandy1[MB_Loop] = 0.00
- Set MB_Speed[MB_Loop] = 0.00
- Set MB_Distance[MB_Loop] = 0.00
- Set MB_Formula[MB_Loop] = 0.00
- Set MBLevel[MB_Loop] = 0
- Set MB_Caster[MB_Loop] = No unit
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in OnorOff) Equal to 0
-
Then - Actions
- Set Times2 = 0
- Trigger - Turn off Massive Blast Loop <gen>
- Else - Actions
-
If - Conditions
-
Unit Group - Pick every unit in MB_Group[MB_Loop] and do (Actions)
- Else - Actions
-
If - Conditions
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- MB_Switch[MB_Loop] Equal to 1
-
Then - Actions
-
Unit Group - Pick every unit in MB_Group[MB_Loop] and do (Actions)
-
Loop - Actions
- Set MB_Point[3] = (Position of (Picked unit))
- Set MB_Speed[MB_Loop] = (MB_Distance[MB_Loop] / MB_Formula[MB_Loop])
- Set MB_Speed[MB_Loop] = (MB_Speed[MB_Loop] + 0.50)
- Set MB_Point[4] = (MB_Point[3] offset by MB_Speed[MB_Loop] towards (Angle from MB_Center[MB_Loop] to MB_Point[3]) degrees)
- Unit - Move (Picked unit) instantly to MB_Point[4]
-
Destructible - Pick every destructible within 150.00 of MB_Point[4] and do (Actions)
-
Loop - Actions
- Destructible - Kill (Picked destructible)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Random integer number between 1 and 6) Equal to 1
-
Then - Actions
- Special Effect - Create a special effect at MB_Point[3] using Abilities\Weapons\FrostWyrmMissile\FrostWyrmMissile.mdl
- Special Effect - Destroy (Last created special effect)
- Else - Actions
-
If - Conditions
- Custom script: call RemoveLocation(udg_MB_Point[3])
- Custom script: call RemoveLocation(udg_MB_Point[4])
-
Loop - Actions
- Set MB_Distance[MB_Loop] = (MB_Distance[MB_Loop] - MB_Speed[MB_Loop])
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- MB_Distance[MB_Loop] Less than or equal to 5.00
-
Then - Actions
-
Unit Group - Pick every unit in MB_Group[MB_Loop] 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
-
Then - Actions
- Unit - Turn collision for (Picked unit) On
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_MB_Group[udg_MB_Loop])
- Custom script: call RemoveLocation(udg_MB_Center[udg_MB_Loop])
- Unit Group - Remove MB_Caster[MB_Loop] from OnorOff
- Set MB_Speed[MB_Loop] = 0.00
- Set MB_Distance[MB_Loop] = 0.00
- Set MB_Formula[MB_Loop] = 0.00
- Set MBLevel[MB_Loop] = 0
- Set MB_Caster[MB_Loop] = No unit
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in OnorOff) Equal to 0
-
Then - Actions
- Set Times2 = 0
- Trigger - Turn off Massive Blast Loop <gen>
- Else - Actions
-
If - Conditions
-
Unit Group - Pick every unit in MB_Group[MB_Loop] and do (Actions)
- Else - Actions
-
If - Conditions
-
Unit Group - Pick every unit in MB_Group[MB_Loop] and do (Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Events