Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
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
[S]Thunderblade.GUI.v1.1.w3x
Variables
[S]Thunder Blade.GUI
Read me
tb1
tb2
tbper
Stuff
level
repair
mapsight
Kartenspezifischen eigenen Skript-Code unten eingeben. Dieser Text wird in das Karten-Skript nach der Deklaration der Variablen und vor jeglichem Auslöser-Code eingefügt.
Name
Type
is_array
initial_value
TB_dummygrp
group
No
TB_dummygrp2
group
No
TB_temppoint1
location
No
TB_temppoint2
location
No
TB_x
real
No
Thunder Blade v1.1 Gui [S]quiggy 2oo9
===============================
Well good day, dear reader.
We've got lots to do, so lets start right away.
Thunder Blade consists of 3 Triggers:
-tb1 / tb2 and tbper
The spell needs all the dummies:
-tbdummy / tbdummy2 and tbdummy3
The spell needs all 4 abilities and both buffs.
So, import all of them into your map now.
================================
Great, now that you're done, we can move on with a short description of thunder blade:
The first trigger does nothing spectacular besides creating dummies in the air and making them head towards flying height 0 (That's the ground)
Now for the second:
As soon as one of the dummies dies, one dummy is being created which server us for some effects (lightning shield).
Also, all units inside the area of effect (300 - 500 - 700) are being paused and some buff is aded to them for a better visuality.
Next is, that the trigger creates one new dummy for each 'dead' dummy and make it face outwards every 36 degrees.
Last is the switch to turn on the periodic trigger.
Said periodic trigger moves the dummies until their custom value equals the AoE and then makes them stop and add some effects.
As I'm sure that you understood until now, we shall proceed with 'tb1'
tb1
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Thunder Blade
Actions
Set Variable Set TB_temppoint1 = (Position of (Target unit of ability being cast))
-------- - --------
-------- This is the height at which the 'lance' should begin to be formed. --------
Set Variable Set TB_x = "700.00"
-------- - --------
-------- Some damage.. --------
Unit - Cause (Triggering unit) to damage (Target unit of ability being cast) , dealing ((Real((Level of Thunder Blade for (Triggering unit)))) x 45.00) damage of attack type Chaos and damage type Universal
-------- - --------
-------- And here we create 15 dummies, one every 50 height units. --------
For each (Integer A) from 1 to 15 , do (Actions)
Loop - Actions
Unit - Create 1 . tb.dummy for (Owner of (Triggering unit)) at TB_temppoint1 facing (Random angle) degrees
Unit - Set level of TB_Carrier for (Last created unit) to (Level of Thunder Blade for (Triggering unit))
Animation - Change (Last created unit) flying height to (TB_x + 50.00) at 0.00
Animation - Change (Last created unit) flying height to 0.00 at 2000.00
Unit - Add a 0.90 second Generic expiration timer to (Last created unit)
-------- After resetting all values and cleaning those leaks, we move on to 'tb2' --------
Purposes:
~Add dummies (move outwards)
~Remove the lightning shield dummies after death to get rid of ugly effects
tb2
Events
Unit - A unit Dies
Conditions
((Unit-type of (Triggering unit)) Equal to tb.dummy) or ((Unit-type of (Triggering unit)) Equal to tb.dummy3)
Actions
-------- - --------
-------- As this trigger has multiple purposes (look at the comment), we check which unit is dead now. --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of (Triggering unit)) Equal to tb.dummy
Then - Actions
-------- - --------
-------- In case that it's our 'lance', we create one more dummy with the lightning shield model facing randomly --------
Set Variable Set TB_temppoint1 = (Position of (Triggering unit))
Unit - Create 1 . tb.dummy3 for (Owner of (Triggering unit)) at TB_temppoint1 facing (Random angle) degrees
Unit - Add a 6.00 second Generic expiration timer to (Last created unit)
-------- - --------
-------- Now we pause all enemy units --------
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units within (((Real((Level of TB_Carrier for (Triggering unit)))) x 100.00) + 200.00) of TB_temppoint1 matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit)).) Equal to True).) and do (Pause (Picked unit))
Animation - Play (Last created unit) 's birth large animation
Animation - Change (Last created unit) 's animation speed to 50.00 % of its original speed
Special Effect - Create a special effect at TB_temppoint1 using Abilities\Spells\Undead\Unsummon\UnsummonTarget.mdl
Special Effect - Destroy (Last created special effect)
-------- - --------
-------- Here, we check for any 'still alive' part of the lanceand if there is, we create the said dummies we want to move --------
Set Variable Set TB_dummygrp = (Units within 100.00 of TB_temppoint1 matching ((Unit-type of (Matching unit)) Equal to tb.dummy).)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in TB_dummygrp) Greater than or equal to 1
Then - Actions
Special Effect - Create a special effect at TB_temppoint1 using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
Special Effect - Destroy (Last created special effect)
Unit - Create 1 . tb.dummy2 for (Owner of (Triggering unit)) at TB_temppoint1 facing (TB_x + 36.00) degrees
Unit - Set level of TB_dummydamage for (Last created unit) to (Level of TB_Carrier for (Triggering unit))
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Set Variable Set TB_x = (TB_x + 36.00)
-------- - --------
-------- Last, but not least, we turn on the periodic trigger to make the dummies move. --------
-------- First, we check if there are any dummies on the field which are moving and if not, we turn this trigger off. --------
Set Variable Set TB_dummygrp2 = (Units of type tb.dummy2)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in TB_dummygrp2) Greater than 0
Then - Actions
-------- - --------
-------- If there are any, we add the custom value by the distance they travel. That is, easily said a simple way to make them stop once they reach the end of the area of effect. --------
-------- Since the CV will turn 500 once, which is the aoe, the dummy will stop. --------
Unit Group - Pick every unit in TB_dummygrp2 and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Custom value of (Picked unit)) Less than or equal to (((Level of TB_dummydamage for (Picked unit)) x 100) + 200)
Then - Actions
Set Variable Set TB_temppoint1 = (Position of (Picked unit))
Set Variable Set TB_temppoint2 = (TB_temppoint1 offset by 25.00 towards (Facing of (Picked unit)) degrees.)
Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) + 25)
Unit - Move (Picked unit) instantly to TB_temppoint2
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.