• 🏆 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!

[Trigger] Trigger isn't working..

Status
Not open for further replies.
Level 12
Joined
Apr 26, 2008
Messages
830
Hi guys,

I imported this spell trigger and somehow the boulders doesn't move, they are just created and don't move/jump.

  • Dig Cast
    • Ereignisse
      • Einheit - A unit Startet den Effekt einer Fähigkeit
    • Bedingungen
      • (Ability being cast) Gleich Dig
    • Aktionen
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Bedingungen
          • D_Index1 Gleich 0
        • 'THEN'-Aktionen
          • Auslöser - Turn on Dig Loop <gen>
        • 'ELSE'-Aktionen
      • Set D_Index1 = (D_Index1 + 1)
      • Set D_Index2 = (D_Index2 + 1)
      • Set D_Boolean[D_Index2] = True
      • Set D_Caster[D_Index2] = (Triggering unit)
      • Set D_CasterLoc[D_Index2] = (Position of (Triggering unit))
      • Set D_CurrentHeight[D_Index2] = 0.00
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Bedingungen
          • (D_Caster[D_Index2] has (Item carried by D_Caster[D_Index2] of type Rock_Yewel)) Gleich True
        • 'THEN'-Aktionen
          • Set D_Damage[D_Index2] = (((((Real((Kraft of (Triggering unit) (Ausschließen bonuses)))) / 2.00) + ((Real((Intelligenz of (Triggering unit) (Ausschließen bonuses)))) / 2.00)) x 7.75) + ((Real((Hero level of (Triggering unit)))) x 4.00))
        • 'ELSE'-Aktionen
          • Set D_Damage[D_Index2] = (((((Real((Kraft of (Triggering unit) (Ausschließen bonuses)))) / 2.00) + ((Real((Intelligenz of (Triggering unit) (Ausschließen bonuses)))) / 2.00)) x 6.75) + ((Real((Hero level of (Triggering unit)))) x 4.00))
      • Set D_Range[D_Index2] = 0.00
      • Set D_MaxRange[D_Index2] = 800.00
      • Set D_DigTime[D_Index2] = 1.00
      • Set D_Delay[D_Index2] = (D_DigTime[D_Index2] + 0.50)
      • Set D_BigDamageRange[D_Index2] = 400.00
      • Set D_DamageRange[D_Index2] = 250.00
      • Set D_Speed[D_Index2] = 30.00
      • Set A_Temp_Loc = (Target point of ability being cast)
      • Set D_Angle[D_Index2] = (Angle from D_CasterLoc[D_Index2] to A_Temp_Loc)
      • Einheit - Order (Triggering unit) to Stoppen
      • Set D_DamageableTargets[D_Index2] = (Units within 1400.00 of A_Temp_Loc matching (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Gleich True))
      • Einheit - Turn collision for (Triggering unit) Aus
      • Custom script: call RemoveLocation(udg_A_Temp_Loc)
      • Spezialeffekt - Create a special effect at D_CasterLoc[D_Index2] using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
      • Spezialeffekt - Destroy (Last created special effect)
      • Countdown-Timer - Start D_Timer[D_Index2] as a Einmalig timer that will expire in 2.50 seconds
  • Dig Loop
    • Ereignisse
      • Zeit - Every 0.04 seconds of game time
    • Bedingungen
    • Aktionen
      • For each (Integer D_Index3) from 1 to D_Index2, do (Actions)
        • Schleifen - Aktionen
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Bedingungen
              • D_Boolean[D_Index3] Gleich True
            • 'THEN'-Aktionen
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • 'IF'-Bedingungen
                  • (Elapsed time for D_Timer[D_Index3]) Kleiner als D_DigTime[D_Index3]
                • 'THEN'-Aktionen
                  • Spezialeffekt - Create a special effect at D_CasterLoc[D_Index3] using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
                  • Spezialeffekt - Destroy (Last created special effect)
                  • Spezialeffekt - Create a special effect at D_CasterLoc[D_Index3] using Abilities\Spells\Other\Volcano\VolcanoDeath.mdl
                  • Spezialeffekt - Destroy (Last created special effect)
                  • Einheit - Create 1 Rock Dummy for (Owner of D_Caster[D_Index3]) at D_CasterLoc[D_Index3] facing Vorgabe für Gebäude-Ausrichtung degrees
                  • Animation - Change (Last created unit)'s size to (20.00%, 20.00%, 20.00%) of its original size
                  • Set BU_Boulder = (Last created unit)
                  • Set BU_BoulderAngle = (Random angle)
                  • Set BU_BoulderDamage = (D_Damage[D_Index3] x 0.20)
                  • Set BU_BoulderDistance = (Random real number between 225.00 and 375.00)
                  • Set BU_BoulderHeight = (Random real number between 150.00 and 450.00)
                  • Set BU_BoulderSpeed = (Random real number between 6.00 and 12.00)
                  • Set BU_BoulderAoE = 50.00
                  • Auslöser - Run Boulder Activated <gen> (checking conditions)
                  • Custom script: call RemoveLocation(udg_A_Temp_Loc)
                • 'ELSE'-Aktionen
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • 'IF'-Bedingungen
                      • (Current flying height of D_Caster[D_Index3]) Kleiner als 5000.00
                    • 'THEN'-Aktionen
                      • Einheit - Add Sturmkrähengestalt to D_Caster[D_Index3]
                      • Einheit - Remove Sturmkrähengestalt from D_Caster[D_Index3]
                      • Animation - Change D_Caster[D_Index3] flying height to 1000000.00 at 0.00
                      • Set D_Counter[D_Index3] = 12
                    • 'ELSE'-Aktionen
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • 'IF'-Bedingungen
                      • (Elapsed time for D_Timer[D_Index3]) Größer gleich D_Delay[D_Index3]
                    • 'THEN'-Aktionen
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • 'IF'-Bedingungen
                          • D_Range[D_Index3] Kleiner als D_MaxRange[D_Index3]
                        • 'THEN'-Aktionen
                          • Set A_Temp_Loc = (Position of D_Caster[D_Index3])
                          • Set A_Temp_Loc2 = (A_Temp_Loc offset by D_Speed[D_Index3] towards D_Angle[D_Index3] degrees)
                          • Spezialeffekt - Create a special effect at A_Temp_Loc using Abilities\Spells\Other\Volcano\VolcanoDeath.mdl
                          • Spezialeffekt - Destroy (Last created special effect)
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • 'IF'-Bedingungen
                              • (Elapsed time for D_Timer[D_Index3]) Größer gleich ((Real(D_Counter[D_Index3])) x 0.12)
                            • 'THEN'-Aktionen
                              • Set D_Counter[D_Index3] = (D_Counter[D_Index3] + 1)
                              • For each (Integer D_Integer) from 1 to 2, do (Actions)
                                • Schleifen - Aktionen
                                  • Einheit - Create 1 Rock Dummy for (Owner of D_Caster[D_Index3]) at A_Temp_Loc facing Vorgabe für Gebäude-Ausrichtung degrees
                                  • Set BU_Boulder = (Last created unit)
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • 'IF'-Bedingungen
                                      • D_Integer Gleich 1
                                    • 'THEN'-Aktionen
                                      • Set BU_BoulderAngle = (D_Angle[D_Index3] + 90.00)
                                    • 'ELSE'-Aktionen
                                      • Set BU_BoulderAngle = (D_Angle[D_Index3] - 90.00)
                                  • Set BU_BoulderDamage = (D_Damage[D_Index3] / 3.00)
                                  • Set BU_BoulderDistance = (Random real number between 200.00 and 400.00)
                                  • Set BU_BoulderHeight = (Random real number between 100.00 and 550.00)
                                  • Set BU_BoulderSpeed = (Random real number between 10.00 and 15.00)
                                  • Set BU_BoulderAoE = 100.00
                                  • Auslöser - Run Boulder Activated <gen> (checking conditions)
                            • 'ELSE'-Aktionen
                          • Set A_Temp_Group = (Units within D_DamageRange[D_Index3] of A_Temp_Loc2 matching (((Matching unit) is in D_DamageableTargets[D_Index3]) Gleich True))
                          • Einheitengruppe - Pick every unit in A_Temp_Group and do (Actions)
                            • Schleifen - Aktionen
                              • Einheit - Cause D_Caster[D_Index3] to damage (Picked unit), dealing D_Damage[D_Index3] damage of attack type Zaubersprüche and damage type Normal
                              • Einheitengruppe - Remove (Picked unit) from D_DamageableTargets[D_Index3]
                          • Custom script: call DestroyGroup(udg_A_Temp_Group)
                          • Custom script: call RemoveLocation(udg_A_Temp_Loc)
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • 'IF'-Bedingungen
                              • (Terrain pathing at A_Temp_Loc2 of type Flugfähigkeit is off) Gleich True
                            • 'THEN'-Aktionen
                            • 'ELSE'-Aktionen
                              • Einheit - Move D_Caster[D_Index3] instantly to A_Temp_Loc2
                          • Custom script: call RemoveLocation(udg_A_Temp_Loc)
                          • Set D_Range[D_Index3] = (D_Range[D_Index3] + 24.00)
                        • 'ELSE'-Aktionen
                          • Set A_Temp_Loc = (Position of D_Caster[D_Index3])
                          • Set A_Temp_Group = (Units within D_BigDamageRange[D_Index3] of A_Temp_Loc matching (((Matching unit) belongs to an enemy of (Owner of D_Caster[D_Index3])) Gleich True))
                          • Einheitengruppe - Pick every unit in A_Temp_Group and do (Actions)
                            • Schleifen - Aktionen
                              • Einheit - Cause D_Caster[D_Index3] to damage (Picked unit), dealing (D_Damage[D_Index3] x 2.00) damage of attack type Zaubersprüche and damage type Normal
                          • Custom script: call DestroyGroup(udg_A_Temp_Group)
                          • Spezialeffekt - Create a special effect at A_Temp_Loc using Abilities\Spells\Other\Volcano\VolcanoDeath.mdl
                          • Spezialeffekt - Destroy (Last created special effect)
                          • For each (Integer D_Integer) from 1 to 4, do (Actions)
                            • Schleifen - Aktionen
                              • Einheit - Create 1 Rock Dummy for (Owner of D_Caster[D_Index3]) at A_Temp_Loc facing Vorgabe für Gebäude-Ausrichtung degrees
                              • Animation - Change (Last created unit)'s size to (200.00%, 200.00%, 200.00%) of its original size
                              • Set BU_Boulder = (Last created unit)
                              • Set BU_BoulderAngle = (Random angle)
                              • Set BU_BoulderDamage = ((D_Damage[D_Index3] / 3.00) x 2.00)
                              • Set BU_BoulderDistance = (Random real number between 200.00 and 600.00)
                              • Set BU_BoulderSpeed = (Random real number between 15.00 and 25.00)
                              • Set BU_BoulderHeight = (Random real number between 100.00 and 700.00)
                              • Set BU_BoulderAoE = 250.00
                              • Auslöser - Run Boulder Activated <gen> (checking conditions)
                          • Custom script: call RemoveLocation(udg_A_Temp_Loc)
                          • Einheit - Turn collision for D_Caster[D_Index3] Ein
                          • Animation - Change D_Caster[D_Index3] flying height to 0.00 at 0.00
                          • Set D_Boolean[D_Index3] = False
                          • Set D_Index1 = (D_Index1 - 1)
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • 'IF'-Bedingungen
                              • D_Index1 Gleich 0
                            • 'THEN'-Aktionen
                              • Set D_Index2 = 0
                              • Auslöser - Turn off (This trigger)
                            • 'ELSE'-Aktionen
                    • 'ELSE'-Aktionen
            • 'ELSE'-Aktionen
  • Dig Loop
    • Ereignisse
      • Zeit - Every 0.04 seconds of game time
    • Bedingungen
    • Aktionen
      • For each (Integer D_Index3) from 1 to D_Index2, do (Actions)
        • Schleifen - Aktionen
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Bedingungen
              • D_Boolean[D_Index3] Gleich True
            • 'THEN'-Aktionen
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • 'IF'-Bedingungen
                  • (Elapsed time for D_Timer[D_Index3]) Kleiner als D_DigTime[D_Index3]
                • 'THEN'-Aktionen
                  • Spezialeffekt - Create a special effect at D_CasterLoc[D_Index3] using Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
                  • Spezialeffekt - Destroy (Last created special effect)
                  • Spezialeffekt - Create a special effect at D_CasterLoc[D_Index3] using Abilities\Spells\Other\Volcano\VolcanoDeath.mdl
                  • Spezialeffekt - Destroy (Last created special effect)
                  • Einheit - Create 1 Rock Dummy for (Owner of D_Caster[D_Index3]) at D_CasterLoc[D_Index3] facing Vorgabe für Gebäude-Ausrichtung degrees
                  • Animation - Change (Last created unit)'s size to (20.00%, 20.00%, 20.00%) of its original size
                  • Set BU_Boulder = (Last created unit)
                  • Set BU_BoulderAngle = (Random angle)
                  • Set BU_BoulderDamage = (D_Damage[D_Index3] x 0.20)
                  • Set BU_BoulderDistance = (Random real number between 225.00 and 375.00)
                  • Set BU_BoulderHeight = (Random real number between 150.00 and 450.00)
                  • Set BU_BoulderSpeed = (Random real number between 6.00 and 12.00)
                  • Set BU_BoulderAoE = 50.00
                  • Auslöser - Run Boulder Activated <gen> (checking conditions)
                  • Custom script: call RemoveLocation(udg_A_Temp_Loc)
                • 'ELSE'-Aktionen
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • 'IF'-Bedingungen
                      • (Current flying height of D_Caster[D_Index3]) Kleiner als 5000.00
                    • 'THEN'-Aktionen
                      • Einheit - Add Sturmkrähengestalt to D_Caster[D_Index3]
                      • Einheit - Remove Sturmkrähengestalt from D_Caster[D_Index3]
                      • Animation - Change D_Caster[D_Index3] flying height to 1000000.00 at 0.00
                      • Set D_Counter[D_Index3] = 12
                    • 'ELSE'-Aktionen
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • 'IF'-Bedingungen
                      • (Elapsed time for D_Timer[D_Index3]) Größer gleich D_Delay[D_Index3]
                    • 'THEN'-Aktionen
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • 'IF'-Bedingungen
                          • D_Range[D_Index3] Kleiner als D_MaxRange[D_Index3]
                        • 'THEN'-Aktionen
                          • Set A_Temp_Loc = (Position of D_Caster[D_Index3])
                          • Set A_Temp_Loc2 = (A_Temp_Loc offset by D_Speed[D_Index3] towards D_Angle[D_Index3] degrees)
                          • Spezialeffekt - Create a special effect at A_Temp_Loc using Abilities\Spells\Other\Volcano\VolcanoDeath.mdl
                          • Spezialeffekt - Destroy (Last created special effect)
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • 'IF'-Bedingungen
                              • (Elapsed time for D_Timer[D_Index3]) Größer gleich ((Real(D_Counter[D_Index3])) x 0.12)
                            • 'THEN'-Aktionen
                              • Set D_Counter[D_Index3] = (D_Counter[D_Index3] + 1)
                              • For each (Integer D_Integer) from 1 to 2, do (Actions)
                                • Schleifen - Aktionen
                                  • Einheit - Create 1 Rock Dummy for (Owner of D_Caster[D_Index3]) at A_Temp_Loc facing Vorgabe für Gebäude-Ausrichtung degrees
                                  • Set BU_Boulder = (Last created unit)
                                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    • 'IF'-Bedingungen
                                      • D_Integer Gleich 1
                                    • 'THEN'-Aktionen
                                      • Set BU_BoulderAngle = (D_Angle[D_Index3] + 90.00)
                                    • 'ELSE'-Aktionen
                                      • Set BU_BoulderAngle = (D_Angle[D_Index3] - 90.00)
                                  • Set BU_BoulderDamage = (D_Damage[D_Index3] / 3.00)
                                  • Set BU_BoulderDistance = (Random real number between 200.00 and 400.00)
                                  • Set BU_BoulderHeight = (Random real number between 100.00 and 550.00)
                                  • Set BU_BoulderSpeed = (Random real number between 10.00 and 15.00)
                                  • Set BU_BoulderAoE = 100.00
                                  • Auslöser - Run Boulder Activated <gen> (checking conditions)
                            • 'ELSE'-Aktionen
                          • Set A_Temp_Group = (Units within D_DamageRange[D_Index3] of A_Temp_Loc2 matching (((Matching unit) is in D_DamageableTargets[D_Index3]) Gleich True))
                          • Einheitengruppe - Pick every unit in A_Temp_Group and do (Actions)
                            • Schleifen - Aktionen
                              • Einheit - Cause D_Caster[D_Index3] to damage (Picked unit), dealing D_Damage[D_Index3] damage of attack type Zaubersprüche and damage type Normal
                              • Einheitengruppe - Remove (Picked unit) from D_DamageableTargets[D_Index3]
                          • Custom script: call DestroyGroup(udg_A_Temp_Group)
                          • Custom script: call RemoveLocation(udg_A_Temp_Loc)
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • 'IF'-Bedingungen
                              • (Terrain pathing at A_Temp_Loc2 of type Flugfähigkeit is off) Gleich True
                            • 'THEN'-Aktionen
                            • 'ELSE'-Aktionen
                              • Einheit - Move D_Caster[D_Index3] instantly to A_Temp_Loc2
                          • Custom script: call RemoveLocation(udg_A_Temp_Loc)
                          • Set D_Range[D_Index3] = (D_Range[D_Index3] + 24.00)
                        • 'ELSE'-Aktionen
                          • Set A_Temp_Loc = (Position of D_Caster[D_Index3])
                          • Set A_Temp_Group = (Units within D_BigDamageRange[D_Index3] of A_Temp_Loc matching (((Matching unit) belongs to an enemy of (Owner of D_Caster[D_Index3])) Gleich True))
                          • Einheitengruppe - Pick every unit in A_Temp_Group and do (Actions)
                            • Schleifen - Aktionen
                              • Einheit - Cause D_Caster[D_Index3] to damage (Picked unit), dealing (D_Damage[D_Index3] x 2.00) damage of attack type Zaubersprüche and damage type Normal
                          • Custom script: call DestroyGroup(udg_A_Temp_Group)
                          • Spezialeffekt - Create a special effect at A_Temp_Loc using Abilities\Spells\Other\Volcano\VolcanoDeath.mdl
                          • Spezialeffekt - Destroy (Last created special effect)
                          • For each (Integer D_Integer) from 1 to 4, do (Actions)
                            • Schleifen - Aktionen
                              • Einheit - Create 1 Rock Dummy for (Owner of D_Caster[D_Index3]) at A_Temp_Loc facing Vorgabe für Gebäude-Ausrichtung degrees
                              • Animation - Change (Last created unit)'s size to (200.00%, 200.00%, 200.00%) of its original size
                              • Set BU_Boulder = (Last created unit)
                              • Set BU_BoulderAngle = (Random angle)
                              • Set BU_BoulderDamage = ((D_Damage[D_Index3] / 3.00) x 2.00)
                              • Set BU_BoulderDistance = (Random real number between 200.00 and 600.00)
                              • Set BU_BoulderSpeed = (Random real number between 15.00 and 25.00)
                              • Set BU_BoulderHeight = (Random real number between 100.00 and 700.00)
                              • Set BU_BoulderAoE = 250.00
                              • Auslöser - Run Boulder Activated <gen> (checking conditions)
                          • Custom script: call RemoveLocation(udg_A_Temp_Loc)
                          • Einheit - Turn collision for D_Caster[D_Index3] Ein
                          • Animation - Change D_Caster[D_Index3] flying height to 0.00 at 0.00
                          • Set D_Boolean[D_Index3] = False
                          • Set D_Index1 = (D_Index1 - 1)
                          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            • 'IF'-Bedingungen
                              • D_Index1 Gleich 0
                            • 'THEN'-Aktionen
                              • Set D_Index2 = 0
                              • Auslöser - Turn off (This trigger)
                            • 'ELSE'-Aktionen
                    • 'ELSE'-Aktionen
            • 'ELSE'-Aktionen
  • Boulder Activated
    • Ereignisse
    • Bedingungen
    • Aktionen
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Bedingungen
          • BU_Index1 Gleich 0
        • 'THEN'-Aktionen
          • Auslöser - Turn on Boulder Movement <gen>
        • 'ELSE'-Aktionen
      • Set BU_Index1 = (BU_Index1 + 1)
      • Set BU_Index2 = (BU_Index2 + 1)
      • Set BU_Unit[BU_Index2] = BU_Boulder
      • Set BU_Damage[BU_Index2] = BU_BoulderDamage
      • Set BU_MaxDistance[BU_Index2] = BU_BoulderDistance
      • Set BU_MaxHeight[BU_Index2] = BU_BoulderHeight
      • Set BU_CurrentDistance[BU_Index2] = 0.00
      • Set BU_CurrentHeight[BU_Index2] = 0.00
      • Set BU_Speed[BU_Index2] = BU_BoulderSpeed
      • Set BU_Angle[BU_Index2] = BU_BoulderAngle
      • Set BU_AoE[BU_Index2] = BU_BoulderAoE
      • Einheitengruppe - Add BU_Unit[BU_Index2] to BU_Boulders[BU_Index2]

  • Boulder Movement
    • Ereignisse
      • Zeit - Every 0.04 seconds of game time
    • Bedingungen
    • Aktionen
      • For each (Integer BU_Index3) from 1 to BU_Index2, do (Actions)
        • Schleifen - Aktionen
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Bedingungen
              • (BU_Unit[BU_Index3] is in BU_Boulders[BU_Index3]) Gleich True
            • 'THEN'-Aktionen
              • Set BU_CurrentDistance[BU_Index3] = (BU_CurrentDistance[BU_Index3] + BU_Speed[BU_Index3])
              • Set BU_CurrentHeight[BU_Index3] = (((4.00 x BU_MaxHeight[BU_Index3]) / BU_MaxDistance[BU_Index3]) x ((BU_MaxDistance[BU_Index3] - BU_CurrentDistance[BU_Index3]) x (BU_CurrentDistance[BU_Index3] / BU_MaxDistance[BU_Index3])))
              • Animation - Change BU_Unit[BU_Index3] flying height to BU_CurrentHeight[BU_Index3] at 0.00
              • Set A_Temp_Loc = (Position of BU_Unit[BU_Index3])
              • Set A_Temp_Loc2 = (A_Temp_Loc offset by BU_Speed[BU_Index3] towards BU_Angle[BU_Index3] degrees)
              • Custom script: call RemoveLocation(udg_A_Temp_Loc)
              • Einheit - Move BU_Unit[BU_Index3] instantly to A_Temp_Loc2
              • Custom script: call RemoveLocation(udg_A_Temp_Loc2)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • 'IF'-Bedingungen
                  • BU_CurrentDistance[BU_Index3] Größer gleich BU_MaxDistance[BU_Index3]
                • 'THEN'-Aktionen
                  • Set A_Temp_Loc = (Position of BU_Unit[BU_Index3])
                  • Spezialeffekt - Create a special effect at A_Temp_Loc using Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
                  • Spezialeffekt - Destroy (Last created special effect)
                  • Set A_Temp_Group = (Units within BU_AoE[BU_Index3] of A_Temp_Loc matching (((Matching unit) belongs to an enemy of (Owner of BU_Unit[BU_Index3])) Gleich True))
                  • Einheitengruppe - Pick every unit in A_Temp_Group and do (Einheit - Cause BU_Unit[BU_Index3] to damage (Picked unit), dealing BU_Damage[BU_Index3] damage of attack type Normal and damage type Normal)
                  • Custom script: call RemoveLocation(udg_A_Temp_Loc)
                  • Custom script: call DestroyGroup(udg_A_Temp_Group)
                  • Einheit - Remove BU_Unit[BU_Index3] from the game
                  • Einheitengruppe - Remove BU_Unit[BU_Index3] from BU_Boulders[BU_Index3]
                  • Set BU_Index1 = (BU_Index1 - 1)
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • 'IF'-Bedingungen
                      • BU_Index1 Gleich 0
                    • 'THEN'-Aktionen
                      • Set BU_Index2 = 0
                      • Auslöser - Turn off (This trigger)
                    • 'ELSE'-Aktionen
                • 'ELSE'-Aktionen
            • 'ELSE'-Aktionen
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • Countdown-Timer - Start D_Timer[D_Index2] as a Einmalig timer that will expire in 2.50 seconds
The timers used here are propably not initialized.

Either set the initial size of the timer array to some number. If you set it to ten, then the system will support 10 simultaneous instances.

Or add these before starting the timer:
  • Custom script: if udg_D_Timer[udg_D_Index2] == null then
  • Custom script: set udg_D_Timer[udg_D_Index2] = CreateTimer()
  • Custom script: endif
 
Level 12
Joined
Apr 26, 2008
Messages
830
  • Countdown-Timer - Start D_Timer[D_Index2] as a Einmalig timer that will expire in 2.50 seconds
The timers used here are propably not initialized.

Either set the initial size of the timer array to some number. If you set it to ten, then the system will support 10 simultaneous instances.

Or add these before starting the timer:
  • Custom script: if udg_D_Timer[udg_D_Index2] == null then
  • Custom script: set udg_D_Timer[udg_D_Index2] = CreateTimer()
  • Custom script: endif

alright thanks i will try this =)
 
Status
Not open for further replies.
Top