Vote System

  • Thread starter Thread starter Cmeyer24
  • Start date Start date
C

Cmeyer24

Guest
How do I make a vote at the beggining of a game to decide what kind of game mode it will be, for example One hit kill, 3 Lives, or just anything i can think of.


Then also tell me how to make the triggers to the game mode. thanks :D
 
Thats a bit outa my league

Thats a bit outa my league, but look at burbenog td they have something like that(i don't know if it's proceted or not)

~:D
 
You need to use a dialog box. See the tutorial on this for more info.
 
Maybe - say for lives its 2 dialog buttons, 10 lifes - 20 lifes - the variable for the buttons set (varible for 10 lifes) = 0 set (variable for 20 lifes) = 0 ,Create a variable for the lifes to set when its done, let them vote (show dialog buttons) then when each button is clicked, do
Event:
time is 60 seconds
Conditions:
(Variable Button for 10 lifes) = > than (Variable Button for 20 lifes)
Action:
Set (Variable for overall lifes) = 10
OR
Event:
time is 60 seconds
Conditions:
(Variable Button for 20 lifes) = > than (Variable Button for 10 lifes)
Action:
Set (Variable for overall lifes) = 20

Hope this works,just idea from top of head ;) ,

-Rabies
 
Ok I know how to make a dialog box but how do I make a vote system? I have all of the choices and buttons on the box but how can I make it to where the people click on the game mode and whichever one is picked the most is the one thats played? :banghead:
 
im working on a dialog box voting tut, if u can wait awhil, should be done in a few hours
 
im working on a dialog box voting tut, if u can wait awhil, should be done in a few hours



Uhhh, are you going to tell me? Its been over an hour :P

Please tell me, I would really appreciate it
 
Basically, have a variable for each choice. Each time a choice is selected, add one to the variable. Then, at the end, check to see which variable is the highest.
 
What don't you understand? If it is variables, then read the tutorial on them. If not, then say what and I'll clarify. :)
 
I think its just that he has no idea on how to add number to variables and stuff.. basicly he has no idea.. (no offense.)

Had that problem too b4..
 
What I dont understand is, how can you add 1 to something that doesnt have an intiger value? The variable you use for a dialog is Dialog Button variable type. And I know you know that is what you use to make buttons on a dialog box. :banghead:
 
NO!! u got it all wrong... thats a seperate thing


You have to make 2 complete new variables.. and make it like

event-X dialog is pressed

Action- Add +1 to (integer variabel) ------------------ and many other stuff.. :P
 
ok help has arrived!

ok so you make box like this

Code:
event time is 1 sec
condition
action 
         create a dialogue button for (voting box) called 10 lives
         set (dialogue_var_10) to last created dialogue button
         create a dialogue button for (voting box) called 20 lives
         set (dialogue_var_20) to last create dialogue button

then you do

Code:
event dialogue button is clicked
condition 
action
        if then else
           if (dialogue_var_10) is dialogue button clicked 
               then set (lives10) to (lives10) + 1
        if then else
           if (dialogue_var_20) is dialogue button clicked 
               then set (lives20) to (lives 20) + 1

simple

now set a booleen to make it true when all players have voted
and do what rabies said except set the event to (players_done_bool) becomes true

if that is a working event... well you might have to play with that part but the voting will be something like what rabies said... where if (lives10) is greater then (lives 20) then do set (FINAL_LIVES) t0 10

hope that helps

-Dan
 
Dan, what would the event be to make a comparison to make sure all of the people have voted?
 
it would be

for condition- Dialogue is equal to 10

becuz when u hit a dialog box is disappears after... :D..(i think so, never worked with dialog boxes..never needed :D)
 
One Last Question

Ok guys, I have one last question, how can I set the event to make sure that all players have clicked a button on the dialog box, this will make the trigger that counts the votes run, and I know how to do that, so all I need to know now is hot to make sure all players have clicked a button. :D
 
Event-Dialog is clicked
condition-none
Action-Set Dialog_Count to Dialog_Count -1

(i think thats it.)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Probably inflates their numbers so they look better to advertisers.
  • The Helper The Helper:
    Yeah google does not filter those bots. I remember when Apex was doing Google ads I saw the same IPs in there as I was seeing here - google is totally tracking all those bots as traffic and most google traffic, at least ours, was all bots
  • The Helper The Helper:
    oh wow, i bet i can post x links now and do the webp pics now giggity
  • The Helper The Helper:
    ahh anubis blocks anyone that has javascript turned off
  • The Helper The Helper:
    Robot: HTTP client library - i love the new robot :)
  • The Helper The Helper:
    New Science News Forum and it starts out with 420 threads :)
  • The Helper The Helper:
    Technical Support forum name changed To Technology News, there is now a Tech, sci/tech and science forums now :)
  • The Helper The Helper:
    Happy Saturday! Hope everyone has a fantastic weekend!
  • Ghan Ghan:
    We are now on Ubuntu 24.04. Had some issues with the style after the OS/PHP upgrade but now resolved.
    +1
  • Ghan Ghan:
    PHP 8.3 now live
    +1
  • The Helper The Helper:
    Weekend went by too fast. Next weekend I am going to try to do a nature thing - buddy of mine lives by the Colorado river and has some kayaks and invited me to do some kayaking from a place he knows to get on the river.
  • Ghan Ghan:
    That sounds like an adventure.
  • The Helper The Helper:
    400 users all online all looking at latest content
  • The Helper The Helper:
    I wonder how all these bots that sit on the lastest content page get passed anubis or maybe they did not but they are just registering on whos online
  • The Helper The Helper:
    showing up on whos online not registration
  • Ghan Ghan:
    The first gate is stopping all the bots that don't execute javascript.
  • Ghan Ghan:
    That's the main thing with Anubis - no Javascript, no site. Typically you can still get the site to load without Javascript.
  • The Helper The Helper:
    I remember the whole javascript thing, question - how many real people disable that?
  • The Helper The Helper:
    Hell I guess I could go back on the stats to know that - we probably capture that and we know the before and after
  • Ghan Ghan:
    Real users can't really disable Javascript anymore these days.
  • Ghan Ghan:
    The internet is broken without it.
  • Ghan Ghan:
    Bot readable, not human usable.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top