script for the dialogue after the NPC’s death
Stepan
1 hour ago
Please help implement the dialogue after the NPC’s death; the Narrator is showing an error after the NPC has died.
script text
IF
CharacterUsedItem(_Player, CONT_Humans_Citz_Chest_A_002_be75935d-928f-4279-abbf-5bbe567e468d)
AND
CharacterIsPlayer(_Player, 1)
THEN
Proc_StartDialog(0,"Raven_Attake",CHARACTERGUID_Painter_Human_02acdcb0-a312-4f77-8fe3-ee88ba4fc729, _Player);
IF
DialogEnded ("Raven_Attake",_)
THEN
ProcSetRelationToPlayers(CHARACTERGUID_Painter_Human_02acdcb0-a312-4f77-8fe3-ee88ba4fc729,0);
IF
CharacterDied(Painter_Human_02acdcb0-a312-4f77-8fe3-ee88ba4fc729)
THEN
DB_DeathFlag(Painter_Human_02acdcb0-a312-4f77-8fe3-ee88ba4fc729);
IF
CharacterDied(CHARACTERGUID_Painter_Human_02acdcb0-a312-4f77-8fe3-ee88ba4fc729)0
AND
NOT DB_DeadRavenDialogDone(CHARACTERGUID_Painter_Human_02acdcb0-a312-4f77-8fe3-ee88ba4fc729)
THEN
Proc_StartDialog(0, "Dead_Raven_Speak", CHARACTERGUID_Painter_Human_02acdcb0-a312-4f77-8fe3-ee88ba4fc729, _Player);
DB_DeadRavenDialogDone(CHARACTERGUID_Painter_Human_02acdcb0-a312-4f77-8fe3-ee88ba4fc729);