The Black Wyrm Lair Forums
The Black Wyrm's Lair Terms of Use Help Search Members Calendar

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Cutscenes
Awake
post Oct 1 2004, 03:05 PM
Post #1


The Raven
Group Icon

Mod Developer
Posts: 590
Joined: 4-September 04
From: California, USA




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:

QUOTE
IF
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
Go to the top of the page
 
Quote Post
SConrad
post Oct 1 2004, 04:25 PM
Post #2





Forum Member
Posts: 22
Joined: 29-July 04
From: Adelaide, Australia




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
Go to the top of the page
 
Quote Post
Baronius
post Oct 1 2004, 07:44 PM
Post #3


Master of energies
Group Icon

Council Member
Posts: 3324
Joined: 9-July 04
From: Magyarország




Awake, cutscenes must follow a determined scheme. The thread you searched for is in Tutorials, Essays forum.


--------------------
Mental harmony dispels the darkness.
Go to the top of the page
 
Quote Post
Awake
post Oct 1 2004, 10:06 PM
Post #4


The Raven
Group Icon

Mod Developer
Posts: 590
Joined: 4-September 04
From: California, USA




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.

This post has been edited by Awake: Oct 1 2004, 10:07 PM


--------------------
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
Go to the top of the page
 
Quote Post
Baronius
post Oct 1 2004, 10:22 PM
Post #5


Master of energies
Group Icon

Council Member
Posts: 3324
Joined: 9-July 04
From: Magyarország




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:
CODE
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.
Go to the top of the page
 
Quote Post
Awake
post Oct 1 2004, 10:35 PM
Post #6


The Raven
Group Icon

Mod Developer
Posts: 590
Joined: 4-September 04
From: California, USA




ahh. alright, thanks baronius.


--------------------
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
Go to the top of the page
 
Quote Post
Vlasák
post Oct 3 2004, 11:19 AM
Post #7


Mathematical poet


Retired team member
Posts: 159
Joined: 9-July 04
From: Prague, Czech Republic




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!
Go to the top of the page
 
Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:



- Lo-Fi Version Time is now: 5th June 2025 - 12:08 PM