Cutscenes

Started by Awake, October 01, 2004, 03:05:52 PM

Previous topic - Next topic

Awake

Ok, there was a thread somewhere, and i felt like it was here, but i can't find it. someone was saying how conditions are ineffective for cutscenes. couldn't you put something like this in to make it work:

QuoteIF
Global("Blah","AR1200",1)
THEN
RESPONSE #100
ChangeAIScript("Blah1",0)

and then blah1 would be the cutscene.
And can we finally say that the bhaal spawn idea has had the final nail hammered in its coffin?


Member of the World Transition Project

And the raven, never flitting, still is sitting, still is sitting
On the pallid bust of Pallas just above my chamber door;
And his eyes have all the seeming of a demon's that is dreaming,
And the lamp-light o'er him streaming throws his shadow on the floor;
And my soul from out that shadow that lies floating on the floor
Shall be lifted - nevermore!


Like dealing with terrorists by giving them explosives

SConrad

I don't follow this argument. Is this an extract from the cutscene or another script?
Spellhold Studios

sconrad.NET

Khadion NPC-mod - Team leader, head designer
Hubelpot NPC-mod - Team leader, coder
NPC Damage - Coder
PC Soundsets - Coder, voice actor
Brythe NPC-mod - Designer
DragonLance TC - Glory of Istar - Designer
The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
The Jerry Zinger Show - Producer

Iron Modder 5 - Winner

Baronius

Awake, cutscenes must follow a determined scheme. The thread you searched for is in Tutorials, Essays forum.
Mental harmony dispels the darkness.

Awake

#3
i realize cutscenes must be coded in a certain way, but why wouldn't this work so a cutscene would start under a certain condition

Quote
IF
Global("BLAH","AR1200",1)
THEN
RESPONSE #100
ChangeAIScript("BLAH1",1)
blah1 would be a different script.

i went to that other forum, but couldn't find it the first time. odd... even has the same name....

I've never coded a cutscene before, but i'm going to need to, so i was wondering if this would work. blah1 would be something like this

Quote
IF
True()
THEN
RESPONSE #100
BeginCutSceneMode()
BeginCutSceneID("blah1")

or something like that.

excuse me if i'm sounding stupid, but truly i don't understand cutscenes yet, but i feel like this should work.
And can we finally say that the bhaal spawn idea has had the final nail hammered in its coffin?


Member of the World Transition Project

And the raven, never flitting, still is sitting, still is sitting
On the pallid bust of Pallas just above my chamber door;
And his eyes have all the seeming of a demon's that is dreaming,
And the lamp-light o'er him streaming throws his shadow on the floor;
And my soul from out that shadow that lies floating on the floor
Shall be lifted - nevermore!


Like dealing with terrorists by giving them explosives

Baronius

Let's divide the problem to two parts. Why? Because we're talking about two scripts.

The first script triggers the cutscene (this is a dialog usually, but can be any script), while the second is a separate script file that is the cutscene's script itself, and nothing else is in it.

You need to add this to the first (primary) script in order to run the cutscene script:
ClearAllActions()
StartCutSceneMode()
StartCutScene("BLAH1")


Your BLAH1 is basically good, it has a major mistake though: if you want to start a cutscene, the commands that run the script can't be in the
cutscene's script file itself. (Additionally, you used BeginCutScene... instead of StartCutScene... -- the latter is the correct one)

In semantical respect, I don't see why you want to change an area's script (via ChangeAIScript) to a cutscene script... it will end in an infinite loop of cutscenes.


I see your problem now. The solution/explanation: the cutscene SCRIPT must be a separate file. The WHOLE file is processed when the cutscene is run.  The cutscene must be run by the proper commands in a dialog (or any other script)

So if you want a cutscene to happen in an area, when certain conditions are true, you have to add a block to AREA script with the proper conditions. And THIS block, when true, will run the cutscene's script!
Mental harmony dispels the darkness.

Awake

And can we finally say that the bhaal spawn idea has had the final nail hammered in its coffin?


Member of the World Transition Project

And the raven, never flitting, still is sitting, still is sitting
On the pallid bust of Pallas just above my chamber door;
And his eyes have all the seeming of a demon's that is dreaming,
And the lamp-light o'er him streaming throws his shadow on the floor;
And my soul from out that shadow that lies floating on the floor
Shall be lifted - nevermore!


Like dealing with terrorists by giving them explosives

Vlasák

BTW it is possible to run cutscene where the conditions are counted by StartCutSceneLite(TRUE) what has the same visual effects like normal cutscene but it allows processing of scripts...
Baldur's Gate II add-on CZ - TC from Dalelands
http://addoncz.gamestar.cz

English forums are opened!

Quick Reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name:
Email:
Shortcuts: ALT+S post or ALT+P preview