HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Cutscene Skipping.

07-02-2010, 11:32 PM#1
Neversleeping
What is the best way to make a skippable cut-scene? As far as I can see there are no function that can be used in an 'pressed ESC'-event to stop ANOTHER trigger (intro trigger) from finishing. The only solution i see is to put in tests everywhere in the intro trigger to check if the ESC button has in fact been pressed, and then decide to do nothing or skip remaining actions.

Thoughts?



Also, on a different matter, I need to enable/disable UI control for spectators in partiucular. How do I do this? There is something called Neutral Extra, is this the spectators?
07-02-2010, 11:48 PM#2
Captain Griffen
Theoretically, I do believe that removing the action from a trigger stops any current executions going on. Can't remember exactly though, never used it and sounds like it might be liable to bugs.
07-02-2010, 11:58 PM#3
Neversleeping
Can you elaborate on 'removing action from a Trigger?'

The only functions I have in my arsenal now is;
-Skip Remaining Actions (only in current trigger. I need another trigger to detect ESC key)
-Turn off [trigger] (will not interupt a running trigger, but will prevent future executions).

Am I overlooking something?
07-03-2010, 01:34 AM#4
Neversleeping
I went for the solution to put in numerous tests in the intro trigger to check if esc have been pressed. It works pretty well, so I'm satified! :)
07-03-2010, 04:55 AM#5
Captain Griffen
Quote:
Originally Posted by Neversleeping
Can you elaborate on 'removing action from a Trigger?'

The only functions I have in my arsenal now is;
-Skip Remaining Actions (only in current trigger. I need another trigger to detect ESC key)
-Turn off [trigger] (will not interupt a running trigger, but will prevent future executions).

Am I overlooking something?

JASS.
07-03-2010, 09:19 AM#6
Neversleeping
Touché
07-03-2010, 09:24 AM#7
Rao Dao Zao
The way Blizzard do it in the campaigns is absolutely horrific but it works.

You need an If (skipped == true) then (Skip Remaining Actions) else (Do Nothing), and you need to paste it after every single action.

Then you have a companion 'press escape set skipped' trigger. You should also separate out all the break-down stuff into a trigger that can be run on skipping or if the cinematic completes naturally.

Count yourself lucky you're not doing this for hundreds of cinematics, it gets a bit dull after a while.
07-03-2010, 02:42 PM#8
Bribe
Not after every single action, just do it for about every 1.5 seconds of "wait" or "TimerStart" period.
07-04-2010, 08:48 AM#9
Neversleeping
Rao, this is actually how I solved it. Seemed like quite the make-shift provisional solution. I'm surprised Blizzard themselves did it this awkwardly.
07-04-2010, 04:14 PM#10
Anitarf
You could also use the Cinematic System. It's in JASS, but if you're willing to learn you can do all sorts of cool things with it that regular GUI triggers can't do.

By the way, in case this is meant for a multiplayer map, you are likely better off not bothering with cinematics in the first place.