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

skipping cinematics

Status
Not open for further replies.
Level 3
Joined
Jul 11, 2005
Messages
50
how do i trigger it so if a player press the esc button during the cinemtaic it stops? thxs in advance.
 
Level 3
Joined
Nov 3, 2005
Messages
26
I'm not really sure, but what I'd do is download one of Darky's campaign maps and then open it up in world editor and look the triggers

Hopefully that helps :)
 
Level 24
Joined
Jun 14, 2005
Messages
2,506
This should work

Events
Player - Player skips a cinematic sequence
Conditions
Actions
Cinematic - Fade out and back in over 2.00 seconds using texture Black Mask and color (100.00%, 100.00%, 100.00%) with 0.00% transparency
Wait 2.00 seconds
Camera - Reset camera for Player to standard game-view over 2.00 seconds
Cinematic - Turn cinematic mode Off for (All players)
Cinematic - Turn off letterbox mode (show interface) for (All players): fade in over 2.00 seconds
Cinematic - Enable user control for (All players)
 
Level 22
Joined
Jan 10, 2005
Messages
3,426
Thats not the right way Bob. Cuz maybe some non cinematic actions are also uses in the cinematic
(like load a hero or other stuff)

I once saw sumthing like this:

Events:
A player skips a cinematic
Contitions:
-----
Actions:
Set CinematicSkipped = true (boolean type variable which u set false in map initialization)

ad in the cinematic use these actions:
If: cinematic skipped is false
Then: ur movie
Else: only the other actions (no cinematic ones)
and fade out and reset etc...
 
Level 13
Joined
May 5, 2004
Messages
1,330
Just open the Orc Demo Campaign (included in TFT, else download the WC3-Demo). In one of the maps (I think the second one, in the cave) Blizzard did describe their functions used for skipping cinematics.

Basically there are three triggers:

1. the skip-trigger
2. the cinematic
3. the stuff being done if cinematic skipped

The 3. is just like the cinematic trigger, but without anything that needs time. Only the important things (units killed, any values changed) are left. The cinematic trigger has a "If [variable] = [value] then Skip Remaining Actions & Run 3. trigger"-action in front of every time-using action.
The skip trigger just checks if the player did press the Esc-key and which cinematic is running (just check the Blizzard-triggers to understand what I mean here).

The basic idea is:
Running the cinematic;
Player presses Esc;
Skip-trigger detects it and sets the [variable] to the needed value;
The cinematics "If [variable] = [value] then Skip Remaining Actions & Run 3. trigger" skips the remaining actions and runs the 3. trigger;

Of course a cinematic can't be skipped anytime, you'll see that every cinematic comes to a point where it can't be skipped anymore, else it would mix up with the 3. trigger.
 
Status
Not open for further replies.
Top