![]() |
The Black Wyrm's Lair Terms of Use |
![]() ![]() ![]() ![]() |
![]() |
![]() ![]()
Post
#1
|
|
![]() Supremacy of the Metal Kingdom ![]() Mod Developer Posts: 223 Joined: 1-September 05 From: Bulgaria ![]() |
I'm having problems getting this cutscene to work. It is supposed to make the NPC Azure kill Trajan, but all that happens is that she receives the 25000 XP.
I rewrote the code several times, but all in vain. The first time it inserted the code into azure.bcs, which is her script. Next I tried to put it into the dialogue file, but it didn't work again. I tried different actions, neither of which actually did anything. I even tried to make a cutscene.bcs but all it did was to give the XP, just like all the others. Next I looked into the DLG file of Camitis (one of the guys from the "Find who burried Tirdir" quest) and copied his cutscene, as it gives a working example of what I am trying to achieve. Here's his code as it is in "camitis.dlg": QUOTE StartCutSceneMode() SetInterrupt(FALSE) DialogueInterrupt(FALSE) AttackOneRound("amsi") Kill("amsi") SetGlobal("CamRetiEscape","GLOBAL",1) SetGlobalTimer("CamitisRun","LOCALS",5) EscapeAreaObjectMove("AR0500","TRAN0500",1550,3627,13) SetInterrupt(TRUE) EndCutSceneMode() I pasted this code into my dialogue file and made the cosmetic changes it needed (you can see them in the two examples below. Both of them are used in my *.d file. After compilation, one goes to Trajan.dlg and the other - to Azurej.dlg). But guess what happened when I tested it - only XP again. QUOTE StartCutSceneMode() SetInterrupt(FALSE) DialogueInterrupt(FALSE) ActionOverride("Azure",AttackOneRound("trajan")) ActionOverride("Azure",Kill("trajan")) SetGlobal("TrajanPlot","GLOBAL",8) Wait(2) AddexperienceParty(25000) SetInterrupt(TRUE) EndCutSceneMode() QUOTE StartCutSceneMode() SetInterrupt(FALSE) DialogueInterrupt(FALSE) AttackOneRound("trajan") Kill("trajan") SetGlobal("TrajanPlot","GLOBAL",8) Wait(2) AddexperienceParty(25000) SetInterrupt(TRUE) EndCutSceneMode() -------------------- Blessed be the one who has nothing to say, and yet remains silent.
Too many chieftan, too little indian. http://balduran.blackwyrmlair.net -- Azure NPC Romance -- BG2 Improvements -- IWD Improvements |
|
|
![]() |
![]()
Post
#2
|
|
![]() Supremacy of the Metal Kingdom ![]() Mod Developer Posts: 223 Joined: 1-September 05 From: Bulgaria ![]() |
Well, there are the two Chains (3 actually) that Azure converses in. The first is with Kiral (the elf with the green armour) and the chain in Trajan's dialogue. Here, I'll show you the code:
This is Kiral's chain QUOTE CHAIN kiral 1 ~How are you?~ == azurej IF ~~ THEN ~Kiral! What are you doing here?~ == kiral IF ~~ THEN ~I was looking for you.~ == azurej IF ~~ THEN ~What for? Last time we saw each other, you told me I cannot be allowed inside Suldanessellar. Did you prehaps come to tell me that this has changed?~ == kiral IF ~~ THEN ~My reason for being here hase little to do with Suldanessellar or my people. I wanted to tell you that one of our scouts spotted Trajan's location.~ == azurej IF ~~ THEN ~You know where the traitor is? You must tell me, now!~ END kiral 2 Trajan's chain works in exactly the same fashion, except for the difference that it finishes with EXTERN insted of END. Both chains are OK if the Party AI is Off, but when I accidentally tested them with AI ON the chains exited the dialogue window when Azure was supposed to say her first line of the chain. In the case above she was supposed to say QUOTE ~Kiral! What are you doing here?~ but it doesn't happen. The same was with Trajan's chain. I even noticed another problem: When Sharo sees Azure for the first time, he's supposed to ActionOverride her to talk, but it only happens if the AI is OFF. QUOTE IF Global("AzureInParty","GLOBAL",1) See("Azure") Global("SharoMet","GLOBAL",0) THEN RESPONSE #100 MakeGlobal() SetGlobal("SharoInParty","GLOBAL",1) ActionOverride("Azure",StartDialogNoSet([PC])) END With AI ON she seems to be overrided (the doll trembles weirdly) but the conversation doesn't happen. Kiral is also supposed to start his conversation with Azure, but it happens, yet again, only with AI OFF. QUOTE IF
NumTimesTalkedTo(0) See("Azure") !StateCheck("Azure",STATE_SLEEPING) THEN RESPONSE #100 MakeGlobal() StartDialogNoSet("Azure") END -------------------- Blessed be the one who has nothing to say, and yet remains silent.
Too many chieftan, too little indian. http://balduran.blackwyrmlair.net -- Azure NPC Romance -- BG2 Improvements -- IWD Improvements |
|
|
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 25th August 2025 - 11:08 PM |