• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] Got a problem with 1 of my startup triggers

Status
Not open for further replies.
Level 1
Joined
Aug 11, 2007
Messages
5
Can some1 please tell me if there is something wrong with this?
Because when i test my game nothing happens. No dialog apears and nothing is created.


  • Dialog
    • Events
      • Time - Elapsed game time is 0.50 seconds
    • Conditions
    • Actions
      • Set TempRegion = (Playable map area)
      • Player Group - Pick every player in (All players matching (((Picked player) slot status) Equal to Is playing)) and do (Player Group - Add (Picked player) to AllPlayers)
      • Set PlayerCount = (Real((Number of players in AllPlayers)))
      • Dialog - Clear DialogVamp
      • Dialog - Change the title of DialogVamp to You have been chose...
      • Dialog - Create a dialog button for DialogVamp labelled Hidden Vampire - Yo...
      • Set DialogVampButton1 = (Last created dialog Button)
      • Dialog - Create a dialog button for DialogVamp labelled Vampire - You are a...
      • Set DialogVampButton2 = (Last created dialog Button)
      • Dialog - Create a dialog button for DialogVamp labelled Open Vampire - You ...
      • Set DialogVampButton3 = (Last created dialog Button)
      • Dialog - Change the title of DialogSlayer to You are a Vampire S...
      • Trigger - Run Vampire 1 <gen> (checking conditions)
      • Wait 0.05 seconds
      • Trigger - Run Vampire 2 <gen> (checking conditions)
      • Wait 0.05 seconds
      • Trigger - Run Vampire 3 <gen> (checking conditions)
      • Wait 0.05 seconds
      • Trigger - Run Vampire 4 <gen> (checking conditions)

Next

  • Vampire 1
    • Events
    • Conditions
      • PlayerCount Greater than or equal to 9.00
    • Actions
      • Player Group - Add (Random player from AllPlayers) to Vampire
      • Player Group - Pick every player in Vampire and do (Actions)
        • Loop - Actions
          • Set Vampire1 = (Picked player)
      • Player Group - Remove Vampire1 from AllPlayers
      • Player Group - Remove Vampire1 from Vampire
      • Dialog - Show DialogVamp for Vampire1
      • If (PlayerCount Greater than or equal to 9.00) then do (Trigger - Run Create Slayers <gen> (checking conditions)) else do (Do nothing)

Next

  • Vampire 2
    • Events
    • Conditions
      • PlayerCount Greater than or equal to 5.00
    • Actions
      • Player Group - Add (Random player from AllPlayers) to Vampire
      • Player Group - Pick every player in Vampire and do (Actions)
        • Loop - Actions
          • Set Vampire2 = (Picked player)
      • Player Group - Remove Vampire2 from AllPlayers
      • Player Group - Remove Vampire2 from Vampire
      • Dialog - Show DialogVamp for Vampire2
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PlayerCount Greater than or equal to 5.00
          • PlayerCount Less than or equal to 8.00
        • Then - Actions
          • Trigger - Run Create Slayers <gen> (checking conditions)
        • Else - Actions

Next

  • Vampire 3
    • Events
    • Conditions
      • PlayerCount Greater than or equal to 2.00
    • Actions
      • Player Group - Add (Random player from AllPlayers) to Vampire
      • Player Group - Pick every player in Vampire and do (Actions)
        • Loop - Actions
          • Set Vampire3 = (Picked player)
      • Player Group - Remove Vampire3 from Vampire
      • Player Group - Remove Vampire3 from AllPlayers
      • Dialog - Show DialogVamp for Vampire3
      • If (PlayerCount Less than or equal to 4.00) then do (Trigger - Run Create Slayers <gen> (checking conditions)) else do (Do nothing)

and last

  • Vampire 4
    • Events
    • Conditions
      • PlayerCount Equal to 1.00
    • Actions
      • Trigger - Turn on Stop Endgame <gen>
      • Game - Display to AllPlayers the text: You can't play this...
      • Game - Display to Vampire the text: You can't play this...
      • Wait 20.00 seconds
      • Trigger - Run Endgame 1 <gen> (checking conditions)

Damn forgot the click button triggers here they are
  • Vampire Player 1
    • Events
      • Dialog - A dialog button is clicked for DialogVamp
    • Conditions
      • (Triggering player) Equal to Vampire1
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to DialogVampButton1
        • Then - Actions
          • Unit - Create 1 Human (Hidden Vampire) (Unarmed) for Vampire1 at (Random point in TempRegion) facing Default building facing degrees
          • Set VampHero1 = (Last created unit)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to DialogVampButton2
            • Then - Actions
              • Unit - Create 1 Human (Vampire) (Unarmed) for Vampire1 at (Random point in TempRegion) facing Default building facing degrees
              • Set VampHero1 = (Last created unit)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Clicked dialog button) Equal to DialogVampButton3
                • Then - Actions
                  • Unit - Create 1 Human (Open Vampire) (Unarmed) for Vampire1 at (Random point in TempRegion) facing Default building facing degrees
                  • Set VampHero1 = (Last created unit)
                • Else - Actions
                  • Do nothing
  • Vampire Player 2
    • Events
      • Dialog - A dialog button is clicked for DialogVamp
    • Conditions
      • (Triggering player) Equal to Vampire2
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to DialogVampButton1
        • Then - Actions
          • Unit - Create 1 Human (Hidden Vampire) (Unarmed) for Vampire2 at (Random point in TempRegion) facing Default building facing degrees
          • Set VampHero2 = (Last created unit)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to DialogVampButton2
            • Then - Actions
              • Unit - Create 1 Human (Vampire) (Unarmed) for Vampire2 at (Random point in TempRegion) facing Default building facing degrees
              • Set VampHero2 = (Last created unit)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Clicked dialog button) Equal to DialogVampButton3
                • Then - Actions
                  • Unit - Create 1 Human (Open Vampire) (Unarmed) for Vampire2 at (Random point in TempRegion) facing Default building facing degrees
                  • Set VampHero2 = (Last created unit)
                • Else - Actions
  • Vampire Player 3
    • Events
      • Dialog - A dialog button is clicked for DialogVamp
    • Conditions
      • (Triggering player) Equal to Vampire3
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to DialogVampButton1
        • Then - Actions
          • Unit - Create 1 Human (Hidden Vampire) (Unarmed) for Vampire3 at (Random point in TempRegion) facing Default building facing degrees
          • Set VampHero3 = (Last created unit)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to DialogVampButton2
            • Then - Actions
              • Unit - Create 1 Human (Vampire) (Unarmed) for Vampire3 at (Random point in TempRegion) facing Default building facing degrees
              • Set VampHero3 = (Last created unit)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Clicked dialog button) Equal to DialogVampButton3
                • Then - Actions
                  • Unit - Create 1 Human (Open Vampire) (Unarmed) for Vampire3 at (Random point in TempRegion) facing Default building facing degrees
                  • Set VampHero3 = (Last created unit)
                • Else - Actions
Please help
 
Last edited:
Status
Not open for further replies.
Top