I've written about this before, but regrettably the trigger I got didn't work. So here's my next call for help:
What I'd like to learn now is how to create a generic team dialog with two options, yes and no - yes calls a trigger, no does not. For example, the asshole trigger I'm working on:
AssholeBlue
Events
Player - Player 1 (Red) types a chat message containing -asshole blue as An exact match
Conditions
Actions
Cinematic - Disable user control for Player Group - Player 2 (Blue)
Cinematic - Turn on letterbox mode (hide interface) for Player Group - Player 2 (Blue): fade out over 0.00 seconds
Game - Display to (All players) the text: Player Two (Blue) i...
Trigger - Run Player 2 <gen> (ignoring conditions)
Instead of me typing it, I want anyone to be able to type (in this case "-asshole blue") which calls a dialog box that says "Is Blue an Asshole?" if more than half of the players on the map say "Yes" then AssholeBlue is run. If less than half say "yes" than nothing happens and the game goes on.
All I really am asking is what goes into a dialog box like that?
Generic Team Voting
Moderator: Cheaters
Re: Generic Team Voting
Stop posting useless posts like ""Oh fine!"" That's SPAM !
[Warned] !
+ i don't like ur sig :/
[Warned] !
+ i don't like ur sig :/
-
- Old Wrinkly Member
- Posts: 271
- Joined: January 12th, 2008, 4:42 am
- Title: Re-R-Re-Re-Remix
- Location: Canada EH?
Re: Generic Team Voting
Get Yes to add one to a variable called "Yes_Vote" or what ever, no fot " No_Vote, the higher one is the one that decides.
Contact me on WC3 Killing_Spree22, I'm at US west!
To avoid being a noob read this: http://forum.wc3edit.net/everything-els ... t4579.html
This is the official site for team UKS, it's also my home page - http://www.TeamUks.tk
I AM DEAD, I WILL NO LONGER BE POSING HERE. BEEN FUN WITH YOU ALL.
To avoid being a noob read this: http://forum.wc3edit.net/everything-els ... t4579.html
This is the official site for team UKS, it's also my home page - http://www.TeamUks.tk
I AM DEAD, I WILL NO LONGER BE POSING HERE. BEEN FUN WITH YOU ALL.
-
- Honorary wc3edit.net Traitor
- Posts: 468
- Joined: December 10th, 2007, 10:50 pm
- Title: The Professional
- Location: USA
Re: Generic Team Voting
I just read three lame ass comments by you in three different threads... Stop being gay and spamming the forums with pathetic comments to increase you post count. Regardless of how cool you think you are, your not. Spamming is for fags and helps no one out. King warned you, already, you should be warned for each of your lame posts, so here is my little formula.kendric04 wrote:oh.. fine!
You post 1 more gay spam post
You = Banned
Don't bother responding to this post, I have no need for input from an immature child.
Do you support Durchdringen? If so, add the spoiler to your sig. Durch cares for you, so show your support for Durch!
Spoiler:
Re: Generic Team Voting
We should give u a 1 Month ban.. Should be enough for u to learn about ur Mistakes!Durchdringen wrote:I just read three lame ass comments by you in three different threads... Stop being gay and spamming the forums with pathetic comments to increase you post count. Regardless of how cool you think you are, your not. Spamming is for fags and helps no one out. King warned you, already, you should be warned for each of your lame posts, so here is my little formula.kendric04 wrote:oh.. fine!
You post 1 more gay spam post
You = Banned
Don't bother responding to this post, I have no need for input from an immature child.
LIke Durchdringen said: Make 1 more useless Post I'll ban ur ass .
-
- Member
- Posts: 50
- Joined: December 29th, 2007, 7:34 am
Re: Generic Team Voting
OK, um, never done anything like that before.tru_power22 wrote:Get Yes to add one to a variable called "Yes_Vote" or what ever, no fot " No_Vote, the higher one is the one that decides.
Can I just use the thing that came with my last similar topic?
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: Generic Team Voting
What you want is a dialog.
What you want to do is create a dialog.
Add 2 buttons to it, yes and no.
Add triggers that respond to the yes and no buttons.
For each yes press, increase an integer variable.
Do the same for no.
After a cetain period of time or condition, if yes>no or yes>the number of the majority of players then ...do w/e
What you want to do is create a dialog.
Add 2 buttons to it, yes and no.
Add triggers that respond to the yes and no buttons.
For each yes press, increase an integer variable.
Do the same for no.
After a cetain period of time or condition, if yes>no or yes>the number of the majority of players then ...do w/e
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Generic Team Voting
AssholeBlue
Events
Player - Player 1 (Red) types a chat message containing -blue as An exact match
Conditions
Actions
-pause all units
-Dialog - create dialog window with name Vote Kick Blue
-Dialog - Create Dialog button Yes
-Dialog - Set (last created button) = dialogbutton[1]
-Dialog - Create Dialog button No
-Dialog - Set (last created button) = dialogbutton[2]
-For each interger 1-12, do action
--show last created dialog window for player
----Create dialog timer vote--------
-Create countdown timer with name Time To Vote
-Start Countdown timer in one shot for 10 seconds
-Show countdown timer
-wait 10 seconds
-destroy (last created window)
-for each interger 1-12, do action
--hide dialog window for player
----------This is where we tally Votes 4 kick----------
-If/action/else
-Condition
--dialogbutton[1] greater than dialogbutton[2]
-Action
--Deafeat- Blue
--Game - Blue has been voted out...loser lol
-Else
--do nothing
-If/action/else
-Condition
--dialogbutton[2] greater than dialogbutton[1]
-Action
--Game - Blue has not been voted out...
-Else
--do nothing
-If/action/else
-Condition
--dialogbutton[1] equal to dialogbutton[2]
-Action
--Game - The votes have tied
-(choose what u want to do here as a result of a tie)
-Else
--do nothing
-set DialogButton[1] = 0
-Set DialogButton[2] = 0
-unpause all units
DialogButtonPressed
Event
-Dialog - a button is pressed
Condition
Action
-If/Else/Action
-Condition
--Button pressed = dialogbutton[1]
-Action
--set Dialogbutton[1] = dialogbutton[1]+1
-Else
--do nothing
-If/Else/Action
-Condition
--Button pressed = dialogbutton[2]
-Action
--set Dialogbutton[2] = dialogbutton[2]+1
-Else
--do nothing
The dialogbutton[1] is a interger variable w/ array. I hope this helps mate... Its the best i can do as i am not on wc editor rather not at my home computer atm... just recopy this trigger for each player. Theres a shorter way...but i cant do it without wc3 open..
Events
Player - Player 1 (Red) types a chat message containing -blue as An exact match
Conditions
Actions
-pause all units
-Dialog - create dialog window with name Vote Kick Blue
-Dialog - Create Dialog button Yes
-Dialog - Set (last created button) = dialogbutton[1]
-Dialog - Create Dialog button No
-Dialog - Set (last created button) = dialogbutton[2]
-For each interger 1-12, do action
--show last created dialog window for player
----Create dialog timer vote--------
-Create countdown timer with name Time To Vote
-Start Countdown timer in one shot for 10 seconds
-Show countdown timer
-wait 10 seconds
-destroy (last created window)
-for each interger 1-12, do action
--hide dialog window for player
----------This is where we tally Votes 4 kick----------
-If/action/else
-Condition
--dialogbutton[1] greater than dialogbutton[2]
-Action
--Deafeat- Blue
--Game - Blue has been voted out...loser lol
-Else
--do nothing
-If/action/else
-Condition
--dialogbutton[2] greater than dialogbutton[1]
-Action
--Game - Blue has not been voted out...
-Else
--do nothing
-If/action/else
-Condition
--dialogbutton[1] equal to dialogbutton[2]
-Action
--Game - The votes have tied
-(choose what u want to do here as a result of a tie)
-Else
--do nothing
-set DialogButton[1] = 0
-Set DialogButton[2] = 0
-unpause all units
DialogButtonPressed
Event
-Dialog - a button is pressed
Condition
Action
-If/Else/Action
-Condition
--Button pressed = dialogbutton[1]
-Action
--set Dialogbutton[1] = dialogbutton[1]+1
-Else
--do nothing
-If/Else/Action
-Condition
--Button pressed = dialogbutton[2]
-Action
--set Dialogbutton[2] = dialogbutton[2]+1
-Else
--do nothing
The dialogbutton[1] is a interger variable w/ array. I hope this helps mate... Its the best i can do as i am not on wc editor rather not at my home computer atm... just recopy this trigger for each player. Theres a shorter way...but i cant do it without wc3 open..
-
- Member
- Posts: 50
- Joined: December 29th, 2007, 7:34 am
Re: Generic Team Voting
KickBlue
Events
Player - Player 1 (Red) types a chat message containing -asshole blue as An exact match
Player - Player 2 (Blue) types a chat message containing -asshole blue as An exact match
Player - Player 3 (Teal) types a chat message containing -asshole blue as An exact match
Player - Player 4 (Purple) types a chat message containing -asshole blue as An exact match
Player - Player 5 (Yellow) types a chat message containing -asshole blue as An exact match
Conditions
Actions
Dialog - Create a dialog button for Blue_Asshole labelled Yes
Dialog - Create a dialog button for Blue_Asshole labelled No
Dialog - Show Blue_Asshole for Player 1 (Red)
Dialog - Show Blue_Asshole for Player 2 (Blue)
Dialog - Show Blue_Asshole for Player 3 (Teal)
Dialog - Show Blue_Asshole for Player 4 (Purple)
Dialog - Show Blue_Asshole for Player 5 (Yellow)
Countdown Timer - Create a timer window for Blue_Asshole_Timer with title Vote Expires in:
Countdown Timer - Start Blue_Asshole_Timer as a One-shot timer that will expire in 10.00 seconds
Countdown Timer - Show (Last created timer window) for Player 1 (Red)
Countdown Timer - Show (Last created timer window) for Player 2 (Blue)
Countdown Timer - Show (Last created timer window) for Player 3 (Teal)
Countdown Timer - Show (Last created timer window) for Player 4 (Purple)
Countdown Timer - Show (Last created timer window) for Player 5 (Yellow)
Wait 10.00 seconds
Countdown Timer - Destroy (Last created timer window)
Dialog - Hide Blue_Asshole for Player 1 (Red)
Dialog - Hide Blue_Asshole for Player 2 (Blue)
Dialog - Hide Blue_Asshole for Player 3 (Teal)
Dialog - Hide Blue_Asshole for Player 4 (Purple)
Dialog - Hide Blue_Asshole for Player 5 (Yellow)
This is as far as I got. Now I'm completely lost.
Events
Player - Player 1 (Red) types a chat message containing -asshole blue as An exact match
Player - Player 2 (Blue) types a chat message containing -asshole blue as An exact match
Player - Player 3 (Teal) types a chat message containing -asshole blue as An exact match
Player - Player 4 (Purple) types a chat message containing -asshole blue as An exact match
Player - Player 5 (Yellow) types a chat message containing -asshole blue as An exact match
Conditions
Actions
Dialog - Create a dialog button for Blue_Asshole labelled Yes
Dialog - Create a dialog button for Blue_Asshole labelled No
Dialog - Show Blue_Asshole for Player 1 (Red)
Dialog - Show Blue_Asshole for Player 2 (Blue)
Dialog - Show Blue_Asshole for Player 3 (Teal)
Dialog - Show Blue_Asshole for Player 4 (Purple)
Dialog - Show Blue_Asshole for Player 5 (Yellow)
Countdown Timer - Create a timer window for Blue_Asshole_Timer with title Vote Expires in:
Countdown Timer - Start Blue_Asshole_Timer as a One-shot timer that will expire in 10.00 seconds
Countdown Timer - Show (Last created timer window) for Player 1 (Red)
Countdown Timer - Show (Last created timer window) for Player 2 (Blue)
Countdown Timer - Show (Last created timer window) for Player 3 (Teal)
Countdown Timer - Show (Last created timer window) for Player 4 (Purple)
Countdown Timer - Show (Last created timer window) for Player 5 (Yellow)
Wait 10.00 seconds
Countdown Timer - Destroy (Last created timer window)
Dialog - Hide Blue_Asshole for Player 1 (Red)
Dialog - Hide Blue_Asshole for Player 2 (Blue)
Dialog - Hide Blue_Asshole for Player 3 (Teal)
Dialog - Hide Blue_Asshole for Player 4 (Purple)
Dialog - Hide Blue_Asshole for Player 5 (Yellow)
This is as far as I got. Now I'm completely lost.