That worked, thanks!
Do you have any idea how to set different dialogs depending on whether certain characters are alive or not? For example, I want to have a three speaker dialog if all the characters are still alive, but I want a two player dialog to fire if only two are alive. I tried setting a global event when the character died then setting a condition on the dialog but it didn't work:
IF
CharacterKilledByCharacter(CHARACTER_Karl,_Player)
THEN
GlobalEventSet("KarlDead",1);
IF
DialogStartRequested(CHARACTER_Karin, _Player)
GlobalSetEvent("KarlDead",0)
THEN
DialogStartThreeSpeakerDialog("Karin",CHARACTER_Karin,CHARACTER_Karl,_Player);
IF
DialogStartRequested(CHARACTER_Karin, _Player)
GlobalSetEvent("KarlDead",1)
THEN
DialogStartTwoSpeakerDialog("Karin2",CHARACTER_Karin,_Player);
ERRORS:
[syntax error "GlobalSetEvent" unexpected]
[rule condition syntax]
You're on the right track. You should be using
IF
DialogStartRequested(CHARACTER_Karin, _Player)
AND
CharacterIsDead(CHARACTER_Karl,1)
THEN
DialogStartTwoSpeakerDialog("Karin2",CHARACTER_Karin,_Player);
IF
DialogStartRequested(CHARACTER_Karin, _Player)
AND
CharacterIsDead(CHARACTER_Karl,0)
THEN
DialogStartThreeSpeakerDialog("Karin",CHARACTER_Karin,CHARACTER_Karl,_Player);