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!
hi i habe an very long trigger it works with 3 triggers and some counts but the trigger works only 1 time at the second time the count is on 100 or higher i think but i dont know why
Einheit - A unit Startet den Effekt einer Fähigkeit
Bedingungen
(Ability being cast) Gleich Wooden spear
Aktionen
Wait 0.30 seconds
Set shoudame = (Casting unit)
Set woodpoint = (Position of shoudame)
Set wood2 = 0
Set wood3 = 0
Set wood4 = 0
Einheit - Pause ein shoudame
Einheit - Create 1 holz stück for (Owner of shoudame) at ((Position of shoudame) offset by 50.00 towards (Facing of shoudame) degrees) facing ((Position of shoudame) offset by 1000.00 towards (270.00 + (Facing of shoudame)) degrees)
Set wood[wood2] = (Last created unit)
Animation - Play (Last created unit)'s birth alternate animation
Animation - Change (Last created unit)'s animation speed to 120.00% of its original speed
Set shoudamerangeholz = -50.00
Set wood2 = 0
Wait 0.60 seconds
Auslöser - Turn on wood spear bash <gen>
Auslöser - Turn on wood spear bash Kopieren <gen>
Set wood2 = (wood2 + 1)
Set shoudamerangeholz = (shoudamerangeholz + 300.00)
Wait 0.15 seconds
Einheit - Create 1 holz stück 2 for (Owner of shoudame) at ((Position of shoudame) offset by shoudamerangeholz towards (Facing of shoudame) degrees) facing ((Position of shoudame) offset by 2000.00 towards (Facing of shoudame) degrees)
Set wood[wood2] = (Last created unit)
Animation - Play (Last created unit)'s birth animation
Animation - Change (Last created unit)'s animation speed to 200.00% of its original speed
Einheit - Add Krähengestalt to (Last created unit)
Einheit - Remove Krähengestalt from (Last created unit)
Animation - Change (Last created unit) flying height to 175.00 at 10000000.00
Set wood2 = (wood2 + 1)
Set shoudamerangeholz = (shoudamerangeholz + 300.00)
Wait 0.15 seconds
Einheit - Create 1 holz stück 2 for (Owner of shoudame) at ((Position of shoudame) offset by shoudamerangeholz towards (Facing of shoudame) degrees) facing ((Position of shoudame) offset by 2000.00 towards (Facing of shoudame) degrees)
Set wood[wood2] = (Last created unit)
Animation - Play (Last created unit)'s birth animation
Animation - Change (Last created unit)'s animation speed to 200.00% of its original speed
Einheit - Add Krähengestalt to (Last created unit)
Einheit - Remove Krähengestalt from (Last created unit)
Animation - Change (Last created unit) flying height to 175.00 at 10000000.00
Set wood2 = (wood2 + 1)
Set shoudamerangeholz = (shoudamerangeholz + 300.00)
Wait 0.15 seconds
Einheit - Create 1 holz stück 2 for (Owner of shoudame) at ((Position of shoudame) offset by shoudamerangeholz towards (Facing of shoudame) degrees) facing ((Position of shoudame) offset by 2000.00 towards (Facing of shoudame) degrees)
Set wood[wood2] = (Last created unit)
Animation - Play (Last created unit)'s birth animation
Animation - Change (Last created unit)'s animation speed to 200.00% of its original speed
Einheit - Add Krähengestalt to (Last created unit)
Einheit - Remove Krähengestalt from (Last created unit)
Animation - Change (Last created unit) flying height to 175.00 at 10000000.00
Set wood2 = (wood2 + 1)
Set shoudamerangeholz = (shoudamerangeholz + 300.00)
Wait 0.15 seconds
Einheit - Create 1 holz stück 2 for (Owner of shoudame) at ((Position of shoudame) offset by shoudamerangeholz towards (Facing of shoudame) degrees) facing ((Position of shoudame) offset by 2000.00 towards (Facing of shoudame) degrees)
Set wood[wood2] = (Last created unit)
Animation - Play (Last created unit)'s birth animation
Animation - Change (Last created unit)'s animation speed to 200.00% of its original speed
Einheit - Add Krähengestalt to (Last created unit)
Einheit - Remove Krähengestalt from (Last created unit)
Animation - Change (Last created unit) flying height to 175.00 at 10000000.00
Set wood2 = (wood2 + 1)
Set shoudamerangeholz = (shoudamerangeholz + 300.00)
Wait 0.15 seconds
Einheit - Create 1 holz stück 2 for (Owner of shoudame) at ((Position of shoudame) offset by shoudamerangeholz towards (Facing of shoudame) degrees) facing ((Position of shoudame) offset by 2000.00 towards (Facing of shoudame) degrees)
Set wood[wood2] = (Last created unit)
Animation - Play (Last created unit)'s birth animation
Animation - Change (Last created unit)'s animation speed to 200.00% of its original speed
Einheit - Add Krähengestalt to (Last created unit)
Einheit - Remove Krähengestalt from (Last created unit)
Animation - Change (Last created unit) flying height to 175.00 at 10000000.00
Einheit - Pause aus shoudame
Auslöser - Turn off wood spear bash <gen>
Wait 1.00 seconds
Auslöser - Turn off wood spear bash Kopieren <gen>
For each (Integer A) from 1 to 6, do (Actions)
Schleifen - Aktionen
Animation - Play wood[wood2]'s death animation
Wait 0.15 seconds
Einheit - Remove wood[wood2] from the game
Set wood2 = (wood2 - 1)
Einheitengruppe - Pick every unit in woodgroup and do (Actions)
Schleifen - Aktionen
Einheitengruppe - Remove (Picked unit) from woodgroup
wood spear bash
Ereignisse
Zeit - Every 0.04 seconds of game time
Bedingungen
Aktionen
Set woodpoint = (woodpoint offset by 40.00 towards (Facing of shoudame) degrees)
Einheitengruppe - Pick every unit in (Units within 300.00 of woodpoint) and do (Actions)
Schleifen - Aktionen
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
((Picked unit) is alive) Gleich True
((Picked unit) belongs to an enemy of (Owner of shoudame)) Gleich True
((Picked unit) is in woodgroup) Ungleich True
'THEN'-Aktionen
Einheitengruppe - Add (Picked unit) to woodgroup
Set wood3 = (wood4 + 1)
Set woodunits[wood3] = (Picked unit)
Set wood4 = (wood4 + 1)
'ELSE'-Aktionen
wood spear bash Kopieren
Ereignisse
Zeit - Every 0.04 seconds of game time
Bedingungen
Aktionen
For each (Integer A) from 1 to wood4, do (Actions)
Schleifen - Aktionen
Set wood3 = (wood3 - 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
(woodunits[wood3] is in woodgroup) Gleich True
'THEN'-Aktionen
Spezialeffekt - Create a special effect at (Position of woodunits[wood3]) using Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
Spezialeffekt - Destroy (Last created special effect)
Einheit - Cause shoudame to damage woodunits[wood3], dealing (0.10 x (Real((Intelligenz of shoudame (Einschließen bonuses))))) damage of attack type Held and damage type Gewalt
Set TempPoint = (Position of woodunits[wood3])
Set TempPoint2 = (TempPoint offset by -25.00 towards (Angle from (Position of woodunits[wood3]) to (Position of shoudame)) degrees)
Einheit - Move woodunits[wood3] instantly to TempPoint2
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Bedingungen
woodcount[wood3] Größer als 50
'THEN'-Aktionen
Einheitengruppe - Remove woodunits[wood3] from woodgroup
Set woodcount[wood3] = 0
'ELSE'-Aktionen
'ELSE'-Aktionen
äm the problem with the trigger is i think the last trigger dont run he forgets some settings in this trigger when the spell cast
did anyone know hoe i can check the trigger when it runs?
I don't totally get the first trigger...but I'm sure you could use loops, to reduce 2 pages trigger in a few lines.
About the trigger not working, try to clear all the values at the end of the trigger, so next time you trigger it all values are 0 now they maybe 12 after you finis the trigger, but next time you run it its 12 so it can't work.
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.