| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
import adonthell |
| 17 |
import events |
| 18 |
|
| 19 |
class brn_to_silverhair(object): |
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
def __init__ (self, eventinstance, smdest, xdest, ydest, destdir): |
| 27 |
self.smdest = smdest |
| 28 |
self.xdest = xdest |
| 29 |
self.ydest = ydest |
| 30 |
self.destdir = destdir |
| 31 |
|
| 32 |
def run (self, submap, x, y, dir, name): |
| 33 |
p = adonthell.gamedata_get_character (name) |
| 34 |
p.set_val ("came_from_barn", 1) |
| 35 |
p.set_val ("on_veranda", 0) |
| 36 |
|
| 37 |
events.switch_submap (p, self.smdest, self.xdest, self.ydest, self.destdir) |
| 38 |
adonthell.audio_fade_out_background (500) |
| 39 |
|
| 40 |
p.stand () |
| 41 |
p.go_west () |
| 42 |
|
| 43 |
silverhair = adonthell.gamedata_get_character ("Imoen Silverhair") |
| 44 |
|
| 45 |
|
| 46 |
if silverhair.get_val ("talked_to") == 0: |
| 47 |
silverhair.launch_action (p) |