• 🏆 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 Glitch, Please Help!

Status
Not open for further replies.

Qab

Qab

Level 5
Joined
Mar 19, 2009
Messages
68
Hello, I am making a loap type map, and when I tried to test it, it suddenly kept saying "Script Error" and says I have 7024 errors in my script. Here are all my triggers...

  • Baby Crabs
    • Events
      • Time - Every (Random real number between 5.00 and 30.00) seconds of game time
    • Conditions
    • Actions
      • Unit - Create 1 Baby Crab for Neutral Passive at (Position of (Random unit from (Units of type Female Crab))) facing (Random real number between 0.00 and 360.00) degrees
      • Set BabyCrab[((Execution count of (This trigger)) + 1)] = (Last created unit)
      • Wait (Random real number between 60.00 and 80.00) seconds
      • If ((Random integer number between 1 and 10) Greater than or equal to 5) then do (Unit - Replace BabyCrab[((Execution count of (This trigger)) + 1)] with a Female Crab using The old unit's relative life and mana) else do (Unit - Replace BabyCrab[((Execution count of (This trigger)) + 1)] with a Male Crab using The old unit's relative life and mana)
      • Set BabyCrab[((Execution count of (This trigger)) + 1)] = (Last replaced unit)
      • Wait (Random real number between 60.00 and 80.00) seconds
      • Unit - Kill BabyCrab[((Execution count of (This trigger)) + 1)]


  • Center Inn Enter 1
    • Events
      • Unit - A unit enters Center Inn <gen>
    • Conditions
    • Actions
      • Dialog - Change the title of CenterInn to Enter Crossroads Ta...
      • Dialog - Show CenterInn for (Owner of (Triggering unit))
      • Set EnteringUnit[((Execution count of (This trigger)) + 1)] = (Triggering unit)


  • Center Inn Enter 2
    • Events
      • Dialog - A dialog button is clicked for CenterInn
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to CenterInnYes
        • Then - Actions
          • Trigger - Turn off Center Inn Exit 1 <gen>
          • Unit - Move EnteringUnit[((Execution count of Center Inn Enter 1 <gen>) + 1)] instantly to (Center of Center Inn Inside <gen>)
          • Wait 2.00 seconds
          • Trigger - Turn on Center Inn Exit 1 <gen>
        • Else - Actions
          • Do nothing


  • Center Inn Exit 1
    • Events
      • Unit - A unit enters Center Inn Inside <gen>
    • Conditions
    • Actions
      • Dialog - Change the title of CenterInnExit to Exit Crossroads Tav...
      • Dialog - Show CenterInnExit for (Owner of (Triggering unit))
      • Set ExitingUnit[((Execution count of (This trigger)) + 1)] = (Triggering unit)


  • Center Inn Exit 2
    • Events
      • Dialog - A dialog button is clicked for CenterInnExit
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to CenterInnExitYes
        • Then - Actions
          • Trigger - Turn off Center Inn Enter 1 <gen>
          • Unit - Move ExitingUnit[((Execution count of Center Inn Exit 1 <gen>) + 1)] instantly to (Center of Center Inn <gen>)
          • Wait 2.00 seconds
          • Trigger - Turn on Center Inn Enter 1 <gen>
        • Else - Actions
          • Do nothing


  • Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Advanced - Initialize advanced triggers
      • Dialog - Create a dialog button for CenterInn labelled Yes
      • Set CenterInnYes = (Last created dialog Button)
      • Dialog - Create a dialog button for CenterInn labelled No
      • Set CenterInnNo = (Last created dialog Button)
      • Dialog - Create a dialog button for CenterInnExit labelled Yes
      • Set CenterInnExitYes = (Last created dialog Button)
      • Dialog - Create a dialog button for CenterInnExit labelled No
      • Set CenterInnExitNo = (Last created dialog Button)


  • Alliances
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Player - Make Player 1 (Red) treat Player 11 (Dark Green) as an Ally
      • Player - Make Player 1 (Red) treat Player 11 (Dark Green) as an Ally
      • Player - Make Player 11 (Dark Green) treat Player 1 (Red) as an Ally
      • Player - Make Player 12 (Brown) treat Player 1 (Red) as an Ally


And this is the trigger that I made just before glitch happened...



  • Number 1
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Cinematic - Turn cinematic mode On for Player Group - Player 1 (Red)
      • Camera - Apply Qab 1 <gen> for Player 1 (Red) over 0.00 seconds
      • Advanced - Show multiple choice dialog for Player 1 (Red) using Qab as speaker name providing the 5 choices Are you a male? (Press "F1"), Or a female? (Press "F2"), Empty String, Empty String, Empty String and using Qab 0028 <gen> as speaker and provide 20.00 seconds time to decide and show chosen line for 3.00 seconds
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Last chosen multiple choice line of Player 1 (Red)) Equal to 1
        • Then - Actions
          • Unit - Create 1 Citizen for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing (270.0) degrees
        • Else - Actions
          • Unit - Create 1 Citizen for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing (270.0) degrees
      • Camera - Apply Start 1 <gen> for Player 1 (Red) over 0.00 seconds
      • Cinematic - Send transmission to Player Group - Player 1 (Red) from Qab 0028 <gen> named Qab: Play No sound and display This is your charac.... Modify duration: Add 10.00 seconds and Wait
      • Cinematic - Turn cinematic mode Off for Player Group - Player 1 (Red) over 1.00 seconds


Whenever I delete any trigger, the amount of Script Errors lowers by about 20



Please help! Map attached below...
 

Attachments

  • Quinn's Loap.w3x
    743.8 KB · Views: 53
Level 8
Joined
Aug 4, 2006
Messages
357
Warcraft's compiler is really stupid. If just one line is wrong, it can generate a million other error messages.

Are you using a custom World Editor like WEU? Try removing the lines with prefix "Advanced" since those are not native functions of World Editor, and may be causing problems. In your trigger "Number 1", take out the line to show the multiple choice dialog.
 

Qab

Qab

Level 5
Joined
Mar 19, 2009
Messages
68
Still Glitched!!!

[((Execution count of (This trigger))]
Wouldnt it be smarter to set it to Player number of owner of triggering unit, or something?

Done (remembered that map is currently 1-player and didn't need array)

This is my new dialogue triggers. It still doesn't work. There are NO Advanced Triggers in use now.

  • Number 1
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Cinematic - Turn cinematic mode On for Player Group - Player 1 (Red)
      • Camera - Apply Qab 1 <gen> for Player 1 (Red) over 0.00 seconds
      • Wait 2.00 seconds
      • Cinematic - Turn cinematic mode Off for (All players)
      • Dialog - Change the title of StartCharacter to Are you a:
      • Dialog - Show StartCharacter for Player 1 (Red)

  • Number 2
    • Events
      • Dialog - A dialog button is clicked for StartCharacter
    • Conditions
    • Actions
      • Cinematic - Turn cinematic mode On for (All players)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to StartMale
        • Then - Actions
          • Unit - Create 1 Citizen for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing (270.0) degrees
        • Else - Actions
          • Unit - Create 1 Citizen for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing (270.0) degrees
      • Camera - Apply Start 1 <gen> for Player 1 (Red) over 0.00 seconds
      • Cinematic - Send transmission to Player Group - Player 1 (Red) from Qab 0028 <gen> named Qab: Play No sound and display This is your charac.... Modify duration: Add 10.00 seconds and Wait
      • Cinematic - Turn cinematic mode Off for Player Group - Player 1 (Red) over 1.00 seconds
It still says 7026 Errors, I tried deleting every trigger one by one, but the errors are still there, could it be something other than triggers? Should I delte all the WEU imports?
 
Level 8
Joined
Aug 4, 2006
Messages
357
I'm not really sure what the problem is. Another guy was getting ridiculous amounts of errors after he installed patch 1.24, so that might be the problem. I suggested for him to reinstall wc3, but idk if that helped. Do you still get errors when all triggers are disabled?
 
Status
Not open for further replies.
Top