🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
Triggers
Meteor.w3x
Variables
DO NOT COPY
These triggers are ONLY for the map
Restore
Meteor
READ ME!
M Cast
M Meteor
Enter map-specific custom script code below. This text will be included in the map script after variables are declared and before any trigger code.
Name
Type
is_array
initial_value
M_Boolean
boolean
Yes
M_Caster
unit
Yes
M_Damage
real
Yes
M_Delay
real
Yes
M_Index
integer
Yes
M_Point
location
Yes
M_Radius
real
Yes
M_SFX
effect
Yes
M_Speed
real
Yes
Restore
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Restore
Actions
Unit - Set life of (Casting unit) to 100 %
Unit - Set mana of (Casting unit) to 100 %
"================="
"Meteor v1.00 "
" by Amigurumi "
"================="
Credits: "Diablo 2" for the idea
"=================="
"How to import this spell"
"=================="
1) Check the box in "File->Preferences->General->Automatically create unknown variables while pasting trigger data"
2) Copy and paste the M Cast and M Meteor into your map
3) Copy all Object data into your map (spell)
4) Edit the spell, so it fits your conceivabilities
5) Have fun with this spell
6) Give credits
"================="
"What you can modify"
"================="
M Cast:
1) Set M_Damage[M_Index[2]] = ((Real((Level of Meteor for M_Caster[M_Index[2]]))) x 80.00) //With this, you can set the damage of the spell
2) Set M_Radius[M_Index[2]] = 150.00 //With this, you can set the AOE radius
3) Set M_Delay[M_Index[2]] = 3.00 //With this, you can set the delay of the meteor (in seconds). If this is 0, the meteor will come down from the sky
4) Set M_Speed[M_Index[2]] = 0.80 //With this you can set the speed of the meteor (in seconds). This is the duration of the meteor falling down
And of course all the special effects
"========"
"Changelog"
"========"
v1.00
created this spell
"==========="
"Important note"
"==========="
Give Credits to Amigurumi if you use these spells!
If you have questions, send me a personal message at www.hiveworkshop.com.
M Cast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Meteor
Actions
-------- Setup --------
-------- // DO NOT CHANGE SOMETHING BETWEEN THESE COMMENTS \\ --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
M_Index[1] Equal to 0
Then - Actions
Trigger - Turn on M_Meteor <gen>
Else - Actions
Set Variable Set M_Index[1] = (M_Index[1] + 1)
Set Variable Set M_Index[2] = (M_Index[2] + 1)
Set Variable Set M_Boolean[M_Index[2]] = "true"
Set Variable Set M_Caster[M_Index[2]] = (Casting unit)
Set Variable Set M_Point[M_Index[2]] = (Target point of ability being cast)
-------- // DO NOT CHANGE SOMETHING BETWEEN THESE COMMENTS \\ --------
-------- This sets the damage. --------
-------- Change it if you another damage amount. --------
Set Variable Set M_Damage[M_Index[2]] = ((Real((Level of Meteor for M_Caster[M_Index[2]]))) x 80.00)
-------- This sets the radius of the meteor. --------
Set Variable Set M_Radius[M_Index[2]] = "150.00"
-------- This is the delay of the meteor. --------
-------- If it reaches 0, the meteor will be created. --------
Set Variable Set M_Delay[M_Index[2]] = "3.00"
-------- This is the damage delay. --------
-------- Change it, if you have a faster/bigger/smaller meteor. --------
Set Variable Set M_Speed[M_Index[2]] = "0.80"
-------- Some eye-candy effects. --------
-------- Can be changed. --------
Special Effect - Create a special effect at M_Point[M_Index[2]] using Abilities\Spells\Items\AIam\AIamTarget.mdl
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect at M_Point[M_Index[2]] using Abilities\Spells\Other\Volcano\VolcanoMissile.mdl
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect at M_Point[M_Index[2]] using Abilities\Spells\Orc\LiquidFire\Liquidfire.mdl
Set Variable Set M_SFX[M_Index[2]] = (Last created special effect)
-------- End Setup --------
M Meteor
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
-------- Spell --------
Set Variable Set M_Index[3] = "1"
For each (Integer M_Index[3] ) from 1 to M_Index[2] , do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
M_Delay[M_Index[3]] Equal to 0.00
M_Boolean[M_Index[3]] Equal to True
Then - Actions
-------- The delay must be 0. --------
Set Variable Set M_Boolean[M_Index[3]] = "false"
-------- Removes the fire circle --------
Special Effect - Destroy M_SFX[M_Index[3]]
-------- Creates the meteor. --------
Special Effect - Create a special effect at M_Point[M_Index[3]] using Units\Demon\Infernal\InfernalBirth.mdl
Special Effect - Destroy (Last created special effect)
-------- The damage. --------
-------- Radius, damage and speed can be changed in the setup trigger. --------
Unit - Cause M_Caster[M_Index[3]] to damage circular area after M_Speed[M_Index[3]] seconds of radius M_Radius[M_Index[3]] at M_Point[M_Index[3]] , dealing M_Damage[M_Index[3]] damage of attack type Spells and damage type Normal
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.