openclonk/planet/Missions.ocf/TreasureHunt.ocs/System.ocg/DlgJane.c

39 lines
783 B
C

#appendto Dialogue
/* Jane dialogue */
static npc_tarzan;
func Dlg_Jane_1(object clonk)
{
var msg = "$Jane1$"; // he's swinging all day instead of looking 4 gold
if (!npc_tarzan || !npc_tarzan->GetAlive()) msg = "$Jane1B$"; // he's dead instead of looking 4 gold
MessageBox(msg, clonk, dlg_target);
return true;
}
func Dlg_Jane_2(object clonk)
{
MessageBox("$Jane2$", clonk, clonk); // i want rope 2
return true;
}
func Dlg_Jane_3(object clonk)
{
MessageBox("$Jane3$", clonk, dlg_target); // look chest
return true;
}
func Dlg_Jane_4(object clonk)
{
MessageBox("$Jane4$", clonk, dlg_target); // u can carry 2
return true;
}
func Dlg_Jane_5(object clonk)
{
MessageBox("$Jane5$", clonk, dlg_target); // take all plz
SetDialogueProgress(1);
return StopDialogue();
}