Skip Intro Vote system

  • Thread starter Thread starter Majk
  • Start date Start date
M

Majk

Guest
Hii i wonder how to make a Voting system for skiping a Intro.
it should be like, if 60% of the players vote -skip, then no intro comes.

I did look at that "dargs kick-vote system" but all that seem to advanced for me ^^ so anyone who could help plz`?
 
An array, called Player_Voted[], type integer.
A variable Skip_Intro, integer

Events
Player 1 types '-skip' as an exact match
Player 2 types '-skip' as an exact match
Player 3 types '-skip' as an exact match
etc

Conditions
Player_Voted[Player number of (triggering player)] is equal to 0

Actions
Set Player_Voted[Player number of (triggering player)] =1
Set Skip_Intro = (Skip_Intro+1)

Then have periodic checks during your intro.

If Skip_Intro > (Number of players divded by two) then......
 
not to argue, but wouldnt it be better just to check eah time the function is called with an if/then statement?
 
surely with an easy:
Trigger - turn off (this trigger)
action would suffice for that?
 
Ok i made a trigger with the trigg-code above.
althou, i didnt realy understand how to make that periodic event?
to check every now and then??

my intro triggers looks like this:

Event - map initialization

Condition -

Actions - Wait 10 sec
turn cinematic mode on
camera - apply intro <gen>
etc etc..

shall i insert any triggs in my intro trigger to get the voting system to work?
 
Originally posted by Alexei
surely with an easy:
Trigger - turn off (this trigger)
action would suffice for that?

Nooooo.

Turning a trigger off, is just like not having it initially enabled. Events for it won't fire.

It doesn't stop it mid way though. If he has a two minute trigger intro, and they vote to skip, it will need to cut that trigger short.

So he'll need checks periodically, and can use 'Trigger: Skip remaining actions'. But that only applies for the trigger that the line is found inside.

IF, his intro is multiple triggers, he can add Skip_Intro to the conditions. But He'll need a short block of 'cleanup' code, or the game will be left in 'half-an-intro' state (cameras, letterbox mode, etc.)

[edit]

PS... 10 seconds is a long dang time to wait...
 
heh heeeeeeeeelp :P

as i said in last post, need help what to do now to make the vote system complete..

the 10 sec wait in start for intro, is just so people can have alil time to vote ^^
 
yes, I get it now. ok, another lesson learned ^^

is it btw possible to skip a timer?
I got a countdown timer running so everybody can prepare his troops. However when everybody is done and the timer has time on it they would have to wait.

I thought making a vote system to skip the timer... is there a way to force the timer to stop or go to 0?
 
heh heeeeeeeeelp

as i said in last post, need help what to do now to make the vote system complete..

after 10 sec it goes to cinematic mode.. so no one able to vote at that time.
And how do i check for engoh votes??
i made that trigger code as Ryoko first posted. but dont know how to go from there?
 
speaking from an experienced point of view, if your intro is long enough to warrant a skip vote system, you should not have that intro there in the first place.

Cinematics generally have no right of place in a multiplayer map. Up to 10 seconds is about the best you can get away with (absolute limit).
 
why don't you have a dialogue at the beginning that is what i have. It is easy to make and it is nice because the players don't have to remember to say "-skip" at the beginning. They can just say no.
Code:
Yes or No
Events
    Time - Elapsed game time is 0.10 seconds
Conditions
Actions
    Dialog - Change the title of Yes_or_no to Play cinematic?
    Dialog - Create a dialog button for Yes_or_no labelled Yes
    Set Yes = (Last created dialog Button)
    Dialog - Create a dialog button for Yes_or_no labelled No
    Set No = (Last created dialog Button)
    Player Group - Pick every player in AllPlayers and do (Actions)
        Loop - Actions
            Dialog - Show Yes_or_no for (Picked player)

Button Clicked
Events
    Dialog - A dialog button is clicked for Yes_or_no
Conditions
Actions
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            (Clicked dialog button) Equal to Yes
        Then - Actions
            Set voted = (voted + 1)
            Do nothing
        Else - Actions
            Set Dont_Play = (Dont_Play + 1.00)
            Set voted = (voted + 1)
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            Dont_Play Greater than or equal to ((Real((Number of players in AllPlayers))) / 2.00)
            voted Equal to (Number of players in AllPlayers)
        Then - Actions
            Trigger - Run Initialization <gen> (ignoring conditions)
            Trigger - Run Timer Maker <gen> (ignoring conditions)
            Trigger - Turn on CamLock <gen>
            Quest - Create a Optional quest titled Help with the description 
This is a very simp..., using icon path ReplaceableTextures\WorldEditUI\DoodadPlaceholder.blp
            Quest - Create a Optional quest titled Items with the description 
There are a bunch o..., using icon path ReplaceableTextures\CommandButtons\BTNCrate.blp
            Quest - Create a Optional quest titled Thanks with the description 
I would like to tha..., using icon path ReplaceableTextures\CommandButtons\BTNSpiritLink.blp
        Else - Actions
            Trigger - Run Cinematic <gen> (ignoring conditions)

Player Count
Events
    Map initialization
Conditions
Actions
    For each (Integer A) from 1 to 8, do (Actions)
        Loop - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                If - Conditions
                    ((Player((Integer A))) slot status) Equal to Is playing
                Then - Actions
                    Player Group - Add (Player((Integer A))) to AllPlayers
                Else - Actions
                    Do nothing

That is how I did mine. Make sure you make your "no" variable a real that way it can have decimals and won't be rounded up.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
    +1
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.
  • A Andyoyo:
    Thank you for the hard work over the years. It did not go unnoticed.

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top