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

[Solved] Script Error

Status
Not open for further replies.
Level 37
Joined
Aug 14, 2006
Messages
7,601
Hey.

I have one slight problem I can't get rid of. When I save always this script error pops up and I see nothing wrong with my trigger.

Error1.jpg


  • Volcanic Fissure
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to 1Volcanic Fissure (Fire 2)
    • Actions
      • Set TempLoc = (Target point of ability being cast)
      • Custom script: if not(IsLocationVisibleToPlayer(udg_TempLoc, GetTriggerPlayer())) then
      • Custom script: call SimError(GetTriggerPlayer(), "Cannot cast there.")
      • Custom script: call RemoveLocation(udg_TempLoc)
      • Skip remaining actions
      • Custom script: endif
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • CAMPAIGN_CHAPTER Equal to 1
              • CAMPAIGN_CHAPTER Greater than or equal to 4
        • Then - Actions
          • Trigger - Turn off (This trigger)
          • Unit - Create 1 Volcanic Fissure Dummy for Neutral Passive at TempLoc facing Default building facing degrees
          • Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
          • Set VolcanicFissure_Unit = (Last created unit)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of SPELL_SpellBook[2] for Restore_Panel[6]) Equal to 3
            • Then - Actions
              • Animation - Change VolcanicFissure_Unit's size to (125.00%, 125.00%, 125.00%) of its original size
            • Else - Actions
          • Custom script: call RemoveLocation(udg_TempLoc)
          • Wait 0.50 seconds
          • Set TempLoc = (Position of VolcanicFissure_Unit)
          • Set TempGroup2 = (Units owned by Neutral Hostile)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of SPELL_SpellBook[2] for Restore_Panel[6]) Equal to 3
            • Then - Actions
              • Set TempGroup = (Units within 450.00 of TempLoc matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) is in TempGroup2) Equal to True) and ((Level of Invulnerable (Neutral) for (Matching unit)) Equal to 0))))
              • Unit Group - Pick every unit in TempGroup and do (Actions)
                • Loop - Actions
                  • Unit - Create 1 Ability Dummy Unit for Player 1 (Red) at TempLoc facing Default building facing degrees
                  • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
                  • Unit - Set level of STUN (0,5 sec / lvl DUMMY STUN) for (Last created unit) to 12
                  • Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit)
                  • Unit - Create 1 Ability Dummy Unit 3 for Neutral Passive at TempLoc facing TempLoc
                  • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
                  • Unit - Set level of AAAStagger for (Last created unit) to 6
                  • Unit - Order (Last created unit) to Neutral Pandaren Brewmaster - Drunken Haze (Picked unit)
                  • Unit - Cause AAAPhodom to damage (Picked unit), dealing (Real(YMultiboard__SPELL[2])) damage of attack type Spells and damage type Normal
                  • Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Other\Volcano\VolcanoDeath.mdl
                  • Special Effect - Destroy (Last created special effect)
            • Else - Actions
              • Set TempGroup = (Units within 300.00 of TempLoc matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) is in TempGroup2) Equal to True) and ((Level of Invulnerable (Neutral) for (Matching unit)) Equal to 0))))
              • Unit Group - Pick every unit in TempGroup and do (Actions)
                • Loop - Actions
                  • Unit - Create 1 Ability Dummy Unit for Player 1 (Red) at TempLoc facing Default building facing degrees
                  • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
                  • Unit - Set level of STUN (0,5 sec / lvl DUMMY STUN) for (Last created unit) to 8
                  • Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Picked unit)
                  • Unit - Create 1 Ability Dummy Unit 3 for Neutral Passive at TempLoc facing TempLoc
                  • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
                  • Unit - Set level of AAAStagger for (Last created unit) to 4
                  • Unit - Order (Last created unit) to Neutral Pandaren Brewmaster - Drunken Haze (Picked unit)
                  • Unit - Cause AAAPhodom to damage (Picked unit), dealing (Real(YMultiboard__SPELL[2])) damage of attack type Spells and damage type Normal
                  • Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Other\Volcano\VolcanoDeath.mdl
                  • Special Effect - Destroy (Last created special effect)
          • Custom script: call DestroyGroup(udg_TempGroup2)
          • Custom script: call DestroyGroup(udg_TempGroup)
          • Custom script: call RemoveLocation(udg_TempLoc)
          • Set VolcanicFissure_Unit = No unit
          • Trigger - Turn on (This trigger)
        • Else - Actions
          • Game - Display to (All players) for 5.00 seconds the text: |c00FF0303You must ...
          • Custom script: call RemoveLocation(udg_TempLoc)
Rep for the helpers.
 
Status
Not open for further replies.
Top