• 🏆 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] Player Controlled, Dummy Spell FREEZE

Status
Not open for further replies.
Level 7
Joined
Jul 21, 2015
Messages
103
Hi I am confused why this trigger causes my game to crash. There are a total of 4 different triggers involved, sorry I only know GUI and the problem may be with a leak that I don't spot, thanks in advance for looking through my mess of a trigger:

1st TRIGGER
  • Control Red
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Units in Region 031 <gen> owned by Player 10 (Light Blue)) is empty) Equal to True
          • ((Units in Region 031 <gen> owned by Player 8 (Pink)) is empty) Not equal to True
        • Then - Actions
          • Lightning - Destroy BlueLightning
          • Lightning - Destroy BlueLightning_Copy
          • Unit - Change ownership of Circle of Power (large) 0000 <gen> to Player 1 (Red) and Change color
          • Unit - Reset ability cooldowns for Circle of Power (large) 0000 <gen>
          • Lightning - Create a Lightning Attack lightning effect from source (Position of Enchanted Gemstone Obelisk 0192 <gen>) to target (Position of Enchanted Gemstone Obelisk 0195 <gen>)
          • Set RedLightning = (Last created lightning effect)
          • Lightning - Create a Lightning Attack lightning effect from source (Position of Enchanted Gemstone Obelisk 0194 <gen>) to target (Position of Enchanted Gemstone Obelisk 0193 <gen>)
          • Set RedLightning_Copy = (Last created lightning effect)
          • Lightning - Move RedLightning to source (Position of Enchanted Gemstone Obelisk 0192 <gen>) and target (Position of Enchanted Gemstone Obelisk 0195 <gen>)
          • Lightning - Move RedLightning_Copy to source (Position of Enchanted Gemstone Obelisk 0194 <gen>) and target (Position of Enchanted Gemstone Obelisk 0193 <gen>)
          • Lightning - Change color of RedLightning to (1.00 0.00 0.00) with 1.00 alpha
          • Lightning - Change color of RedLightning_Copy to (1.00 0.00 0.00) with 1.00 alpha
          • Wait 2.00 seconds
          • Trigger - Turn on Control Blue <gen>
          • Trigger - Turn on BonusBloodlustRed <gen>
          • Trigger - Turn off BonusBloodlustBlue <gen>
          • Trigger - Turn off (This trigger)
        • Else - Actions
          • Do nothing
2nd TRIGGER
  • Control Blue
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Units in Region 031 <gen> owned by Player 8 (Pink)) is empty) Equal to True
          • ((Units in Region 031 <gen> owned by Player 10 (Light Blue)) is empty) Not equal to True
        • Then - Actions
          • Lightning - Destroy RedLightning
          • Lightning - Destroy RedLightning_Copy
          • Unit - Change ownership of Circle of Power (large) 0000 <gen> to Player 2 (Blue) and Change color
          • Unit - Reset ability cooldowns for Circle of Power (large) 0000 <gen>
          • Lightning - Create a Lightning Attack lightning effect from source (Position of Enchanted Gemstone Obelisk 0192 <gen>) to target (Position of Enchanted Gemstone Obelisk 0195 <gen>)
          • Set BlueLightning = (Last created lightning effect)
          • Lightning - Create a Lightning Attack lightning effect from source (Position of Enchanted Gemstone Obelisk 0193 <gen>) to target (Position of Enchanted Gemstone Obelisk 0194 <gen>)
          • Set BlueLightning_Copy = (Last created lightning effect)
          • Lightning - Move BlueLightning to source (Position of Enchanted Gemstone Obelisk 0195 <gen>) and target (Position of Enchanted Gemstone Obelisk 0192 <gen>)
          • Lightning - Move BlueLightning_Copy to source (Position of Enchanted Gemstone Obelisk 0193 <gen>) and target (Position of Enchanted Gemstone Obelisk 0194 <gen>)
          • Lightning - Change color of BlueLightning to (0.00 1.00 1.00) with 1.00 alpha
          • Lightning - Change color of BlueLightning_Copy to (0.00 1.00 1.00) with 1.00 alpha
          • Wait 2.00 seconds
          • Trigger - Turn on Control Red <gen>
          • Trigger - Turn on BonusBloodlustBlue <gen>
          • Trigger - Turn off BonusBloodlustRed <gen>
          • Trigger - Turn off (This trigger)
        • Else - Actions
          • Do nothing
3rd TRIGGER (not initially on)
  • BonusBloodlustRed
    • Events
      • Unit - A unit enters Region 064 <gen>
    • Conditions
      • (Owner of (Entering unit)) Equal to Player 8 (Pink)
    • Actions
      • Unit - Create 1 Dummy1 for Player 8 (Pink) at (Position of (Entering unit)) facing 270.00 degrees
      • Unit - Order (Last created unit) to Orc Shaman - Bloodlust (Entering unit)
      • Wait 2.00 seconds
      • Unit - Remove (Last created unit) from the game
4th TRIGGER (not initially on)
  • BonusBloodlustBlue
    • Events
      • Unit - A unit enters Region 063 <gen>
    • Conditions
      • (Owner of (Entering unit)) Equal to Player 10 (Light Blue)
    • Actions
      • Unit - Create 1 Dummy1 for Player 10 (Light Blue) at (Position of (Entering unit)) facing 270.00 degrees
      • Unit - Order (Last created unit) to Orc Shaman - Bloodlust (Entering unit)
      • Wait 2.00 seconds
      • Unit - Remove (Last created unit) from the game

Some things about this trigger sequence.

Purpose: to have a king of the hill setting that allows the player controlling the center to have control of a circle of power that gives an ability and also to give each unit of said player a 10 second bloodlust boost.

What is working and not working:

The circles of power does switch to player that is in control of the center (typically), sometimes it will twitch out and even though winning player should have the circle of power, the opposing player controls it for like 10 seconds until the next wave comes in of winning player.

If I remove the last two triggers (the ones not initially on) the trigger loses the bloodlust part, and with these two triggers the game crashes.

The lightning special effect seems to stack more and more and should remove itself but it doesn't.


If it helps here is a visual of the part of my map that is greatly annoying me:
upload_2018-3-28_22-9-14.png
 
Last edited:
Status
Not open for further replies.
Top