Cinematics skipable?

vexoh

Member
Reaction score
0
I made a Cinematic on my Map, and i wanted a sort of Vote system to skip the cinematic, Like... if 4/6 (6 is max players in my map) players typed -skip The cinematic would skip, Or mabey a box that pops up with skip and watch buttons in them..
How can i do this? Or even just the Host typing -skip how would i set this trigger?

(Also when the cinematic starts and the Writing from Units appear, The Text is skippable, i dont want players to skip the written thing from the unit in the cinematic, how can i prevent them from clicking esc and skipping them?)
 

MP®

Member
Reaction score
11
I don't know much about cinematics, but the normal button to skip a cinematic is the escape button, you can also track when a player pushes this button. I think (not sure) that normally all players have to push that button before a cinematic skips.

In that case, you should make a trigger with the events: Player 1 skips a cinematic, Player 2 skips (...) for each player an event.
Then make an integer variable with array of 6 (if player 1 t/m 6 are in game) with initial value of 0. Make an action like:

If: Integervariable[Number of (triggering player)] equals to 0, then:
Set Integervariable[Number of (triggering player)] = 1

Then another action like:
If: (Integervariable[1] + Integervariable[2] + (... until [6]) ) is greater than or equal to ((Number of players in (All players controlled by a User player)) * 0.66)
then: skip cinematic
 

Inflicted

Currently inactive
Reaction score
63
You are looking for this trigger:
Player - Player 1 (Red) types a chat message containing -skip as An exact match

For boxes, you need to look at Dialog Boxes and Dialog Buttons.

For turning off the other trigger simply have a trigger like the example below:

Events
Player - Player 1 (Red) types a chat message containing -skip as An exact match
Conditions
Actions
Turn off Cinematics Trigger

About your final question, I'm not entirely sure. Look for disabling control in Cinematics or something similar to that.
 

MP®

Member
Reaction score
11
Oh lol I didn't read the last part of the first post :p sorry 'bout that
 

Molehole

New Member
Reaction score
2
I have a solution I use in my map for skipping cutscenes. It's bit similar as MP's

Firstly create a variable "Vote_skip" or what do you want to name it. Set it as an integer.

Do triggers for each players like this (I don't remember exactly how the triggers go but surely you get an idea)

events
"player 1 types -skip as an exact match"
actions
"turn off (this trigger)
"set voteskip = voteskip + 1"

then when your having the cutscene

Event
The event you want
- blah blah blah, what you want the cutscene to be -
"Run next trigger"

You want to create another integrer "Player_amount" and set it to "amount of players matching condition (find condition that chooses all playing players.) and add condition
"integrer: Vote_skip is greater than 0,65*Player_amount"
next trigger

Then for the other trigger
"vote_skip is lesser than 0,65*Player_amount"
Event:
Play cinematic
next trigger
 

Inflicted

Currently inactive
Reaction score
63
events
"player 1 types -skip as an exact match"
actions
"turn off (this trigger)
"set voteskip = voteskip + 1"

Don't turn it off until the time runs out. That way you can add all the events of each player to one trigger.

But yes that's the general idea.
 

vexoh

Member
Reaction score
0
But the Trigger has other things aswell as the cinematics, The Opening cinematic Shows a battle so theirs many Units and i put actions to remove them in the same trigger at the right time..so i cant really set the action to disable trigger otherwise the units will still be their :(
 

Molehole

New Member
Reaction score
2
Then you must duplicate the necessary events to additional trigger and if the cutscene is skipped play that trigger instead of the cinematic trigger.
 

xtian07

Member
Reaction score
2
But the Trigger has other things aswell as the cinematics, The Opening cinematic Shows a battle so theirs many Units and i put actions to remove them in the same trigger at the right time..so i cant really set the action to disable trigger otherwise the units will still be their :(

Well, you can always use this two triggers to avoid that problem :)
Trigger:
  • Actions
    • Trigger - Turn on Untitled Trigger 001 <gen>
    • Trigger - Turn off Untitled Trigger 001 <gen>
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top