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

special effect does not show anymore

Level 15
Joined
Dec 6, 2008
Messages
345
I dont know why but special effect in this type of trigger does not show ingame anymore. Previously it was ok. It also does not show in the same types of
trigger. Can it be because of the Integer A loop?

  • MineEffect
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Set VariableSet Integer = 0
      • For each (Integer A) from 1 to MineNumber, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Mine[(Integer A)] is alive) Equal to True
            • Then - Actions
              • Set VariableSet Point = (Position of Mine[(Integer A)])
              • Set VariableSet Group = (Units within 150.00 of Point matching (((((Matching unit) is alive) Equal to True) and ((((Matching unit) is A ground unit) Equal to True) or (((Matching unit) is A structure) Equal to True))) and (((Matching unit) belongs to an enemy of (Owner of Mine[(Inte
              • Custom script: call RemoveLocation(udg_Point)
              • Set VariableSet Unit = (Random unit from Group)
              • Custom script: call DestroyGroup(udg_Group)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Unit Not equal to No unit
                • Then - Actions
                  • Set VariableSet Point = (Position of Mine[(Integer A)])
                  • Unit - Kill Mine[(Integer A)]
                  • Special Effect - Create a special effect at Point using Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdl
                  • Special Effect - Destroy (Last created special effect)
                  • Set VariableSet Group = (Units within 250.00 of Point matching (((((Matching unit) is alive) Equal to True) and ((((Matching unit) is A ground unit) Equal to True) or (((Matching unit) is A structure) Equal to True))) and (((Matching unit) belongs to an enemy of (Owner of Mine[(Inte
                  • Custom script: call RemoveLocation(udg_Point)
                  • Set VariableSet Unit = MineCaster[(Integer A)]
                  • Unit Group - Pick every unit in Group and do (Actions)
                    • Loop - Actions
                      • Unit - Cause Unit to damage (Picked unit), dealing 500.00 damage of attack type Magic and damage type Fire
                  • Custom script: call DestroyGroup(udg_Group)
                • Else - Actions
            • Else - Actions
              • Set VariableSet Integer = (Integer + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Integer Equal to MineNumber
        • Then - Actions
          • Trigger - Turn off (This trigger)
        • Else - Actions
 
Last edited:
Top