Dialog polling

zll7

New Member
Reaction score
17
Simple quick question. Where can i find a good Turorial or map with basic dialog polling?









-feelin like a noob...
 
Yeah multiple players vote and it gets added up and the one with the most is selected.

Im doing this for a game type...
 
Well its really not that hard.

Just make a integer for each difficulty or w.e your doing.

Im guessing you know how to make a dialog...
So ill just go on from that.

Ill use the example for difficulty voting from my td i am working on.
If there is a tie the easier difficulty will always win.

Code:
Dialog
    Events
        Time - Elapsed game time is 1.00 seconds
    Conditions
    Actions
        Dialog - Create a dialog button for Difficulty labelled Easy
        Set Easy_Dialog = (Last created dialog Button)
        Dialog - Create a dialog button for Difficulty labelled Medium
        Set Medium_Dialog = (Last created dialog Button)
        Dialog - Create a dialog button for Difficulty labelled Hard
        Set Hard_Dialog = (Last created dialog Button)
        Player Group - Pick every player in (All players) and do (Dialog - Show Difficulty for (Picked player))
        Dialog - Change the title of Difficulty to Difficulty


Code:
Easy
    Events
        Dialog - A dialog button is clicked for Difficulty
    Conditions
        (Clicked dialog button) Equal to Easy_Dialog
    Actions
        Set Easy = (Easy + 1)
        Game - Display to (All players) for 6.00 seconds the text: (|cffFF8000 + ((Name of (Triggering player)) +  has selected easy.|r))

Code:
Medium
    Events
        Dialog - A dialog button is clicked for Difficulty
    Conditions
        (Clicked dialog button) Equal to Medium_Dialog
    Actions
        Set Medium = (Medium + 1)
        Game - Display to (All players) for 6.00 seconds the text: (|cffFF8000 + ((Name of (Triggering player)) +  has selected medium.|r))


Code:
Hard
    Events
        Dialog - A dialog button is clicked for Difficulty
    Conditions
        (Clicked dialog button) Equal to Hard_Dialog
    Actions
        Set Hard = (Hard + 1)
        Game - Display to (All players) for 6.00 seconds the text: (|cffFF8000 + ((Name of (Triggering player)) +  has selected hard.|r))


Code:
Tally
    Events
        Time - Elapsed game time is 20.00 seconds
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Easy Greater than or equal to Hard
                Easy Greater than or equal to Medium
            Then - Actions
                Game - Display to (All players) for 10.00 seconds the text: |cffFF8000Difficult...
                Player Group - Pick every player in (All enemies of Player 1 (Red)) and do (Player - Set (Picked player) handicap to 75.00%)
                Skip remaining actions
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Medium Greater than or equal to Hard
                Medium Greater than Easy
            Then - Actions
                Game - Display to (All players) for 10.00 seconds the text: |cffFF8000Difficult...
                Skip remaining actions
            Else - Actions
                Do nothing
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Hard Greater than Easy
                Hard Greater than Medium
            Then - Actions
                Game - Display to (All players) for 10.00 seconds the text: |cffFF8000Difficult...
                Player Group - Pick every player in (All enemies of Player 1 (Red)) and do (Player - Set (Picked player) handicap to 150.00%)
                Skip remaining actions
            Else - Actions
                Do nothing
 
Alright thanks i got it now. I see what i was doin wrong :banghead: Thanks.
 
Alright somthings still up... What kind of variables are you usin for the Easy medium and hard? Only thing I can think of that I might have diffrent...
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Wow - the change in the stats are major. I kind of knew it was all bots but wow, to see the effect. Why the social media sites cant do something like this I have no idea.
  • 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 Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top