File: janesta_start.py

package info (click to toggle)
adonthell-data 0.3.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 27,040 kB
  • sloc: python: 5,172; sh: 4,584; makefile: 420; xml: 40; sed: 16
file content (35 lines) | stat: -rw-r--r-- 1,343 bytes parent folder | download | duplicates (3)
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
import dialogue
import adonthell

# -- pygettext support
def _(message): return message

class janesta_start (dialogue.base):
	text = [None,\
		_("Oh, $name, we've been so worried for the Mistress.  Can't you do something to set her free?"),\
		_("I will try, Janesta.  But you must be brave.  This is a difficult time for Lady Silverhair, and she needs us all to help her through."),\
		_("I will try.  Thank you, $name."),\
		_("Perhaps.  Do you know anything about this dwarf, Fingolson?"),\
		_("Nothing, I'm afraid.  This is my first time here, and I was brought straight to the Mistress' room to make it ready.  This room is so awful, I cannot see how they expect a High Born to stand it."),\
		_("I see.  Thank you, Janesta.  I'm glad you are here to care for our Lady."),\
		_("Oh, $name.  I pray that this will turn out right.")]

	code = [\
		"adonthell.achievements.update(2, 11)\n"]

	# -- (speaker, code, ((text, operation, condition), ...))
	dlg = [\
		(None, -1, ((1, 0, -1), )),\
		("Janesta Skywind", 0, ((2, 0, -1), (4, 0, -1), )),\
		(None, -1, ((3, 0, -1), )),\
		("Janesta Skywind", -1, ()),\
		(None, -1, ((5, 0, -1), )),\
		("Janesta Skywind", -1, ((6, 0, -1), )),\
		(None, -1, ((7, 0, -1), )),\
		("Default", -1, ())]


	def __init__(self, p, n):
		self.namespace = globals ()
		self.the_player = p
		self.the_npc = n