File: DlgMatthi.c

package info (click to toggle)
openclonk 8.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 169,516 kB
  • sloc: cpp: 180,479; ansic: 108,988; xml: 31,371; python: 1,223; php: 767; makefile: 145; sh: 101; javascript: 34
file content (72 lines) | stat: -rw-r--r-- 1,510 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#appendto Dialogue

/* Matthi Dialogue */

func Dlg_Matthi_1(object clonk)
{
	// If the player already has a sproutberry, he won't get another offer
	if (clonk->FindContents(Sproutberry))
		if (g_pyrit_spoken)
			return Dlg_Matthi_100(clonk); // asking for oil
		else
			return Dlg_Matthi_6(clonk); // just a generic remark
	MessageBox("$Matthi1$", clonk, dlg_target); // u want berry?
	return true;
}

func Dlg_Matthi_2(object clonk)
{
	MessageBox("$Matthi2$", clonk, clonk); // can't pay
	return true;
}

func Dlg_Matthi_3(object clonk)
{
	MessageBox("$Matthi3$", clonk, dlg_target); // no prob it's free
	clonk->CreateContents(Sproutberry);
	return true;
}

func Dlg_Matthi_4(object clonk)
{
	MessageBox("$Matthi4$", clonk, clonk); // free beer or free speech?
	return true;
}

func Dlg_Matthi_5(object clonk)
{
	MessageBox("$Matthi5$", clonk, dlg_target); // what?
	return true;
}

func Dlg_Matthi_6(object clonk)
{
	MessageBox("$Matthi6$", clonk, dlg_target); // sproutberries r delicous!
	StopDialogue();
	SetDialogueProgress(1);
	return true;
}


/* After speaking to Pyrit: Ask for oil */

func Dlg_Matthi_100(object clonk)
{
	MessageBox("$Matthi100$", clonk, clonk); // where is oil?
	SetDialogueProgress(101);
	return true;
}

func Dlg_Matthi_101(object clonk)
{
	MessageBox("$Matthi101$", clonk, dlg_target); // i h8 oil
	return true;
}

func Dlg_Matthi_102(object clonk)
{
	MessageBox("$Matthi102$", clonk, dlg_target); // sproutberry oil?
	StopDialogue();
	SetDialogueProgress(1);
	return true;
}