![]() |
The Black Wyrm's Lair Terms of Use |
![]() ![]() ![]() ![]() |
![]() |
![]()
Post
#1
|
|
![]() The Raven ![]() 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 |
|
|
![]() |
![]()
Post
#2
|
|
![]() Master of energies ![]() 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.
|
|
|
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 7th June 2025 - 09:37 AM |