• 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.

Ending cutscene early

Status
Not open for further replies.
Level 9
Joined
Jul 27, 2006
Messages
652
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...
 
Level 3
Joined
Jul 13, 2007
Messages
34
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:
Level 9
Joined
Jul 27, 2006
Messages
652
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...
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
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
 
Level 9
Joined
Jul 27, 2006
Messages
652
  • Do nothing
The sublime uselessness!
>.< Do Nothing ftl!

But the other bit was helpful...
 
Level 3
Joined
Jul 13, 2007
Messages
34
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.
Top