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()