| 1 |
import dialogue |
| 2 |
import adonthell |
| 3 |
|
| 4 |
|
| 5 |
def _(message): return message |
| 6 |
|
| 7 |
class oliver_start (dialogue.base): |
| 8 |
text = [None,\ |
| 9 |
_("As he notices you, the boy stops whatever he's been doing. With a cheerful grin on his face, he turns towards you."),\ |
| 10 |
_("Hello sir! Welcome to Waste's Edge."),\ |
| 11 |
_("Oh! I am Oliver, sir. I help Mum and Dad with the Inn. Looking after the stables and such."),\ |
| 12 |
_("Why yes! Would you believe that we have an actual Elven Lady staying at the Inn?"),\ |
| 13 |
_("Really? An Elven Lady?"),\ |
| 14 |
_("Yes, sir. Lady Silverbeard. From Cirdanth. And her two servants! She frightened me a bit, but now she's locked up in her room."),\ |
| 15 |
_("And who would you be?"),\ |
| 16 |
_("You can surely tell me something about Waste's Edge, then."),\ |
| 17 |
_("Did something unusual happen here lately, Oliver?"),\ |
| 18 |
_("Have you heard about the theft, sir? Everybody speaks about it."),\ |
| 19 |
_("Then I don't want to keep you off your work any longer."),\ |
| 20 |
_("Are there other guests too?"),\ |
| 21 |
_("Yes, but they are just ordinary people. Merchants and such."),\ |
| 22 |
_("What can you tell me about that?"),\ |
| 23 |
_("Can you imagine, sir? The Elven Lady robbed Master Fingolson in his sleep. And none of the adults noticed anything."),\ |
| 24 |
_("Why would anyone want to lock her up?"),\ |
| 25 |
_("Then you better tell me about the Elven Lady, Oliver."),\ |
| 26 |
_("Well, thank you for the information. Until later."),\ |
| 27 |
_("Who is Master Fingolson?"),\ |
| 28 |
_("But you heard something that night?"),\ |
| 29 |
_("Just another Dwarf from Uzdun'kal. He sells jewels and such. We get a lot of them here, but none of them got robbed so far."),\ |
| 30 |
_("Speaking of that, you say you noticed something that night?"),\ |
| 31 |
_("Yeah. Someone must have been in the stables. But when I went and had a look, they were gone."),\ |
| 32 |
_("I see. Thank you for your help, Oliver. Until later."),\ |
| 33 |
_("Oliver looks pleased as he sees you nearing."),\ |
| 34 |
_("Uh, hello again sir. Do you have more questions?"),\ |
| 35 |
_("Can you tell me something about Waste's Edge, Oliver?"),\ |
| 36 |
_("What do you know about the theft?"),\ |
| 37 |
_("Oliver leads you to a room on the first floor."),\ |
| 38 |
_("I hope you like it, sir. All the other rooms are occupied."),\ |
| 39 |
_("You have a lot of guests here at the moment, then?"),\ |
| 40 |
_("Don't worry Oliver. This one is fine."),\ |
| 41 |
_("Yes sir. And with that theft, nobody can leave."),\ |
| 42 |
_("Nobody can leave?"),\ |
| 43 |
_("No. As long as Master Fingolson's jewels are not found, the guards don't allow it."),\ |
| 44 |
_("I see. Thank you Oliver. Until later.")] |
| 45 |
|
| 46 |
cond = [\ |
| 47 |
"self.the_npc.get_val (\"talked_to\") == 0\n",\ |
| 48 |
"adonthell.gamedata_get_character (\"Oliver Redwyne\").submap () == 12\n"] |
| 49 |
|
| 50 |
code = [\ |
| 51 |
"self.the_npc.set_val (\"talked_to\" , 1)\nadonthell.achievements.update(2, 17)\n",\ |
| 52 |
"adonthell.gamedata_get_quest(\"demo\").set_val (\"know_olivers_noise\" , 1)\n",\ |
| 53 |
"self.the_npc.set_val (\"talked_to\" , 1)\nself.the_npc.set_val (\"goto_barn\" , 1)\nadonthell.achievements.update(2, 17)\n"] |
| 54 |
|
| 55 |
|
| 56 |
dlg = [\ |
| 57 |
(None, -1, ((29, 0, 1), (1, 1, 0), (25, 1, -1), )),\ |
| 58 |
("Narrator", 0, ((2, 0, -1), )),\ |
| 59 |
("Default", -1, ((7, 0, -1), )),\ |
| 60 |
("Default", -1, ((11, 0, -1), (8, 0, -1), (9, 0, -1), )),\ |
| 61 |
("Default", -1, ((12, 0, -1), (5, 0, -1), )),\ |
| 62 |
(None, -1, ((6, 0, -1), )),\ |
| 63 |
("Default", -1, ((16, 0, -1), )),\ |
| 64 |
(None, -1, ((3, 0, -1), )),\ |
| 65 |
(None, -1, ((4, 0, -1), )),\ |
| 66 |
(None, -1, ((10, 0, -1), )),\ |
| 67 |
("Default", -1, ((14, 0, -1), )),\ |
| 68 |
(None, -1, ()),\ |
| 69 |
(None, -1, ((13, 0, -1), )),\ |
| 70 |
("Default", -1, ((18, 0, -1), (17, 0, -1), )),\ |
| 71 |
(None, -1, ((15, 0, -1), )),\ |
| 72 |
("Default", -1, ((19, 0, -1), (20, 0, -1), )),\ |
| 73 |
(None, -1, ((15, 0, -1), )),\ |
| 74 |
(None, -1, ((6, 0, -1), )),\ |
| 75 |
(None, -1, ()),\ |
| 76 |
(None, -1, ((21, 0, -1), )),\ |
| 77 |
(None, -1, ((23, 0, -1), )),\ |
| 78 |
("Default", -1, ((22, 0, -1), )),\ |
| 79 |
(None, -1, ((23, 0, -1), )),\ |
| 80 |
("Default", 1, ((24, 0, -1), )),\ |
| 81 |
(None, -1, ()),\ |
| 82 |
("Narrator", -1, ((26, 0, -1), )),\ |
| 83 |
("Default", -1, ((27, 0, -1), (28, 0, -1), )),\ |
| 84 |
(None, -1, ((4, 0, -1), )),\ |
| 85 |
(None, -1, ((15, 0, -1), )),\ |
| 86 |
("Narrator", 2, ((30, 0, -1), )),\ |
| 87 |
("Default", -1, ((31, 0, -1), (32, 0, -1), )),\ |
| 88 |
(None, -1, ((33, 0, -1), )),\ |
| 89 |
(None, -1, ()),\ |
| 90 |
("Default", -1, ((28, 0, -1), (34, 0, -1), )),\ |
| 91 |
(None, -1, ((35, 0, -1), )),\ |
| 92 |
("Default", -1, ((36, 0, -1), )),\ |
| 93 |
(None, -1, ())] |
| 94 |
|
| 95 |
|
| 96 |
def __init__(self, p, n): |
| 97 |
self.namespace = globals () |
| 98 |
self.the_player = p |
| 99 |
self.the_npc = n |
| 100 |
|
| 101 |
def __del__(self): |
| 102 |
if self.the_npc.get_val ("goto_barn") == 1: |
| 103 |
adonthell.gamedata_get_character("Oliver Redwyne").do_stuff ("goto_barn") |
| 104 |
|