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

Dificulty System

Status
Not open for further replies.
Level 3
Joined
Apr 4, 2012
Messages
64
i was wondering how to make a vote dificult system

- when map starts after 15 seconds it apears a window to all players to vote: easy/normal/insane

-easy = set handicap to 150% disables black mask
-normal = set handicap to 100% disables black mask
-insane = set handicap to 50% enables black mask

most voted gets picked

does anyone know any system like this or does anyone has more ideias?

thx in advanced
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
I would suggest working with 50%, 75% and 100% hp on dificulties.

1- You set these on map initialization.
Set Real[1] = 0.50
Set Real[2] = 0.75
Set Real[3] = 1.00
Difficulty[1] = 0 (Easy)
Difficulty[2] = 0 (Normal)
Difficulty[3] = 0 (Hard)

All these are Integer variables. if they have '[]'s then it's an array.

2-
If player picks Easy, you set Difficulty[1] = (Difficulty[1] + 1)
If player picks Normal, you set Difficulty[2] = (Difficulty[2] + 1)
Else you set Difficulty[3] = (Difficulty[3] + 1)

3- Then you loop through the array to find the highest
Set TInt2 = 0
For each integer A from 1 to 3 do:
Loop
Set TInt = Difficulty[Integer A]
If/then/Else
If TInt is greater than TInt2
Then set TInt2 = Integer A
Else

That simple trigger will make TInt2 = to the difficulty picked.

4- Then you can re-use the Difficulty[1] = Tint2 (So TInt2 is free for any other temporal use)

5- On event "A unit enters playable map area" and "Unit is owned by YourCreepPlayer" you "Set Life of Triggering Unit = (Life of Triggering Unit x Real[Difficulty[1]])).

It can be improved, but is better than nothing.
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
idk what the above guys talking about

but its like, first you do whatever you want to get difficulty

Than you do

  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • (Matched chat string) Equal to -easy
  • Then - Actions
  • Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 2 (Blue)) and do (Actions)
  • Loop - Actions
  • Unit - Remove Attack (HARD) from (Picked unit)
  • Unit - Remove Attack (NORMAL) from (Picked unit)
  • Unit - Remove Max HP (HARD) from (Picked unit)
  • Unit - Remove Max HP (NORMAL) from (Picked unit)
  • Game - Display to (All players) for 10.00 seconds the text: ((Name of (Triggering player)) + has selected easy mode.)
  • Else - Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • (Matched chat string) Equal to -normal
  • Then - Actions
  • Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 2 (Blue)) and do (Actions)
  • Loop - Actions
  • Unit - Add Attack (NORMAL) to (Picked unit)
  • Unit - Add Max HP (NORMAL) to (Picked unit)
  • Unit - Remove Attack (HARD) from (Picked unit)
  • Unit - Remove Max HP (HARD) from (Picked unit)
  • Game - Display to (All players) for 10.00 seconds the text: ((Name of (Triggering player)) + has selected normal mode.)
  • Else - Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • (Matched chat string) Equal to -hard
  • Then - Actions
  • Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 2 (Blue)) and do (Actions)
  • Loop - Actions
  • Unit - Add Attack (HARD) to (Picked unit)
  • Unit - Add Max HP (HARD) to (Picked unit)
  • Unit - Remove Attack (NORMAL) from (Picked unit)
  • Unit - Remove Max HP (NORMAL) from (Picked unit)
  • Game - Display to (All players) for 10.00 seconds the text: ((Name of (Triggering player)) + has selected hardl mode.)
  • Else - Actions
Instead of Add Max HP, you would do set hp = hp x whatever. Add Attack would be based off of cmd aura so that it does +% damage
 
Level 3
Joined
Apr 4, 2012
Messages
64
I would suggest working with 50%, 75% and 100% hp on dificulties.

1- You set these on map initialization.
Set Real[1] = 0.50 doesnt let me put decimal numbers only full 1,2,3,4,5 or negatives....
Set Real[2] = 0.75
Set Real[3] = 1.00
Difficulty[1] = 0 (Easy) set difficulty?
Difficulty[2] = 0 (Normal)
Difficulty[3] = 0 (Hard)

All these are Integer variables. if they have '[]'s then it's an array.

2-
If player picks Easy, you set Difficulty[1] = (Difficulty[1] + 1) what fuction do i use?
If player picks Normal, you set Difficulty[2] = (Difficulty[2] + 1)
Else you set Difficulty[3] = (Difficulty[3] + 1)

3- Then you loop through the array to find the highest
Set TInt2 = 0
For each integer A from 1 to 3 do:
Loop
Set TInt = Difficulty[Integer A]
If/then/Else
If TInt is greater than TInt2
Then set TInt2 = Integer A
Else

That simple trigger will make TInt2 = to the difficulty picked.

4- Then you can re-use the Difficulty[1] = Tint2 (So TInt2 is free for any other temporal use) integer comparation?

5- On event "A unit enters playable map area" and "Unit is owned by YourCreepPlayer" you "Set Life of Triggering Unit = (Life of Triggering Unit x Real[Difficulty[1]])). OK

It can be improved, but is better than nothing.

check few questions^^

------------------------------------------------------------------------------------------------------

what i really wanted is when game starts everyone gets a window with easy/normal/insane

and the most votes gets picked (15 seconds timer for the window then it does by auto normal dificulty)

idk what the above guys talking about

but its like, first you do whatever you want to get difficulty

Than you do

  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • (Matched chat string) Equal to -easy
  • Then - Actions
  • Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 2 (Blue)) and do (Actions)
  • Loop - Actions
  • Unit - Remove Attack (HARD) from (Picked unit)
  • Unit - Remove Attack (NORMAL) from (Picked unit)
  • Unit - Remove Max HP (HARD) from (Picked unit)
  • Unit - Remove Max HP (NORMAL) from (Picked unit)
  • Game - Display to (All players) for 10.00 seconds the text: ((Name of (Triggering player)) + has selected easy mode.)
  • Else - Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • (Matched chat string) Equal to -normal
  • Then - Actions
  • Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 2 (Blue)) and do (Actions)
  • Loop - Actions
  • Unit - Add Attack (NORMAL) to (Picked unit)
  • Unit - Add Max HP (NORMAL) to (Picked unit)
  • Unit - Remove Attack (HARD) from (Picked unit)
  • Unit - Remove Max HP (HARD) from (Picked unit)
  • Game - Display to (All players) for 10.00 seconds the text: ((Name of (Triggering player)) + has selected normal mode.)
  • Else - Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • (Matched chat string) Equal to -hard
  • Then - Actions
  • Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 2 (Blue)) and do (Actions)
  • Loop - Actions
  • Unit - Add Attack (HARD) to (Picked unit)
  • Unit - Add Max HP (HARD) to (Picked unit)
  • Unit - Remove Attack (NORMAL) from (Picked unit)
  • Unit - Remove Max HP (NORMAL) from (Picked unit)
  • Game - Display to (All players) for 10.00 seconds the text: ((Name of (Triggering player)) + has selected hardl mode.)
  • Else - Actions
Instead of Add Max HP, you would do set hp = hp x whatever. Add Attack would be based off of cmd aura so that it does +% damage

hmmm not the best way in my point.
and i would have to set loads of stuff
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
I don't work with Dialogs, look for a tutorial. I know it's easy, but i've never used that. You just set the variables depending on the selected option.

Sadly, my trigger example doesn't allow setting Normal difficulty if the timer expires, it will pick the highest value, even if it's "1" on hard. That's just an example. The best way would be

When player selects an option:
Set Total Votes = (Total Votes + 1)
Set Difficulty[SelectedOption] = (Dificulty[SelectedOption) + 1)

At the end of the timer you check
Set Difficulty[Integer A]: Total Votes / SelectedOption[Integer A]

Then you loop from 1 to 3 (Normal, Hard, Insane) to find the highest Difficulty[Index] value, then you set the creep max health by (Creep Max Health x Real[Selected Difficulty].
 
Level 3
Joined
Apr 4, 2012
Messages
64
I don't work with Dialogs, look for a tutorial. I know it's easy, but i've never used that. You just set the variables depending on the selected option.

Sadly, my trigger example doesn't allow setting Normal difficulty if the timer expires, it will pick the highest value, even if it's "1" on hard. That's just an example. The best way would be

When player selects an option:
Set Total Votes = (Total Votes + 1)
Set Difficulty[SelectedOption] = (Dificulty[SelectedOption) + 1)

At the end of the timer you check
Set Difficulty[Integer A]: Total Votes / SelectedOption[Integer A]

Then you loop from 1 to 3 (Normal, Hard, Insane) to find the highest Difficulty[Index] value, then you set the creep max health by (Creep Max Health x Real[Selected Difficulty].
lol i love it when u say "it's easy" haahha took me 4 hours to understand and put it working the multiboard that u made for me. i have a preset here and now iam working with a multiboard 10x harder then the one u made for me ahahha xD ill add it to my map and ill post hero to change some stuff.
 
Level 3
Joined
Apr 4, 2012
Messages
64
I DID IT! I made 1 it works 100% like i wanted :D The image doesn't shows the 15s timer after someone voting it picks the most voted if noone votes it goes by default normal. :p
332c4jq.png

Put this on initialization at actions
  • Set VoteDoneBool = False
  • Set VoteNumberNormal = 0
  • Set VoteNumberEasy = 0
  • Set VoteNumberInsane = 0
  • Game - Set ally color filtering to 0
  • -------- Vote-Board --------
  • Wait 0.10 seconds
  • Multiboard - Create a multiboard with 2 columns and 7 rows, titled Vote-Board
  • Set VoteBoard = (Last created multiboard)
  • For each (Integer A) from 1 to 10, do (Actions)
    • Loop - Actions
      • Multiboard - Set the display style for VoteBoard item in column 1, row (Integer A) to Show text and Hide icons
      • Multiboard - Set the display style for VoteBoard item in column 2, row (Integer A) to Show text and Hide icons
      • Multiboard - Set the width for VoteBoard item in column 1, row (Integer A) to 14.00% of the total screen width
      • Multiboard - Set the width for VoteBoard item in column 2, row (Integer A) to 4.50% of the total screen width
  • Multiboard - Set the text for VoteBoard item in column 1, row 1 to |cffFF1111Easy|r
  • Multiboard - Set the text for VoteBoard item in column 2, row 1 to |cffffcc000|r
  • Multiboard - Set the text for VoteBoard item in column 1, row 2 to |cffFF2222Normal|r
  • Multiboard - Set the text for VoteBoard item in column 2, row 2 to |cffffcc000|r
  • Multiboard - Set the text for VoteBoard item in column 1, row 3 to |cffFF3333Insane|r
  • Multiboard - Set the text for VoteBoard item in column 2, row 3 to |cffffcc000|r
  • Multiboard - Set the text for VoteBoard item in column 1, row 4 to <Empty String>
  • Multiboard - Set the text for VoteBoard item in column 2, row 4 to <Empty String>
  • Multiboard - Set the display style for VoteBoard item in column 1, row 8 to Show text and Show icons
  • Multiboard - Set the icon for VoteBoard item in column 1, row 5 to ReplaceableTextures\PassiveButtons\PASBTNStatUp.blp
  • Multiboard - Set the text for VoteBoard item in column 1, row 5 to |cffFFFFFFPlayers:|r
  • Multiboard - Set the text for VoteBoard item in column 2, row 5 to (|cffffcc00 + ((String(VotingPlayersTotal)) + |r))
  • Multiboard - Set the display style for VoteBoard item in column 1, row 6 to Show text and Show icons
  • Multiboard - Set the icon for VoteBoard item in column 1, row 6 to ReplaceableTextures\PassiveButtons\PASBTNStatUp.blp
  • Multiboard - Set the text for VoteBoard item in column 1, row 6 to |cffFFFFFFVotes:|r
  • Multiboard - Set the text for VoteBoard item in column 2, row 6 to |cffffcc000|r
  • Multiboard - Set the text for VoteBoard item in column 1, row 7 to <Empty String>
  • Multiboard - Set the text for VoteBoard item in column 2, row 7 to <Empty String>
  • Multiboard - Show VoteBoard
  • Dialog - Change the title of KickDialogHelp to |cffFF6666You are k...
  • Dialog - Create a dialog button for KickDialogHelp labelled Ok
  • -------- Vote --------
  • Dialog - Change the title of VoteDialog to Vote Menu
  • Dialog - Create a dialog button for VoteDialog labelled |cffFFFF55Easy|r
  • Set VoteEasy = (Last created dialog Button)
  • Dialog - Create a dialog button for VoteDialog labelled |cff66FF66Normal|r
  • Set VoteNormal = (Last created dialog Button)
  • Dialog - Create a dialog button for VoteDialog labelled |cffFF1111Insane|r
  • Set VoteInsane = (Last created dialog Button)
  • Player Group - Pick every player in (All players) and do (Actions)
    • Loop - Actions
      • Dialog - Show VoteDialog for (Picked player)
  • Wait 1.50 seconds
  • Set VoteTimer = 15
  • Multiboard - Change the number of rows for VoteBoard to 8
  • Multiboard - Set the display style for VoteBoard item in column 1, row 8 to Show text and Hide icons
  • Multiboard - Set the display style for VoteBoard item in column 2, row 8 to Show text and Hide icons
  • Multiboard - Set the width for VoteBoard item in column 1, row 8 to 14.00% of the total screen width
  • Multiboard - Set the width for VoteBoard item in column 2, row 8 to 4.50% of the total screen width
  • Multiboard - Set the text for VoteBoard item in column 1, row 8 to |cff33BBBBVote-Time...
  • Multiboard - Set the text for VoteBoard item in column 2, row 8 to (String(VoteTimer))
  • For each (Integer A) from 1 to 15, do (Actions)
    • Loop - Actions
      • Wait 0.90 seconds
      • Set VoteTimer = (VoteTimer - 1)
      • Multiboard - Set the text for VoteBoard item in column 2, row 8 to (String(VoteTimer))
  • Wait 1.00 seconds
  • Multiboard - Change the number of rows for VoteBoard to 7
  • Set VoteDoneBool = True
  • Trigger - Run Mode Vote Done Check <gen> (checking conditions)
  • Wait 5.00 seconds
This is a normal Trigger
  • Mode Vote Cast
    • Events
      • Dialog - A dialog button is clicked for VoteDialog
    • Conditions
      • NoMoreVoting Equal to False
    • Actions
      • Camera - Reset camera for (Triggering player) to standard game-view over 3.00 seconds
      • Set VotingPlayersDone = (VotingPlayersDone + 1)
      • Multiboard - Set the text for VoteBoard item in column 2, row 6 to (|cffffcc00 + ((String(VotingPlayersDone)) + |r))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to VoteEasy
        • Then - Actions
          • Set VoteNumberEasy = (VoteNumberEasy + 1)
          • Multiboard - Set the text for VoteBoard item in column 2, row 1 to (|cffffcc00 + ((String(VoteNumberEasy)) + |r))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to VoteNormal
        • Then - Actions
          • Set VoteNumberNormal = (VoteNumberNormal + 1)
          • Multiboard - Set the text for VoteBoard item in column 2, row 2 to (|cffffcc00 + ((String(VoteNumberNormal)) + |r))
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to VoteInsane
        • Then - Actions
          • Set VoteNumberInsane = (VoteNumberInsane + 1)
          • Multiboard - Set the text for VoteBoard item in column 2, row 3 to (|cffffcc00 + ((String(VoteNumberInsane)) + |r))
        • Else - Actions
      • Trigger - Run Mode Vote Done Check <gen> (checking conditions)
This is a normal Trigger
  • Mode Vote Done Check
    • Events
    • Conditions
      • NoMoreVoting Equal to False
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • VotingPlayersTotal Equal to VotingPlayersDone
        • Then - Actions
          • Player Group - Pick every player in (All players) and do (Actions)
            • Loop - Actions
              • Dialog - Hide VoteDialog for (Picked player)
              • Camera - Reset camera for (Picked player) to standard game-view over 3.00 seconds
          • Set VoteDoneBool = True
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • VoteDoneBool Equal to True
        • Then - Actions
          • Set Multiboard = (Last created multiboard)
          • -------- Normal - Default --------
          • -------- Easy --------
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • VoteNumberEasy Greater than or equal to VoteNumberNormal
              • VoteNumberEasy Greater than or equal to VoteNumberInsane
            • Then - Actions
              • Set ModeEasy = True
              • Sound - Play GoodJob <gen>
              • Game - Display to (All players) the text: Mode: |cffFFFF55Eas...
              • Player - Set Player 11 (Dark Green) handicap to 75.00%
              • Visibility - Disable black mask
            • Else - Actions
          • -------- Normal --------
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • VoteNumberNormal Greater than VoteNumberEasy
              • VoteNumberNormal Greater than or equal to VoteNumberInsane
            • Then - Actions
              • Set ModeNormal = True
              • Sound - Play GoodJob <gen>
              • Game - Display to (All players) the text: Mode: |cffFF1111Nor...
              • Player - Set Player 11 (Dark Green) handicap to 100.00%
              • Visibility - Disable black mask
            • Else - Actions
          • -------- Insane --------
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • VoteNumberInsane Greater than VoteNumberEasy
              • VoteNumberInsane Greater than VoteNumberNormal
            • Then - Actions
              • Set ModeInsane = True
              • Sound - Play GoodJob <gen>
              • Game - Display to (All players) the text: Mode: |cffFF3333Ins...
              • Player - Set Player 11 (Dark Green) handicap to 125.00%
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ModeEasy Equal to False
              • ModeNormal Equal to False
              • ModeInsane Equal to False
            • Then - Actions
              • Game - Display to (All players) the text: Mode: |cff66FF66Nor...
            • Else - Actions
          • -------- - --------
          • -------- Begin Playing --------
          • -------- - --------
          • -------- MultiBoard Fixing --------
          • Set NoMoreVoting = True
          • Wait 10.00 seconds
          • Unit Group - Pick every unit in (Units in (Entire map) matching (((Matching unit) is A peon-type unit) Equal to True)) and do (Actions)
            • Loop - Actions
              • Unit - Unpause (Picked unit)
          • Player Group - Pick every player in (All players) and do (Actions)
            • Loop - Actions
              • Camera - Reset camera for (Picked player) to standard game-view over 0.00 seconds
          • Multiboard - Destroy VoteBoard
          • Multiboard - Clear VoteBoard
          • Sound - Play TheHornOfCenarius <gen>
          • Wait 5.00 seconds
          • Sound - Play War3XMainScreen <gen>
        • Else - Actions
 
Last edited:
Level 6
Joined
Jun 19, 2010
Messages
143
Make sure the other player don't get the dialog with 6, 9 options. In multiple players game, the common mistake for the dialog to not work properly is the duplication of the options. It was annoying since it shows the double amount of the dialog buttons after clicked. I solved this problem many years ago.
It's good since it looks like you did manage to get it work finally but your is huge & you can leave the multiboard to another part. There is no need to mess up with dialog. I can give you my one. It's more concise.

  • DialoG
    • Events
      • Time - Elapsed game time is 0.50 seconds
    • Conditions
    • Actions
      • Dialog - Change the title of DialogRED to |c0000ff80What woul...
      • Dialog - Create a dialog button for DialogRED labelled |c00ff0000I'll chos...
      • Set RedChooses = (Last created dialog Button)
      • Dialog - Create a dialog button for DialogRED labelled |c000000ffLet each ...
      • Set Vote = (Last created dialog Button)
      • Dialog - Change the title of Dialog to |c0000ff80Vote for ...
      • Dialog - Create a dialog button for Dialog labelled |c00ff0000Very Hard...
      • Set Hard[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled |c00ff8080Hard|r |c...
      • Set Hard[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled |c00ffff00Normal|r ...
      • Set Hard[3] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog labelled |c0000ff00Easy|r |c...
      • Set Hard[4] = (Last created dialog Button)
      • Dialog - Show DialogRED for Player 1 (Red)
  • DialogRed
    • Events
      • Dialog - A dialog button is clicked for DialogRED
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to RedChooses
        • Then - Actions
          • Dialog - Clear DialogRED
          • Dialog - Change the title of DialogRED to |c00ffff00Vote for ...
          • Dialog - Create a dialog button for DialogRED labelled |c00ff0000Very Hard...
          • Set Redset[1] = (Last created dialog Button)
          • Dialog - Create a dialog button for DialogRED labelled |c00ff8080Hard|r |c...
          • Set Redset[2] = (Last created dialog Button)
          • Dialog - Create a dialog button for DialogRED labelled |c00ffff00Normal|r ...
          • Set Redset[3] = (Last created dialog Button)
          • Dialog - Create a dialog button for DialogRED labelled |c0000ff00Easy|r |c...
          • Set Redset[4] = (Last created dialog Button)
          • Dialog - Show DialogRED for Player 1 (Red)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to Vote
            • Then - Actions
              • Player Group - Pick every player in ThePlayers and do (Actions)
                • Loop - Actions
                  • Dialog - Show Dialog for (Picked player)
              • Trigger - Turn off RedChoice <gen>
            • Else - Actions
      • Wait 0.50 game-time seconds
      • Trigger - Turn off (This trigger)
  • RedChoice
    • Events
      • Dialog - A dialog button is clicked for DialogRED
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Redset[1]
        • Then - Actions
          • Set Gamemode[1] = (Gamemode[1] + 19)
          • Game - Display to (All players) the text: (|cfffff333 + ((Name of Player 1 (Red)) + picked Very Hard mode.|r))
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to Redset[2]
            • Then - Actions
              • Set Gamemode[2] = (Gamemode[2] + 19)
              • Game - Display to (All players) the text: (|cfffff333 + ((Name of Player 1 (Red)) + picked Hard mode.|r))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Clicked dialog button) Equal to Redset[3]
                • Then - Actions
                  • Set Gamemode[3] = (Gamemode[3] + 19)
                  • Game - Display to (All players) the text: (|cfffff333 + ((Name of Player 1 (Red)) + picked Normal mode.|r))
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Clicked dialog button) Equal to Redset[4]
                    • Then - Actions
                      • Set Gamemode[4] = (Gamemode[4] + 19)
                      • Game - Display to (All players) the text: (|cfffff333 + ((Name of Player 1 (Red)) + picked Easy mode.|r))
                    • Else - Actions
      • Player Group - Pick every player in ThePlayers and do (Actions)
        • Loop - Actions
          • Dialog - Hide Dialog for (Picked player)
  • ModeChoice
    • Events
      • Dialog - A dialog button is clicked for Dialog
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Hard[1]
        • Then - Actions
          • Set Gamemode[1] = (Gamemode[1] + 1)
          • Game - Display to (All players) the text: (((Name of (Triggering player)) + votes for VeryHard: ) + (String(Gamemode[1])))
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to Hard[2]
            • Then - Actions
              • Set Gamemode[2] = (Gamemode[2] + 1)
              • Game - Display to (All players) the text: (((Name of (Triggering player)) + votes for Hard: ) + (String(Gamemode[2])))
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Clicked dialog button) Equal to Hard[3]
                • Then - Actions
                  • Set Gamemode[3] = (Gamemode[3] + 1)
                  • Game - Display to (All players) the text: (((Name of (Triggering player)) + votes for Normal: ) + (String(Gamemode[3])))
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Clicked dialog button) Equal to Hard[4]
                    • Then - Actions
                      • Set Gamemode[4] = (Gamemode[4] + 1)
                      • Game - Display to (All players) the text: (((Name of (Triggering player)) + votes for Easy: ) + (String(Gamemode[4])))
                    • Else - Actions
  • Game Mode
    • Events
      • Time - Elapsed game time is 30.00 seconds
    • Conditions
    • Actions
      • Unit - Order Janitor 0016 <gen> to Human Peasant - Activate Repair
      • Quest - Create a Required quest titled ?? Main Mission ?? with the description |c0000f400Keepers t..., using icon path ReplaceableTextures\CommandButtons\BTNSpellShieldAmulet.blp
      • Set Main = (Last created quest)
      • Trigger - Turn off Random Hero Select <gen>
      • Player Group - Pick every player in ThePlayers and do (Actions)
        • Loop - Actions
          • Dialog - Hide Dialog for (Picked player)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Gamemode[1] Greater than Gamemode[2]
          • Gamemode[1] Greater than Gamemode[3]
          • Gamemode[1] Greater than Gamemode[4]
        • Then - Actions
          • Set NRGamemode = 1
          • Game - Display to ThePlayers for 9.00 seconds the text: Game Start with Ver...
          • Quest - Create a Optional quest titled Game Difficult Mode... with the description Very Hard mode!, (c..., using icon path ReplaceableTextures\CommandButtons\BTNDarkSummoning.blp
          • Trigger - Run VeryHard <gen> (checking conditions)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Gamemode[2] Greater than Gamemode[1]
              • Gamemode[2] Greater than Gamemode[3]
              • Gamemode[2] Greater than Gamemode[4]
            • Then - Actions
              • Set NRGamemode = 2
              • Game - Display to ThePlayers for 9.00 seconds the text: Game Start with Har...
              • Quest - Create a Optional quest titled Game Difficult Mode... with the description Hard mode!, (change..., using icon path ReplaceableTextures\CommandButtons\BTNDarkSummoning.blp
              • Trigger - Run Hard <gen> (checking conditions)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Gamemode[3] Greater than Gamemode[1]
                  • Gamemode[3] Greater than Gamemode[2]
                  • Gamemode[3] Greater than Gamemode[4]
                • Then - Actions
                  • Set NRGamemode = 3
                  • Game - Display to ThePlayers for 9.00 seconds the text: Game Start with Nor...
                  • Quest - Create a Optional quest titled Game Difficult Mode... with the description Normal mode!,(chang..., using icon path ReplaceableTextures\CommandButtons\BTNDarkSummoning.blp
                  • Trigger - Run Normal <gen> (checking conditions)
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • Gamemode[4] Greater than Gamemode[1]
                      • Gamemode[4] Greater than Gamemode[2]
                      • Gamemode[4] Greater than Gamemode[3]
                    • Then - Actions
                      • Set NRGamemode = 4
                      • Game - Display to ThePlayers for 9.00 seconds the text: Game Start with Eas...
                      • Quest - Create a Optional quest titled Game Difficult Mode... with the description Easy mode!, (change..., using icon path ReplaceableTextures\CommandButtons\BTNDarkSummoning.blp
                      • Trigger - Run Easy <gen> (checking conditions)
                    • Else - Actions
                      • Set NRGamemode = 3
                      • Game - Display to ThePlayers for 9.00 seconds the text: No max poll for mod...
                      • Quest - Create a Optional quest titled Game Difficult Mode... with the description Normal mode!, (chan..., using icon path ReplaceableTextures\CommandButtons\BTNDarkSummoning.blp
                      • Trigger - Run Normal <gen> (checking conditions)
      • Quest - Display to ThePlayers the Warning message: |c0000ffff? Hint ? ...
      • Quest - Flash the quest dialog button
 
Last edited:
Level 3
Joined
Apr 4, 2012
Messages
64
xD iam still trying to get the couradge to change the multiboarder iam kinda tired of staying for hours doing functions and iam new to world editor 1 week xP i need get some sleep

thx mate ill check it later
 
Status
Not open for further replies.
Top