HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Just got a thought....

07-09-2002, 06:16 PM#1
Unindel
I was thinking about making an RPG later on and I wanted to put a lot of cinematics into it. Problem is, after a while they get annoying, so I was thinking of some way to effectively skip them. Would it work to say something like:

Event:
Player 1 Skips Cinematic

Conditions: Cinematic1 Equal to 1

Actions:
Set Cinematic1Skip(Player Number of (Triggering Player)=1

and do that for each player, then, do a trigger:

Event:
Periodic Trigger Every 1.00 second

Conditions:
Cinematic1 Equal to 1
(Cinematic1Skip(Player Number of (Player 1 - Red)=1) or (Player 1 - Red Slot status not equal to Is playing.)
(Cinematic1Skip(Player Number of (Player 2 - Blue)=1) or (Player 2 - Blue Slot status not equal to Is playing.)

Actions:
then here the actions to skip the cinematic.

note: cinematic1skip is an integer array variable and cinematic1 is an integer which is default to 0, but when the cinematic starts is set to 1 (ala turned on.)

What are your ideas?
07-09-2002, 11:58 PM#2
dataangel
That's a little overly complicated. Just do this asssuming you have 12 players, otherwise change to max number of players:

Event
Player1 decides to skip cinema
Player2 decides to skip cinema
Player3 decides to skip cinema
...
Player12 decides to skip cinema
Conditions
Cinema is playing (use a bool for this)
Actions
Set variable cinematicskip[player number of(triggering player)] = true


Where cinematicskip is an array of bools. Then a seperate trigger:

Event
Periodic Event -- Every 2 seconds
Condition
Cinema is playing
Actions
For each integer A from 1 to 12 if cinematicskip[player number of(triggering player)] = true then set skipcount = skipcount + 1
if skipcount > numplayers/2 then do whatever is needed to skip the cinematic

Where skipcount is an integer initially set to 0, and numplayers is a variable. This trigger will make it so that if half of the players in the game (numplayers/2) decide to skip the cinematic, it'll actually skip it, otherwise it'll just keep going.