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

How to make players choose game modes?

Status
Not open for further replies.
Level 6
Joined
Feb 16, 2014
Messages
193
Heres what i want to do:
At the start of the game the players get to choose what Mode they want(like Deathmatch,Team Deathmatch,Capture the Flag or Domination) then they choose what type(Normal or Berserk(all guns are free) then lastly they choose how many points to win. How do i do that? :vw_wtf: :vw_death:
EDIT: oh and i also want this:
if 2 players choose the mode Deathmatch mode then 4 players choose Capture the Flag mode,then the game mode will be Capture the Flag. How do i do that ?
 
Last edited:
this is how create them
  • initialize dialogs
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Dialog - Change the title of Boost to Which stat you will...
      • Dialog - Create a dialog button for Boost labelled |c00FF0303Strength|...
      • Set Strength = (Last created dialog Button)
      • Dialog - Create a dialog button for Boost labelled |c0020C000Agility|r...
      • Set Agility = (Last created dialog Button)
      • Dialog - Create a dialog button for Boost labelled |c000042FFIntellige...
      • Set Intelligence = (Last created dialog Button)
      • Dialog - Change the title of Difficulty to What is the difficu...
      • Dialog - Create a dialog button for Difficulty labelled |c0020C000Easy|r (|...
      • Set Difficulty_50 = (Last created dialog Button)
      • Dialog - Create a dialog button for Difficulty labelled |cffffcc00Normal|r ...
      • Set Difficulty_100 = (Last created dialog Button)
      • Dialog - Create a dialog button for Difficulty labelled |c00FF0303Hard|r (|...
      • Set Difficulty_150 = (Last created dialog Button)
      • Dialog - Create a dialog button for Difficulty labelled |c00959697Cancel|r
      • Dialog - Show Difficulty for Player 1 (Red)

then make triggers that respond on click
  • click difficulty
    • Events
      • Dialog - A dialog button is clicked for Difficulty
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Difficulty_50
        • Then - Actions
          • Player - Set Player 6 (Orange) handicap to 50.00%
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Difficulty_100
        • Then - Actions
          • Player - Set Player 6 (Orange) handicap to 100.00%
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Difficulty_150
        • Then - Actions
          • Player - Set Player 6 (Orange) handicap to 150.00%
        • Else - Actions
 
Level 6
Joined
Feb 16, 2014
Messages
193
This is what i made so far:
At the start of the game a player will be choosen to pick the game mode and other things.
  • Dialog Show
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Dialog - Change the title of GameMode to Choose Game Mode
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked player) controller) Equal to User
            • Then - Actions
              • Dialog - Show GameMode for (Picked player)
            • Else - Actions
And this is the Dialog Buttons
  • Dialog Buttons
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Dialog - Create a dialog button for GameMode labelled Deathmatch
      • Set GameMode_Choose[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for GameMode labelled Team Deathmatch
      • Set GameMode_Choose[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for GameMode labelled Capture The Flag
      • Set GameMode_Choose[3] = (Last created dialog Button)
      • Dialog - Create a dialog button for GameMode labelled Domination
      • Set GameMode_Choose[4] = (Last created dialog Button)
I have one problem though,when i start the game it doesn't show the dialog buttons :vw_wtf:
 
Level 6
Joined
Feb 16, 2014
Messages
193
I fixed it lol :D :D i tested it and it works :)
  • Dialog Buttons
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Dialog - Change the title of GameMode to Choose Game Mode
      • Dialog - Create a dialog button for GameMode labelled Deathmatch
      • Set GameMode_Choose[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for GameMode labelled Team Deathmatch
      • Set GameMode_Choose[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for GameMode labelled Capture The Flag
      • Set GameMode_Choose[3] = (Last created dialog Button)
      • Dialog - Create a dialog button for GameMode labelled Domination
      • Set GameMode_Choose[4] = (Last created dialog Button)
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked player) controller) Equal to User
            • Then - Actions
              • Dialog - Show GameMode for (Picked player)
            • Else - Actions
 

EdgeOfChaos

E

EdgeOfChaos

Just a warning, dialog buttons are obnoxious.

1) They cancel anything you're currently typing
2) They make you unable to discuss what mode you want
3) They look ugly

Another option is a text-based mode entering/voting, like dota does.
Another method is a dummy unit with abilities for each mode, and clicking the ability votes/decides.
 
Level 14
Joined
Dec 12, 2009
Messages
1,027
Just a warning, dialog buttons are obnoxious.

1) They cancel anything you're currently typing
2) They make you unable to discuss what mode you want
3) They look ugly

Another option is a text-based mode entering/voting, like dota does.
Another method is a dummy unit with abilities for each mode, and clicking the ability votes/decides.

I've always preferred dialog boxes over text-based entry. They're neater & force the player to interact with them. If the modes are unknown, you can list them out on the custom loading screen.

Dialog boxes are better for appearances too. If you're worried about users not making a choice just include a timer & end the vote when it expires.

If the modes are excessive in number & need a brief description then the dummy unit would work.

//\\oo//\\
 
Status
Not open for further replies.
Top