• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] final fantasy help plz

Status
Not open for further replies.
Level 2
Joined
Mar 9, 2013
Messages
6
hello im trying to get some spells going on in a cusom map im making and in the attachment below im able to look the map in world editor however im trying to figure out how to make a spell called grand lethal from ff9 and i got renozokuken in my map

  • [TRIGGER]Lionheart Check conditions
    • Events
      • Map initialization
      • Time - Every 0.20 seconds of game time
    • Conditions
    • Actions
      • Set UNTGRP = (Units owned by Player 1 (Red))
      • Unit Group - Pick every unit in UNTGRP and do (Trigger - Run Lionheart Initialize <gen> (checking conditions))
  • Lionheart Initialize
    • Events
    • Conditions
    • Actions
      • Set unt = (Picked unit)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life of unt) Less than or equal to 1000.00
        • Then - Actions
          • Animation - Change unt's vertex coloring to (100.00%, 100.00%, 30.00%) with 20.00% transparency
          • Special Effect - Create a special effect attached to the origin of unt using Abilities\Spells\Undead\ReplenishHealth\ReplenishHealthCaster.mdl
          • Set sfx_LION[8] = (Last created special effect)
        • Else - Actions
          • Animation - Change unt's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
          • Special Effect - Destroy sfx_LION[8]
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life of unt) Greater than 1000.00
        • Then - Actions
          • Animation - Change unt's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
          • Special Effect - Destroy sfx_LION[8]
        • Else - Actions
  • Renzokuken SKILL RUN Init
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to fated circle DUMMY
    • Actions
      • Set CastRKZ = (Casting unit)
      • Set TargetRKZ = (Target unit of ability being cast)
      • Wait 0.01 game-time seconds
      • Special Effect - Create a special effect attached to the origin of CastRKZ using Abilities\Spells\NightElf\Taunt\TauntCaster.mdl
      • Set sfx[12] = (Last created special effect)
      • Unit - Make CastRKZ Invulnerable
      • Unit - Pause CastRKZ
      • Animation - Change CastRKZ's animation speed to 200.00% of its original speed
      • Special Effect - Create a special effect attached to the hand, right of CastRKZ using Abilities\Spells\NightElf\SpiritOfVengeance\SpiritOfVengeanceBirthMissile.mdl
      • Set sfxZ[6] = (Last created special effect)
      • Special Effect - Create a special effect attached to the hand, left of CastRKZ using Abilities\Spells\NightElf\SpiritOfVengeance\SpiritOfVengeanceBirthMissile.mdl
      • Set sfxZ[7] = (Last created special effect)
      • Special Effect - Destroy sfx[12]
      • For each (Integer A) from 1 to 7, do (Actions)
        • Loop - Actions
          • Wait 0.15 seconds
          • Animation - Play CastRKZ's Attack animation
          • Set LocUNT = (Position of TargetRKZ)
          • Set LocCast = (Random point in (Region centered at LocUNT with size (80.00, 80.00)))
          • Unit - Make CastRKZ face TargetRKZ over 0.00 seconds
          • Unit - Move CastRKZ instantly to LocCast, facing LocUNT
          • Unit - Cause CastRKZ to damage TargetRKZ, dealing 30.00 damage of attack type Spells and damage type Normal
          • Special Effect - Create a special effect attached to the chest of CastRKZ using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
          • Special Effect - Destroy (Last created special effect)
          • Special Effect - Create a special effect attached to the weapon of CastRKZ using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
          • Special Effect - Destroy (Last created special effect)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 3) Equal to 1
        • Then - Actions
          • Trigger - Run Rough Divide <gen> (checking conditions)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Random integer number between 1 and 2) Equal to 1
              • (Life of CastRKZ) Less than or equal to 1000.00
            • Then - Actions
              • Trigger - Run Lionheart <gen> (checking conditions)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Random integer number between 1 and 3) Equal to 2
                • Then - Actions
                  • Trigger - Run Fated Circle <gen> (checking conditions)
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Random integer number between 1 and 3) Equal to 3
                    • Then - Actions
                      • Trigger - Run Blasting Zone <gen> (checking conditions)
                    • Else - Actions
                      • Trigger - Run Rough Divide <gen> (checking conditions)
      • Special Effect - Destroy sfx[5]
      • Wait 1.20 game-time seconds
      • Unit - Unpause TargetRKZ
      • Unit - Unpause CastRKZ
      • Unit - Make CastRKZ Vulnerable
      • Animation - Change CastRKZ's animation speed to 100.00% of its original speed
      • Animation - Change CastRKZ's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
      • Selection - Select CastRKZ for (Owner of CastRKZ)
      • Special Effect - Destroy sfx[1]
      • Special Effect - Destroy sfx[2]
      • Special Effect - Destroy sfx[3]
      • Special Effect - Destroy sfx[4]
      • Special Effect - Destroy sfx[6]
      • Special Effect - Destroy sfx[7]
      • Special Effect - Destroy sfx[8]
      • Special Effect - Destroy sfx[9]
      • Special Effect - Destroy sfx[10]
      • Special Effect - Destroy sfx[11]
      • Special Effect - Destroy sfx[12]
      • Special Effect - Destroy sfx[13]
      • Special Effect - Destroy sfx[14]
      • Special Effect - Destroy sfxZ[6]
      • Special Effect - Destroy sfxZ[7]
      • Custom script: call DestroyGroup(udg_UNTGRP)
      • Custom script: call RemoveLocation (udg_positRKZ)
      • Custom script: call RemoveLocation (udg_LocCast)
      • Custom script: call RemoveLocation (udg_LocCast2)
      • Custom script: call RemoveLocation (udg_LocUNT)
      • Custom script: call RemoveLocation (udg_LocUNT2)
  • Rough Divide
    • Events
    • Conditions
    • Actions
      • Unit - Pause CastRKZ
      • Unit - Pause TargetRKZ
      • Trigger - Run Knockback Setting <gen> (checking conditions)
      • Special Effect - Create a special effect attached to the origin of CastRKZ using FireNova.mdx
      • Set sfx[1] = (Last created special effect)
      • Animation - Change CastRKZ's animation speed to 25.00% of its original speed
      • Animation - Change TargetRKZ's animation speed to 25.00% of its original speed
      • Animation - Play CastRKZ's Attack 3 animation
      • Wait 1.00 game-time seconds
      • Special Effect - Create a special effect attached to the weapon of CastRKZ using FireNova.mdx
      • Set sfx[2] = (Last created special effect)
      • Special Effect - Create a special effect attached to the chest of TargetRKZ using FireNova.mdx
      • Set sfx[3] = (Last created special effect)
      • Animation - Change TargetRKZ's animation speed to 100.00% of its original speed
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life of CastRKZ) Less than or equal to 1000.00
        • Then - Actions
          • Trigger - Run Knockback Setting <gen> (checking conditions)
          • Unit - Cause CastRKZ to damage TargetRKZ, dealing 700.00 damage of attack type Chaos and damage type Universal
        • Else - Actions
          • Trigger - Run Knockback Setting <gen> (checking conditions)
          • Unit - Cause CastRKZ to damage TargetRKZ, dealing 500.00 damage of attack type Chaos and damage type Universal
      • Animation - Change CastRKZ's animation speed to 100.00% of its original speed
      • Wait 0.55 game-time seconds
      • Unit - Make CastRKZ Vulnerable
      • Unit - Unpause CastRKZ
      • Unit - Unpause TargetRKZ
      • Selection - Select CastRKZ for (Owner of CastRKZ)
      • Special Effect - Destroy sfx[1]
      • Special Effect - Destroy sfx[2]
      • Special Effect - Destroy sfx[3]
      • Special Effect - Destroy sfxZ[6]
      • Special Effect - Destroy sfxZ[7]
      • Custom script: call RemoveLocation (udg_LocCast)
      • Custom script: call RemoveLocation (udg_LocCast2)
      • Custom script: call RemoveLocation (udg_LocUNT)
      • Custom script: call RemoveLocation (udg_LocUNT2)
      • Custom script: call DestroyGroup(udg_UNTGRP)
  • Fated Circle
    • Events
    • Conditions
    • Actions
      • Set positRKZ = (Position of TargetRKZ)
      • Unit - Pause CastRKZ
      • Animation - Play CastRKZ's Attack Slam 2 animation
      • Unit - Create 1 Dummy for (Owner of CastRKZ) at positRKZ facing Default building facing degrees
      • Set DUMMY = (Last created unit)
      • Unit - Add a 3.00 second Generic expiration timer to DUMMY
      • Unit - Order DUMMY to Orc Tauren Chieftain - War Stomp
      • Unit - Unpause CastRKZ
      • Selection - Select CastRKZ for (Owner of CastRKZ)
  • Blasting Zone
    • Events
    • Conditions
    • Actions
      • Trigger - Run Knockback Setting <gen> (checking conditions)
      • Unit - Pause TargetRKZ
      • Unit - Pause CastRKZ
      • Set BlastingZoneCaster = CastRKZ
      • Set BZdistnc = 50.00
      • Set BZloopNUM = 25
      • Set BZDMG = 48.00
      • Set BlastingZone_AOE = 450.00
      • Set BZLoc = (Position of BlastingZoneCaster)
      • Unit - Create 1 for (Owner of BlastingZoneCaster) at BZLoc facing (Facing of BlastingZoneCaster) degrees
      • Set DUMMY3[1] = (Last created unit)
      • Unit - Add a 1.00 second Generic expiration timer to DUMMY3[1]
      • For each (Integer A) from 1 to BZloopNUM, do (Actions)
        • Loop - Actions
          • Destructible - Pick every destructible within 450.00 of BZloopLOC and do (Actions)
            • Loop - Actions
              • Destructible - Kill (Picked destructible)
          • Destructible - Pick every destructible within 450.00 of BZLoc and do (Actions)
            • Loop - Actions
              • Destructible - Kill (Picked destructible)
          • Set BZloopLOC = (BZLoc offset by (BZdistnc x (Real((Integer A)))) towards (Facing of BlastingZoneCaster) degrees)
          • Unit - Create 1 for (Owner of BlastingZoneCaster) at BZloopLOC facing (Facing of BlastingZoneCaster) degrees
          • Set DUMMY3[2] = (Last created unit)
          • Unit - Add Ion_Canon(dummy height trick) to DUMMY3[2]
          • Unit - Remove Ion_Canon(dummy height trick) from DUMMY3[2]
          • Animation - Change DUMMY3[2] flying height to 100.00 at 0.00
          • Unit - Turn collision for DUMMY3[2] Off
          • Unit - Add a (0.85 - (0.01 x (Real((Integer A))))) second Generic expiration timer to DUMMY3[2]
          • Set BZdamageUNTGRP = (Units within BlastingZone_AOE of BZloopLOC matching ((((Matching unit) is A structure) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Owner of (Matching unit)) is an enemy of (Owner of BlastingZoneCaster)) Equal to True))))
          • Unit Group - Pick every unit in BZdamageUNTGRP and do (Actions)
            • Loop - Actions
              • Unit - Cause BlastingZoneCaster to damage (Picked unit), dealing BZDMG damage of attack type Spells and damage type Universal
              • Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Spells\Other\Incinerate\FireLordDeathExplode.mdl
              • Special Effect - Destroy (Last created special effect)
              • Special Effect - Create a special effect attached to the chest of (Picked unit) using Abilities\Spells\Orc\Bloodlust\BloodlustTarget.mdl
              • Special Effect - Destroy (Last created special effect)
          • Custom script: call DestroyGroup(udg_BZdamageUNTGRP)
          • Custom script: call RemoveLocation(udg_BZloopLOC)
      • Unit - Make BlastingZoneCaster face LocUNT over 3.00 seconds
      • Unit - Unpause CastRKZ
      • Unit - Unpause TargetRKZ
      • Selection - Select CastRKZ for (Owner of CastRKZ)
      • Custom script: call DestroyGroup(udg_UNTGRP)
      • Custom script: call RemoveLocation(udg_BZloopLOC)
  • Lionheart
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life of CastRKZ) Less than 1000.00
        • Then - Actions
          • For each (Integer B) from 1 to (18 + (Level of fated circle DUMMY for CastRKZ)), do (Actions)
            • Loop - Actions
              • Unit - Make CastRKZ Invulnerable
              • Animation - Play CastRKZ's Attack animation
              • Special Effect - Create a special effect attached to the weapon of CastRKZ using Abilities\Weapons\ZigguratFrostMissile\ZigguratFrostMissile.mdl
              • Set sfx[13] = (Last created special effect)
              • Set LocUNT2 = (Position of TargetRKZ)
              • Set LocCast2 = (Random point in (Region centered at LocUNT2 with size (80.00, 80.00)))
              • Unit - Make CastRKZ face TargetRKZ over 0.00 seconds
              • Unit - Move CastRKZ instantly to LocCast2, facing LocUNT2
              • Unit - Cause CastRKZ to damage TargetRKZ, dealing 50.00 damage of attack type Chaos and damage type Normal
              • Special Effect - Create a special effect attached to the chest of CastRKZ using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
              • Special Effect - Destroy (Last created special effect)
              • Special Effect - Create a special effect attached to the origin of CastRKZ using Abilities\Spells\NightElf\Taunt\TauntCaster.mdl
              • Set sfx[8] = (Last created special effect)
              • Special Effect - Create a special effect attached to the weapon of CastRKZ using Abilities\Weapons\WaterElementalMissile\WaterElementalMissile.mdl
              • Set sfx[9] = (Last created special effect)
              • Animation - Play CastRKZ's Attack 4 animation
              • Special Effect - Destroy sfx[8]
              • Special Effect - Destroy sfx[9]
              • Special Effect - Destroy sfx[13]
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Life of TargetRKZ) Less than or equal to 750.00
                • Then - Actions
                  • Unit - Pause TargetRKZ
                  • Unit - Pause CastRKZ
                  • Special Effect - Create a special effect attached to the weapon of CastRKZ using Abilities\Weapons\Bolt\BoltImpact.mdl
                  • Set sfx[4] = (Last created special effect)
                  • Special Effect - Create a special effect attached to the weapon of CastRKZ using Abilities\Weapons\WaterElementalMissile\WaterElementalMissile.mdl
                  • Set sfx[5] = (Last created special effect)
                  • Special Effect - Create a special effect attached to the weapon of CastRKZ using Abilities\Weapons\IllidanMissile\IllidanMissile.mdl
                  • Set sfx[7] = (Last created special effect)
                  • Special Effect - Create a special effect attached to the origin of CastRKZ using FireNova.mdx
                  • Set sfx[1] = (Last created special effect)
                  • Animation - Change CastRKZ's animation speed to 20.00% of its original speed
                  • Animation - Change TargetRKZ's animation speed to 5.00% of its original speed
                  • Animation - Play CastRKZ's Attack 2 animation
                  • Wait 1.45 game-time seconds
                  • Special Effect - Create a special effect attached to the weapon of CastRKZ using FrostNova.mdx
                  • Set sfx[2] = (Last created special effect)
                  • Special Effect - Create a special effect attached to the chest of TargetRKZ using FrostNova.mdx
                  • Set sfx[3] = (Last created special effect)
                  • Animation - Change TargetRKZ's animation speed to 100.00% of its original speed
                  • Unit - Cause CastRKZ to damage TargetRKZ, dealing 650.00 damage of attack type Chaos and damage type Universal
                  • Trigger - Run Knockback Setting <gen> (checking conditions)
                  • Wait 0.85 game-time seconds
                  • Animation - Change CastRKZ's animation speed to 100.00% of its original speed
                  • Unit - Unpause TargetRKZ
                  • Unit - Unpause CastRKZ
                  • Unit - Make CastRKZ Vulnerable
                  • Selection - Select CastRKZ for (Owner of CastRKZ)
                  • Special Effect - Destroy sfx[1]
                  • Special Effect - Destroy sfx[2]
                  • Special Effect - Destroy sfx[3]
                  • Special Effect - Destroy sfx[4]
                  • Special Effect - Destroy sfx[5]
                  • Special Effect - Destroy sfx[7]
                  • Special Effect - Destroy sfxZ[6]
                  • Special Effect - Destroy sfxZ[7]
                  • Custom script: call DestroyGroup(udg_UNTGRP)
                  • Custom script: call RemoveLocation (udg_LocCast)
                  • Custom script: call RemoveLocation (udg_LocCast2)
                  • Custom script: call RemoveLocation (udg_LocUNT)
                  • Custom script: call RemoveLocation (udg_LocUNT2)
                • Else - Actions
                  • Unit - Cause CastRKZ to damage TargetRKZ, dealing 600.00 damage of attack type Chaos and damage type Universal
                  • Trigger - Run Knockback Setting <gen> (checking conditions)
                  • Wait 0.35 game-time seconds
                  • Unit - Unpause CastRKZ
                  • Unit - Make CastRKZ Vulnerable
                  • Unit - Unpause TargetRKZ
                  • Selection - Select CastRKZ for (Owner of CastRKZ)
                  • Special Effect - Destroy sfx[1]
                  • Special Effect - Destroy sfx[2]
                  • Special Effect - Destroy sfx[3]
                  • Special Effect - Destroy sfx[4]
                  • Special Effect - Destroy sfx[5]
                  • Special Effect - Destroy sfx[6]
                  • Special Effect - Destroy sfx[7]
                  • Special Effect - Destroy sfx[8]
                  • Special Effect - Destroy sfx[9]
                  • Special Effect - Destroy sfx[10]
                  • Special Effect - Destroy sfx[11]
                  • Special Effect - Destroy sfx[12]
                  • Special Effect - Destroy sfx[13]
                  • Special Effect - Destroy sfx[14]
                  • Special Effect - Destroy sfxZ[6]
                  • Special Effect - Destroy sfxZ[7]
                  • Custom script: call DestroyGroup(udg_UNTGRP)
                  • Custom script: call RemoveLocation (udg_LocCast)
                  • Custom script: call RemoveLocation (udg_LocCast2)
                  • Custom script: call RemoveLocation (udg_LocUNT)
                  • Custom script: call RemoveLocation (udg_LocUNT2)
        • Else - Actions
  • Knockback Setting
    • Events
    • Conditions
    • Actions
      • -------- This are spell effects. They don´t affect the knockback. --------
      • Set Sample_Point = (Position of (Triggering unit))
      • Set Sample_Group = (Units within 450.00 of Sample_Point matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is Magic Immune) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Tr
      • Destructible - Pick every destructible within 450.00 of Sample_Point and do (Actions)
        • Loop - Actions
          • Destructible - Kill (Picked destructible)
      • Special Effect - Create a special effect at Sample_Point using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • -------- --------
      • -------- This are the applied actions of the 'Actions to apply' trigger. They are in a loop to affect more than one unit. --------
      • Unit Group - Pick every unit in Sample_Group and do (Actions)
        • Loop - Actions
          • Set KBA_Caster = (Triggering unit)
          • Set KBA_TargetUnit = (Picked unit)
          • Set KBA_Level = (Level of (Ability being cast) for (Triggering unit))
          • Set KBA_StartingPosition = (Position of (Triggering unit))
          • Set KBA_Speed = 6.50
          • Set KBA_DistancePerLevel = 200.00
          • Set KBA_SpecialEffects[1] = Abilities\Spells\Human\FlakCannons\FlakTarget.mdl
          • Set KBA_SpecialEffects[2] = Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
          • Set KBA_DestroyTrees = True
          • Trigger - Run Cast A Knockback <gen> (checking conditions)
      • -------- --------
      • Custom script: call RemoveLocation (udg_Sample_Point)
      • Custom script: call DestroyGroup (udg_Sample_Group)
  • Cast A Knockback
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (KBA_TargetUnit is in KB_KnockbackedUnits) Equal to True
        • Then - Actions
          • Unit Group - Remove KBA_TargetUnit from KB_KnockbackedUnits
          • Set KB_CountBuffs = (KB_CountBuffs - 1)
          • For each (Integer KB_GeneralIntegers[2]) from 1 to KB_TotalKnockUnits, do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • KB_Units[KB_GeneralIntegers[1]] Equal to KBA_TargetUnit
                • Then - Actions
                  • Set KB_GeneralIntegers[1] = KB_GeneralIntegers[2]
                  • Set KB_GeneralIntegers[2] = KB_TotalKnockUnits
                • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • KB_TotalKnockUnits Greater than KB_GeneralIntegers[1]
            • Then - Actions
              • Set KB_Levels[KB_GeneralIntegers[1]] = KB_Levels[KB_TotalKnockUnits]
              • Set KB_Units[KB_GeneralIntegers[1]] = KB_Units[KB_TotalKnockUnits]
              • Set KB_Angle[KB_GeneralIntegers[1]] = KB_Angle[KB_TotalKnockUnits]
              • Set KB_MaxDistance[KB_GeneralIntegers[1]] = KB_MaxDistance[KB_TotalKnockUnits]
              • Set KB_ReachedDistance[KB_GeneralIntegers[1]] = KB_ReachedDistance[KB_TotalKnockUnits]
              • Set KB_ReduceSpeedReal[KB_GeneralIntegers[1]] = KB_ReduceSpeedReal[KB_TotalKnockUnits]
              • Set KB_SpecificSpeed[KB_GeneralIntegers[1]] = KB_SpecificSpeed[KB_TotalKnockUnits]
              • Set KB_Effects_1[KB_GeneralIntegers[1]] = KB_Effects_1[KB_TotalKnockUnits]
              • Set KB_Effects_2[KB_GeneralIntegers[1]] = KB_Effects_2[KB_TotalKnockUnits]
              • Set KB_DestroyTrees[KB_GeneralIntegers[1]] = KB_DestroyTrees[KB_TotalKnockUnits]
              • Set KB_EffectCounter[KB_GeneralIntegers[1]] = KB_EffectCounter[KB_TotalKnockUnits]
              • Set KB_EffectCounter2[KB_GeneralIntegers[1]] = KB_EffectCounter2[KB_TotalKnockUnits]
              • Set KB_GeneralIntegers[1] = (KB_GeneralIntegers[1] - 1)
            • Else - Actions
          • Set KB_Units[KB_TotalKnockUnits] = No unit
          • Set KB_TotalKnockUnits = (KB_TotalKnockUnits - 1)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • KB_CountBuffs Equal to 0
            • Then - Actions
              • Set KB_TotalKnockUnits = 0
              • Trigger - Turn off Get Knockback <gen>
            • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • KB_CountBuffs Equal to 0
        • Then - Actions
          • Trigger - Turn on Get Knockback <gen>
        • Else - Actions
      • Set KB_CountBuffs = (KB_CountBuffs + 1)
      • Set KB_TotalKnockUnits = (KB_TotalKnockUnits + 1)
      • Set KB_Casters[KB_TotalKnockUnits] = KBA_Caster
      • Set KB_Levels[KB_TotalKnockUnits] = KBA_Level
      • Set KB_Units[KB_TotalKnockUnits] = KBA_TargetUnit
      • Set KB_StartPositions[KB_TotalKnockUnits] = KBA_StartingPosition
      • Set KB_TempPoint[KB_TotalKnockUnits] = (Position of KBA_TargetUnit)
      • Set KB_Angle[KB_TotalKnockUnits] = (Angle from KB_StartPositions[KB_TotalKnockUnits] to KB_TempPoint[KB_TotalKnockUnits])
      • Set KB_MaxDistance[KB_TotalKnockUnits] = (KBA_DistancePerLevel x (Real(KBA_Level)))
      • Set KB_ReachedDistance[KB_TotalKnockUnits] = 0.00
      • Set KB_ReduceSpeedReal[KB_GeneralIntegers[1]] = 0.00
      • Set KB_SpecificSpeed[KB_TotalKnockUnits] = KBA_Speed
      • Set KB_Effects_1[KB_TotalKnockUnits] = KBA_SpecialEffects[1]
      • Set KB_Effects_2[KB_TotalKnockUnits] = KBA_SpecialEffects[2]
      • Set KB_DestroyTrees[KB_TotalKnockUnits] = KBA_DestroyTrees
      • Set KB_EffectCounter[KB_GeneralIntegers[1]] = 0
      • Set KB_EffectCounter2[KB_GeneralIntegers[1]] = 0
      • Unit Group - Add KBA_TargetUnit to KB_KnockbackedUnits
      • Custom script: call RemoveLocation (udg_KBA_StartingPosition)
      • Custom script: call RemoveLocation (udg_KB_TempPoint [udg_KB_TotalKnockUnits] )
      • Custom script: call RemoveLocation (udg_KB_StartPositions [udg_KB_TotalKnockUnits] )
  • Get Knockback
    • Events
      • Time - Every 0.02 seconds of game time
    • Conditions
    • Actions
      • For each (Integer KB_GeneralIntegers[1]) from 1 to KB_TotalKnockUnits, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (KB_Units[KB_GeneralIntegers[1]] is in KB_KnockbackedUnits) Equal to True
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • KB_ReachedDistance[KB_GeneralIntegers[1]] Greater than or equal to KB_MaxDistance[KB_GeneralIntegers[1]]
                • Then - Actions
                  • Unit Group - Remove KB_Units[KB_GeneralIntegers[1]] from KB_KnockbackedUnits
                  • Set KB_CountBuffs = (KB_CountBuffs - 1)
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • KB_TotalKnockUnits Greater than KB_GeneralIntegers[1]
                    • Then - Actions
                      • Set KB_Levels[KB_GeneralIntegers[1]] = KB_Levels[KB_TotalKnockUnits]
                      • Set KB_Units[KB_GeneralIntegers[1]] = KB_Units[KB_TotalKnockUnits]
                      • Set KB_Angle[KB_GeneralIntegers[1]] = KB_Angle[KB_TotalKnockUnits]
                      • Set KB_MaxDistance[KB_GeneralIntegers[1]] = KB_MaxDistance[KB_TotalKnockUnits]
                      • Set KB_ReachedDistance[KB_GeneralIntegers[1]] = KB_ReachedDistance[KB_TotalKnockUnits]
                      • Set KB_ReduceSpeedReal[KB_GeneralIntegers[1]] = KB_ReduceSpeedReal[KB_TotalKnockUnits]
                      • Set KB_SpecificSpeed[KB_GeneralIntegers[1]] = KB_SpecificSpeed[KB_TotalKnockUnits]
                      • Set KB_Effects_1[KB_GeneralIntegers[1]] = KB_Effects_1[KB_TotalKnockUnits]
                      • Set KB_Effects_2[KB_GeneralIntegers[1]] = KB_Effects_2[KB_TotalKnockUnits]
                      • Set KB_DestroyTrees[KB_GeneralIntegers[1]] = KB_DestroyTrees[KB_TotalKnockUnits]
                      • Set KB_EffectCounter[KB_GeneralIntegers[1]] = KB_EffectCounter[KB_TotalKnockUnits]
                      • Set KB_EffectCounter2[KB_GeneralIntegers[1]] = KB_EffectCounter2[KB_TotalKnockUnits]
                      • Set KB_GeneralIntegers[1] = (KB_GeneralIntegers[1] - 1)
                    • Else - Actions
                  • Set KB_Units[KB_TotalKnockUnits] = No unit
                  • Set KB_TotalKnockUnits = (KB_TotalKnockUnits - 1)
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • KB_CountBuffs Equal to 0
                    • Then - Actions
                      • Set KB_TotalKnockUnits = 0
                      • Trigger - Turn off (This trigger)
                    • Else - Actions
                • Else - Actions
                  • Set KB_ReducedReal = ((KB_SpecificSpeed[KB_GeneralIntegers[1]] / KB_MaxDistance[KB_GeneralIntegers[1]]) x KB_ReachedDistance[KB_GeneralIntegers[1]])
                  • Set KB_ReduceSpeedReal[KB_GeneralIntegers[1]] = (KB_ReducedReal - (KB_ReduceSpeedReal[KB_GeneralIntegers[1]] x 0.10))
                  • Set KB_TempReal = ((KB_SpecificSpeed[KB_GeneralIntegers[1]] - KB_ReduceSpeedReal[KB_GeneralIntegers[1]]) x 2.00)
                  • Set KB_TempPoint[1] = (Position of KB_Units[KB_GeneralIntegers[1]])
                  • Set KB_TempPoint[2] = (KB_TempPoint[1] offset by KB_TempReal towards KB_Angle[KB_GeneralIntegers[1]] degrees)
                  • Set KB_EffectCounter[KB_GeneralIntegers[1]] = (KB_EffectCounter[KB_GeneralIntegers[1]] + 1)
                  • Set KB_EffectCounter2[KB_GeneralIntegers[1]] = (KB_EffectCounter2[KB_GeneralIntegers[1]] + 1)
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • KB_DestroyTrees[KB_GeneralIntegers[1]] Equal to True
                    • Then - Actions
                      • Destructible - Pick every destructible within 200.00 of KB_TempPoint[2] and do (Actions)
                        • Loop - Actions
                          • Destructible - Kill (Picked destructible)
                    • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • KB_EffectCounter[KB_GeneralIntegers[1]] Equal to 6
                    • Then - Actions
                      • Set KB_EffectCounter[KB_GeneralIntegers[1]] = 0
                      • Special Effect - Create a special effect at KB_TempPoint[1] using KB_Effects_1[KB_GeneralIntegers[1]]
                      • Special Effect - Destroy (Last created special effect)
                    • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • KB_EffectCounter2[KB_GeneralIntegers[1]] Equal to 8
                    • Then - Actions
                      • Set KB_EffectCounter2[KB_GeneralIntegers[1]] = 0
                      • Special Effect - Create a special effect at KB_TempPoint[1] using KB_Effects_2[KB_GeneralIntegers[1]]
                      • Special Effect - Destroy (Last created special effect)
                    • Else - Actions
                  • Unit - Move KB_Units[KB_GeneralIntegers[1]] instantly to KB_TempPoint[2]
                  • Custom script: call RemoveLocation (udg_KB_TempPoint[1])
                  • Custom script: call RemoveLocation (udg_KB_TempPoint[2])
                  • Set KB_ReachedDistance[KB_GeneralIntegers[1]] = (KB_ReachedDistance[KB_GeneralIntegers[1]] + KB_TempReal)
            • Else - Actions


any help be appreciated thx
 

Attachments

  • dissida.w3x
    6.4 MB · Views: 48
Last edited:
Status
Not open for further replies.
Top