Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
I need a system that allows a person to enter "/surrender" to take a vote to end the game. The surrender voting cannot happen until 20 minutes in and the voting must be majority of the players on a team. So if a team has a leaver the vote will be 3 out of 4. If there are 5 then 4 out of 5. Players are 2-6 and 8-12. If the voting is denied i would like it to say denied and the vote cannot be redone for 5 more minutes.
If you have questions about this system i am free to answer.
Would you like the voting to be anonymous? And also, what would the teams be?
As in, is the order Red, blue, teal, etc, but 6v6?
EDIT: Here you are, but this is very sloppily done. I've left it easily cleanable so you can learn some things.
Timesurrender
Events
Time - Elapsed game time is 1200.00 seconds
Conditions
Actions
Trigger - Turn on entered surrender <gen>
entered surrender
Events
Player - Player 7 (Green) types a chat message containing /surrender as A substring
Player - Player 8 (Pink) types a chat message containing /surrender as A substring
Player - Player 9 (Gray) types a chat message containing /surrender as A substring
Player - Player 10 (Light Blue) types a chat message containing /surrender as A substring
Player - Player 11 (Dark Green) types a chat message containing /surrender as A substring
Player - Player 12 (Brown) types a chat message containing /surrender as A substring
Player - Player 1 (Red) types a chat message containing /surrender as A substring
Player - Player 2 (Blue) types a chat message containing /surrender as A substring
Player - Player 3 (Teal) types a chat message containing /surrender as A substring
Player - Player 4 (Purple) types a chat message containing /surrender as A substring
Player - Player 5 (Yellow) types a chat message containing /surrender as A substring
Player - Player 6 (Orange) types a chat message containing /surrender as A substring
Conditions
Actions
Dialog - Create a dialog button for votedialog labelled Yes
Set voteYES = (Last created dialog Button)
Dialog - Create a dialog button for votedialog labelled No
Set voteNO = (Last created dialog Button)
Player Group - Pick every player in surrender_team and do (Actions)
Loop - Actions
Dialog - Show votedialog for (Picked player)
Multiboard - Create a multiboard with 2 columns and 2 rows, titled Votes
Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Yes
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to No
Trigger - Turn on votes surrender <gen>
Trigger - Turn off (This trigger)
votes surrender
Events
Dialog - A dialog button is clicked for votedialog
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to voteYES
Then - Actions
Set votesYES = (votesYES + 1)
Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to (String(votesYES))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to voteNO
Then - Actions
Set votesNO = (votesNO + 1)
Multiboard - Set the text for (Last created multiboard) item in column 2, row 2 to (String(votesNO))
Else - Actions
Trigger - Turn on victorydefeat <gen>
victorydefeat
Events
Time - Elapsed game time is 15.00 seconds
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
votesYES Greater than votesNO
Then - Actions
Player Group - Pick every player in surrender_team and do (Game - Defeat (Picked player) with the message: FUCKIN OWNED! )
Player Group - Pick every player in (All enemies of (Random player from surrender_team)) and do (Game - Victory (Picked player) (Skip dialogs, Show scores))
Else - Actions
Game - Display to (All players) the text: The vote to surrend...
Trigger - Turn on time resurrender <gen>
Trigger - Turn off (This trigger)
Trigger - Turn off entered surrender <gen>
Trigger - Turn off votes surrender <gen>
time resurrender
Events
Time - Every 300.00 seconds of game time
Conditions
Actions
Trigger - Turn on entered surrender <gen>
Trigger - Turn off time resurrender 2 <gen>
Trigger - Turn off time resurrender <gen>
time resurrender 2
Events
Player - Player 7 (Green) types a chat message containing /surrender as A substring
Player - Player 8 (Pink) types a chat message containing /surrender as A substring
Player - Player 9 (Gray) types a chat message containing /surrender as A substring
Player - Player 10 (Light Blue) types a chat message containing /surrender as A substring
Player - Player 11 (Dark Green) types a chat message containing /surrender as A substring
Player - Player 12 (Brown) types a chat message containing /surrender as A substring
Player - Player 1 (Red) types a chat message containing /surrender as A substring
Player - Player 2 (Blue) types a chat message containing /surrender as A substring
Player - Player 3 (Teal) types a chat message containing /surrender as A substring
Player - Player 4 (Purple) types a chat message containing /surrender as A substring
Player - Player 5 (Yellow) types a chat message containing /surrender as A substring
Player - Player 6 (Orange) types a chat message containing /surrender as A substring
Conditions
Actions
Game - Display to (All allies of (Triggering player)) the text: You can't call a su...
Thanks for the Rep though i do not understand why i get rep haha. i would give you more rep but i can't I always appreciate help . Ill take a look at the trigger real quick.. I like it, It appears to be what i need, But i will be sure to post if i find any problems during implementation. Again thank you for helping.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.