Chaosy
Tutorial Reviewer
- Joined
- Jun 9, 2011
- Messages
- 13,239
Interesting, I am actually surprised over the fact that this did not exist already.
Stormhammer:
On Attack: After 3 seconds an Lightning form the sky will hit the Target and deal 50 Spelldamage.
Creation-Trigger
Setup all P-Variables you need.
DelayA-Action Trigger: Runs after the Delay Expired.
Stormhammer attack
Events
Unit - A unit is Attacked
Conditions
(Level of Stormhammer for (Attacking unit)) != 0
Actions
-------- Delay in Seconds --------
Set DelayA___P_Delay = 3.00
-------- Units --------
Set DelayA___P_Source = (Attacking unit)
Set DelayA___P_Target = (Attacked unit)
-------- Effect beeing Called --------
Set DelayA___P_Trigger = stormhammer <gen>
-------- Grafical Indikator --------
Spezialeffekt - Create a special effect attached to the chest of P_Target using Abilities\Weapons\FarseerMissile\FarseerMissile.mdl
Set DelayA___P_Grafic = (Last created special effect)
-------- Create/Start DelayA --------
Trigger - Run DelayA_CONS_CREATE (ignoring conditions)
The DelayA__Action.. Variable are used here.
stormhammer
Events
Conditions
(DelayA__Action_Target is alive)
Actions
Spezialeffekt - Create a special effect attached to the origin of DelayA__Action_Target using Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
Spezialeffekt - Destroy (Last created special effect)
Unit - Cause DelayA__Action_Source to damage DelayA__Action_Target, dealing 50.00 damage of attack type Spell and damage type Magic
Reteleport:
Enchants a target after 6 seconds it is teleported to the position it was Enchanted.
Reteleport cast
Events
Unit - A unit casts a spell
Conditions
(Ability being cast) = Reteleport
Actions
Set DelayA___P_Delay = 6.00
Set DelayA___P_Source = (Triggering unit)
Set DelayA___P_Target = (Target unit of ability being cast)
Set DelayA___P_Loc = (Position of P_Target)
Spezialeffekt - Create a special effect at DelayA___P_Loc using Abilities\Spells\Human\MassTeleport\MassTeleportTo.mdl
Set DelayA___P_Grafic = (Last created special effect)
Set DelayA___P_Trigger = Reteleport <gen>
Trigger - Run DelayA_CONS_CREATE (ignoring conditions)
Reteleport
Events
Conditions
(DelayA__Action_Target is alive)
Actions
-------- Eye Candy --------
Set loc = (Position of DelayA__Action_Target)
Spezialeffekt - Create a special effect at loc using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
Spezialeffekt - Destroy (Last created special effect)
Custom script: call RemoveLocation(udg_loc)
-------- Teleport Back --------
Unit - Move DelayA__Action_Target instantly to DelayA__Action_Loc
Trap
This Creates Periodic Traps which will have a delay and then will deal dps for a short time.
Demo Create Traps
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
-------- ------------ --------
-------- Trap Fire --------
-------- Every 8 seconds will a Fire spawn which will deal 50 DpS for 4 seconds to Units in an 180 AoE. --------
-------- Trap Intervall --------
Set DelayA___P_Reload_Dur = 8.00
Set DelayA___P_Reloads = DelayA_CONSTANT_UNLIMITED_RELOADS
Set DelayA___P_Loc = (Center of Trap <gen>)
-------- Trap First Delay --------
Set DelayA___P_Freq_Delay = 0.20
-------- Trap Action --------
Set DelayA___P_Freq_Trigger = Trap DPS <gen>
-------- Trap 's Free Info; Here: AoE & DPA --------
Set DelayA___P_Freq_Data = 180
Set DelayA___P_Freq_Real = 10.00
-------- Intervall of Action --------
Set DelayA___P_Freq_Reload_Dur = 0.20
Set DelayA___P_Freq_Reloads = 19
-------- -> Results in 20 (19 Reloads + 1 instantly) Executions of the Action. In this Case 10 * 20 Dmg --------
-------- Grafic Stuff --------
Set DelayA___P_Freq_Grafic_TargetType = DelayA_CONSTANT_GRAFIC_Point
Set DelayA___P_Freq_Grafic_Path = Abilities\Spells\Other\ImmolationRed\ImmolationRedTarget.mdl
Trigger - Run DelayA_CONS_CREATE (ignoring conditions)
-------- ------------ --------
-------- ------------ --------
-------- Trap Lightning --------
-------- Every 5 seconds will a Lightning Strike the Loc dealing 140 Dmg over 0.9 seconds. --------
-------- Trap Intervall --------
Set DelayA___P_Loc = (Center of Trap 2 <gen>)
Set DelayA___P_Reload_Dur = 5.00
Set DelayA___P_Reloads = DelayA_CONSTANT_UNLIMITED_RELOADS
-------- Trap Effect --------
Set DelayA___P_Freq_Trigger = Trap DPS <gen>
Set DelayA___P_Freq_Real = 20.00
Set DelayA___P_Freq_Data = 100
Set DelayA___P_Freq_Reload_Dur = 0.15
Set DelayA___P_Freq_Reloads = 6
Set DelayA___P_Freq_Grafic_TargetType = DelayA_CONSTANT_GRAFIC_Point
Set DelayA___P_Freq_Grafic_Path = Abilities\Spells\Other\Monsoon\MonsoonBoltTarget.mdl
Trigger - Run DelayA_CONS_CREATE (ignoring conditions)
Trap DPS
Events
Conditions
Actions
Custom script: set bj_wantDestroyGroup=true
Einheitengruppe - Pick every unit in (Units within (Real(DelayA__Action_Data)) of DelayA__Event_Loc matching (((Matching unit) is alive) equal True)) and do (Actions)
Schleifen - Aktionen
Unit - Set life of (Picked unit) to ((Leben of (Picked unit)) - DelayA__Action_Real)
Credits
Maker
zv27