• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Ending cutscene early

Status
Not open for further replies.
Its quite simple...
You need two triggers, one of which you already have and then you need to know where all units/doodads are going to be at the end of the cinnematic.
In your second trigger, add the event - Player skips cinematic.
For actions simply set a global boolean (SkippedCinematic) to true and move all objects to where they should be at the end of the cinematic.
Then add ifs frequently in your cinematic trigger saying that if SkippedCinematic is = true then skip remaining actions...
-Hope this helps...
 
Its quite simple...
You need two triggers, one of which you already have and then you need to know where all units/doodads are going to be at the end of the cinnematic.
In your second trigger, add the event - Player skips cinematic.
For actions simply set a global boolean (SkippedCinematic) to true and move all objects to where they should be at the end of the cinematic.
Then add ifs frequently in your cinematic trigger saying that if SkippedCinematic is = true then skip remaining actions...
-Hope this helps...

It helps, but how do I poll if all players skipped?
[Edit] I got it working, thanks! [/Edit]
 
Last edited:
Any time Sniper!
For voting create a integer variable and and every time a player presses ESC increase the integer.
Then add an if checking if its high enough, if so proceed as stated before...
 
Yep, and I'll give you an example of that:

  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
      • Player - Player 2 (Red) skips a cinematic sequence
      • Player - Player 3 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Set Integer_Variable = (Integer_Variable + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Integer_Variable Equal to (Number of players in (All players matching (((Matching player) controller) Equal to User)))
        • Then - Actions
          • -------- Do your actions --------
        • Else - Actions
          • Do nothing
 
  • Do nothing
The sublime uselessness!
>.< Do Nothing ftl!

But the other bit was helpful...
 
Eh, I did it different from you guys... I did a trigger where it says
  • Player - Player 1 (Red) skips a cinematic sequence
  • Trigger - Turn off (This trigger)
  • Set IntroSkipped_P1 = True
  • Trigger - Run Intro Skipped <gen> (checking conditions)
That one I did for players 1-8 Then the next I did globally.
  • Intro Skipped
  • Or - Any (Conditions) are true
    • Conditions
      • IntroSkipped_P1 Equal to True
      • (Player 1 (Red) slot status) Not equal to Is playing
      • (Player 1 (Red) controller) Equal to Computer
  • Or - Any (Conditions) are true
    • Conditions
      • IntroSkipped_P2 Equal to True
      • (Player 2 (Blue) slot status) Not equal to Is playing
      • (Player 2 (Blue) controller) Equal to Computer
  • Actions
    • Trigger - Turn off (This trigger)
    • Set IntroSkipped = True
    • Cinematic - Turn cinematic mode Off for (All players)
    • Trigger - Run Start 2 <gen> (checking conditions)
    • Set endscene = True
Except I coded all 8 players there.
 
Status
Not open for further replies.
Back
Top