Alastair Posted October 30, 2005 Share Posted October 30, 2005 I'm currently designing and scripting a mod for Baldur's Gate II, and I'm running into a snag. I'd like to add a cutscene to the game from the middle of a dialogue, and it keeps locking up. This is the code I'm using: // from SoS_Arrick.d IF ~~ THEN BEGIN TrademeetMeeting07 SAY ~Thank you, my <LADYLORD>! Please, follow me.~ /* [S_ARRI08] */ IF ~~ THEN DO ~SetGlobal("SoS_ArrickAgree","GLOBAL",1) StartCutSceneMode() StartCutScene("SOSCUT01")~ EXIT END // SOSCUT01.baf IF True() THEN RESPONSE #100 CutSceneId("S_ARRICK") HideGUI() ActionOverride("S_ARRICK",DisplayStringHead(Myself,"This is the part where I take you to a secret meeting place.")) Wait(3) ActionOverride("S_ARRICK",DisplayStringHead(Myself,"And tell you of my problems.")) Wait(2) ActionOverride("S_ARRICK",DisplayStringHead(Myself,"But I can't because the designer hasn't made the areas yet.")) Wait(4) ActionOverride("S_ARRICK",DisplayStringHead(Myself,"So I guess I'm done for now.")) Wait(2) UnhideGUI() EndCutSceneMode() END The GUI disappears, and the game just sits there. Even if I comment everything out except for EndCutSceneMode(), it just hangs. What am I missing? Thanks in advance for any assistance/mockery. Link to comment
Ghreyfain Posted October 31, 2005 Share Posted October 31, 2005 Verify that the death variable (or Script Name) of the creature is actually S_ARRICK, would be my guess. Link to comment
Alastair Posted October 31, 2005 Author Share Posted October 31, 2005 Verify that the death variable (or Script Name) of the creature is actually S_ARRICK, would be my guess. <{POST_SNAPBACK}> Yep, that fixed it. I didn't know that CutSceneId required the death variable, and I was giving it the creature file name. Thanks! Link to comment
Andyr Posted November 1, 2005 Share Posted November 1, 2005 As an aside, wouldn't just using StartCutSceneMode then using the actions themselves also work (as opposed to a separate .baf)? It's not something I've tried, but I have thought it might be useful for stuff I plan to get round to doing. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.