Moderator
M
Moderator
13:52, 31st Dec 2009
TriggerHappy:
Not MUI, nor MPI.
TriggerHappy:
Not MUI, nor MPI.
Meteor Storm

Events


Unit - A unit Starts the effect of an ability

Conditions


(Ability being cast) Equal to Meteor Storm

Actions


Set Caster = (Casting unit)


Set Meteor_Storm_Point = (Position of Caster)


For each (Integer A) from 1 to 12, do (Actions)



Loop - Actions




Set Meteor_Storm_Hit[(Integer A)] = (Meteor_Storm_Point offset by (Random real number between -550.00 and 550.00) towards (Random angle) degrees)


Set Meteor_Storm_Timer = 0


Trigger - Turn on Meteor Storm Run <gen>
Meteor Storm Run

Events


Time - Every 0.25 seconds of game time

Conditions

Actions


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



If - Conditions




Meteor_Storm_Timer Less than or equal to 30



Then - Actions




Set Meteor_Storm_Timer = (Meteor_Storm_Timer + 1)




For each (Integer A) from 0 to (Meteor_Storm_Timer / 2), do (Actions)





Loop - Actions






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







If - Conditions








Meteor_Storm_Timer Greater than or equal to (4 + (2 x (Integer A)))







Then - Actions








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









If - Conditions










Meteor_Storm_Timer Equal to (4 + (2 x (Integer A)))









Then - Actions










Special Effect - Create a special effect at Meteor_Storm_Hit[(Integer A)] using Objects\Spawnmodels\Human\HCancelDeath\HCancelDeath.mdl










Special Effect - Destroy (Last created special effect)










Unit Group - Pick every unit in (Units within 225.00 of Meteor_Storm_Hit[(Integer A)] matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of Caster)) Equal to True)))) and do (Actions)











Loop - Actions












Unit - Cause Caster to damage (Picked unit), dealing (45.00 + (45.00 x (Real((Level of Unknown (A001) for Caster))))) damage of attack type Hero and damage type Magic












Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Spells\Other\Volcano\VolcanoMissile.mdl












Special Effect - Destroy (Last created special effect)









Else - Actions







Else - Actions








Sound - Play FlameStrikeTargetWaveNonLoop1 <gen> at 100.00% volume, located at Meteor_Storm_Hit[(Integer A)] with Z offset 0.00








Special Effect - Create a special effect at Meteor_Storm_Hit[(Integer A)] using Abilities\Spells\Undead\ReplenishMana\ReplenishManaCaster.mdl








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









If - Conditions










Meteor_Storm_Timer Equal to (2 + (2 x (Integer A)))









Then - Actions










Special Effect - Create a special effect at Meteor_Storm_Hit[(Integer A)] using Abilities\Spells\Demon\RainOfFire\RainOfFireTarget.mdl










Special Effect - Destroy (Last created special effect)









Else - Actions



Else - Actions




Trigger - Turn off (This trigger)