Esempio n. 1
0
 def run (self, submap, x, y, dir, name):
     if adonthell.gamedata_get_quest ("demo").get_val ("get_item") == 1:
         fgs = find_gem_screen ()
         
         adonthell.gamedata_engine ().set_control_active (0)
         adonthell.gamedata_player ().set_schedule_active (0)
         adonthell.gamedata_engine ().main (fgs, "find_gem_screen")
         adonthell.gamedata_player ().set_schedule_active (1)
         adonthell.gamedata_engine ().set_control_active (1)
         
         adonthell.gamedata_get_quest ("demo").set_val ("get_item", 2)
         adonthell.gamedata_get_quest ("demo").set_val ("have_gem", 1)
     else:
         self.mapchar.speak (_("I know this chest. The Lady uses it on her journeys."))
Esempio n. 2
0
    def run (self, requester):
        if requester.get_name() == adonthell.gamedata_player ().get_name():
            # -- get characters' current state
            player_state = requester.is_paused ()
            npc_state = self.myself.is_paused ()
            
            # -- deactivate the schedule of the characters involved
            self.myself.pause ()
            requester.pause ()
            # player isn't event-driven yet
            requester.set_schedule_active (0)

            # -- don't allow access to main menu and stuff
            adonthell.gamedata_engine ().set_control_active (0)

            # -- look into the player's face
            self.myself.look_invert (requester.currentmove ())

            # -- init the dialogue engine
            dlg = adonthell.dialog_screen (self.myself, self.myself.get_dialogue (), 0)

            # -- make sure the engine isn't deleted when we leave the script
            dlg.thisown = 0

            # -- attach the callback
            dlg.py_signal_connect (self.restore_schedule, adonthell.win_event_CLOSE, (player_state, npc_state, requester, self.myself))

            # -- add the dialogue window to the win_manager
            adonthell.win_manager_get_active ().add (dlg)
            adonthell.win_manager_get_active ().set_focus (dlg)

            # -- start the dialogue
            dlg.run ()
Esempio n. 3
0
    def __del__(self):
        if adonthell.gamedata_get_quest("demo").get_val("the_end") == 1:
            bjarn = adonthell.gamedata_get_character("Bjarn Fingolson")
            bjarn.do_stuff("await_player")

            # make all dudes go down to Bjarn
            shair = adonthell.gamedata_get_character("Imoen Silverhair")
            shair.set_schedule("to_cellar")
            shair.time_callback_string("3t", "warp")

            jelom = adonthell.gamedata_get_character("Jelom Rasgar")
            jelom.set_schedule("to_cellar")
            jelom.time_callback_string("1t", "walk")

            erek = adonthell.gamedata_get_character("Erek Stonebreaker")
            erek.resume()
            erek.set_schedule("to_cellar")
            erek.time_callback_string("3t", "walk")

            fnir = adonthell.gamedata_get_character("Fellnir Kezular")
            fnir.set_schedule("to_cellar")
            fnir.time_callback_string("4t", "walk")

            illig = adonthell.gamedata_get_character("Tristan Illig")
            illig.set_schedule("to_cellar")
            illig.time_callback_string("7t", "walk")

            player = adonthell.gamedata_player()
            player.set_schedule_active(1)
            player.set_schedule("to_cellar")
            player.time_callback_string("2t", "walk")
Esempio n. 4
0
	def __del__(self):
		if adonthell.gamedata_get_quest("demo").get_val ("the_end") == 1:
		    bjarn = adonthell.gamedata_get_character("Bjarn Fingolson")
		    bjarn.do_stuff ("await_player")
		
		    # make all dudes go down to Bjarn
		    shair = adonthell.gamedata_get_character("Imoen Silverhair")
		    shair.set_schedule ("to_cellar")
		    shair.time_callback_string ("3t", "warp")
		
		    jelom = adonthell.gamedata_get_character("Jelom Rasgar")
		    jelom.set_schedule ("to_cellar")
		    jelom.time_callback_string ("1t", "walk")
		
		    erek = adonthell.gamedata_get_character("Erek Stonebreaker")
		    erek.resume ()
		    erek.set_schedule ("to_cellar")
		    erek.time_callback_string ("3t", "walk")
		
		    fnir = adonthell.gamedata_get_character("Fellnir Kezular")
		    fnir.set_schedule ("to_cellar")
		    fnir.time_callback_string ("4t", "walk")
		
		    illig = adonthell.gamedata_get_character("Tristan Illig")
		    illig.set_schedule ("to_cellar")
		    illig.time_callback_string ("7t", "walk")
		
		    player = adonthell.gamedata_player ()
		    player.set_schedule_active (1)
		    player.set_schedule ("to_cellar")
		    player.time_callback_string ("2t", "walk")
Esempio n. 5
0
 def run (self, submap, x, y, dir, name):
     p = adonthell.gamedata_get_character (name)
     # -- bjarn's door closed?
     open = adonthell.gamedata_get_quest ("demo").get_val("bjarn_door_open")
     if open == 0 or open == 1:
         if p.get_name () == adonthell.gamedata_player ().get_name ():
             adonthell.gamedata_get_character ("Bjarn Fingolson").launch_action (p)
         p.stand ()
         p.go_west ()
     else:
         events.switch_submap (p, self.smdest, self.xdest, self.ydest, self.destdir)
Esempio n. 6
0
    def show_menu (self, a, b):
        menu = main_menu.main_menu (a, b)
        
        # -- open the menu
        adonthell.gamedata_engine ().main (menu, "game_menu")
        
        # -- once the menu is closed, see what we got
        retval = menu.get_result ()
        
        # -- start new game
        if retval == 1:
            # -- let the player chose a name for his character
            import character_screen
            cs = character_screen.character_screen ()
            adonthell.gamedata_engine ().main (cs, "character_screen")

            adonthell.gamedata_engine ().fade_out ()
            self.cleanup ()

            # -- load the initial game
            adonthell.gamedata_load (0)
            adonthell.gamedata_player ().set_name (cs.name)
            
            # -- on to the intro
            self.play_intro ()
            
        # -- Load game
        elif retval == 2:
            adonthell.gamedata_player ().set_schedule_active (1)

            self.window.set_visible (0)
            self.cleanup ()
            adonthell.gamedata_engine ().mapview_start ()
            adonthell.gamedata_engine ().set_control_active (1)
            adonthell.gamedata_engine ().fade_in ()

        # -- quit the game
        else:
            adonthell.gamedata_engine ().main_quit ()
            
        adonthell.win_container.__del__ (menu)
Esempio n. 7
0
    def show_menu(self, a, b):
        menu = main_menu.main_menu(a, b)

        # -- open the menu
        adonthell.gamedata_engine().main(menu, "game_menu")

        # -- once the menu is closed, see what we got
        retval = menu.get_result()

        # -- start new game
        if retval == 1:
            # -- let the player chose a name for his character
            import character_screen
            cs = character_screen.character_screen()
            adonthell.gamedata_engine().main(cs, "character_screen")

            adonthell.gamedata_engine().fade_out()
            self.cleanup()

            # -- load the initial game
            adonthell.gamedata_load(0)
            adonthell.gamedata_player().set_name(cs.name)

            # -- on to the intro
            self.play_intro()

        # -- Load game
        elif retval == 2:
            adonthell.gamedata_player().set_schedule_active(1)

            self.window.set_visible(0)
            self.cleanup()
            adonthell.gamedata_engine().mapview_start()
            adonthell.gamedata_engine().set_control_active(1)
            adonthell.gamedata_engine().fade_in()

        # -- quit the game
        else:
            adonthell.gamedata_engine().main_quit()

        adonthell.win_container.__del__(menu)
Esempio n. 8
0
 def run(self, submap, x, y, dir, name):
     p = adonthell.gamedata_get_character(name)
     # -- bjarn's door closed?
     open = adonthell.gamedata_get_quest("demo").get_val("bjarn_door_open")
     if open == 0 or open == 1:
         if p.get_name() == adonthell.gamedata_player().get_name():
             adonthell.gamedata_get_character(
                 "Bjarn Fingolson").launch_action(p)
         p.stand()
         p.go_west()
     else:
         events.switch_submap(p, self.smdest, self.xdest, self.ydest,
                              self.destdir)
Esempio n. 9
0
 def goal_reached (self):
     if self.myself.get_name () == adonthell.gamedata_player ().get_name ():
         self.myself.set_schedule ("keyboard_control")
         bjarn = adonthell.gamedata_get_character ("Bjarn Fingolson")
         bjarn.set_dialogue ("dialogues.extro")
         bjarn.pause ()
         bjarn.launch_action (self.myself)
                     
     else:
         if self.myself.posx () == 1 and self.myself.posy () == 7:
             self.walk ()
         else:
             self.myself.pause ()
Esempio n. 10
0
    def goal_reached(self):
        if self.myself.get_name() == adonthell.gamedata_player().get_name():
            self.myself.set_schedule("keyboard_control")
            bjarn = adonthell.gamedata_get_character("Bjarn Fingolson")
            bjarn.set_dialogue("dialogues.extro")
            bjarn.pause()
            bjarn.launch_action(self.myself)

        else:
            if self.myself.posx() == 1 and self.myself.posy() == 7:
                self.walk()
            else:
                self.myself.pause()
Esempio n. 11
0
    def run (self, submap, x, y, dir, name):
        p = adonthell.gamedata_get_character (name)

        free = adonthell.gamedata_get_quest ("demo").get_val("silverhair_free")

        # -- Jelom not convinced of Silverhair's innocence
        if not free and p.get_name () == adonthell.gamedata_player ().get_name ():
            # -- we only need that for the dialogue, ...
            p.set_val ("at_silverhairs_door", 1)
            p.stand ()
            p.go_north ()
            adonthell.gamedata_get_character ("Jelom Rasgar").launch_action (p)
            # -- ... so remove it again afterwards
            p.set_val ("at_silverhairs_door", 0)
        else:
            events.switch_submap (p, self.smdest, self.xdest, self.ydest, self.destdir)
            adonthell.audio_fade_out_background (500)
Esempio n. 12
0
    def run(self):
        # -- deactivate game controls
        if self.index == 0:
            adonthell.gamedata_engine().set_control_active(0)

        # -- Bjarn walks up to chest
        elif self.index == 20:
            bjarn = self.text[3][0]
            if self.done == 0:
                bjarn.set_goal(7, 3, adonthell.STAND_NORTH)
                self.done = 1

            if (bjarn.follow_path() == 0):
                return
            else:
                adonthell.gamedata_player().set_schedule_active(0)
                self.index = self.index + 1
                self.zoom_to_chest()
                return

        # -- Talan bursts in
        elif self.index == 25 and self.done == 0:
            bjarn = self.text[3][0]
            bjarn.go_south()
            bjarn.load('bjarn_crying.mchar')

            talan = adonthell.gamedata_get_character('Talan Wendth')
            talan.load("talan_beaten.mchar")
            events.switch_submap(talan, 7, 1, 6, adonthell.STAND_EAST)

            # -- everyone look at Talan
            adonthell.gamedata_get_character("Erek Stonebreaker").stand_west()
            adonthell.gamedata_get_character("Jelom Rasgar").stand_west()
            adonthell.gamedata_get_character("Imoen Silverhair").stand_west()
            adonthell.gamedata_player().stand_west()

            talan.go_east()
            talan.stand_south()
            self.done = 1

        elif self.index == 36 and self.bubble == None:
            # -- shutdown the mapview, it's no longer needed
            adonthell.gamedata_player().set_schedule_active(0)
            adonthell.gamedata_engine().fade_out()
            adonthell.gamedata_engine().mapview_stop()
            self.fade_to_forest()
            return

        if self.bubble == None:
            self.index = self.index + 1
            self.bubble = self.make_bubble()
            self.done = 0
Esempio n. 13
0
    def music_finished (self, song):
        music = adonthell.gamedata_get_quest ("demo").get_val ("music")
        
        # -- if we're in Silverhair's room, play special tune
        if adonthell.gamedata_player ().submap () == 13:
            adonthell.audio_load_background (2, "audio/at-demo-7.ogg")
            adonthell.audio_play_background (2)

        # -- otherwise
        elif music == 0:
            adonthell.gamedata_get_quest ("demo").set_val ("music", 1)
            adonthell.audio_load_background (1, "audio/at-demo-6.ogg")
            adonthell.audio_play_background (1)
        
        else:
            adonthell.gamedata_get_quest ("demo").set_val ("music", 0)
            adonthell.audio_load_background (0, "audio/at-demo-5.ogg")
            adonthell.audio_play_background (0)
Esempio n. 14
0
    def run (self):
        # -- deactivate game controls
        if self.index == 0:
            adonthell.gamedata_engine ().set_control_active (0)

        # -- Bjarn walks up to chest
        elif self.index == 20:
            bjarn = self.text[3][0]
            if self.done == 0:
                bjarn.set_goal (7, 3, adonthell.STAND_NORTH)
                self.done = 1
                
            if (bjarn.follow_path () == 0):
                return 
            else:
                adonthell.gamedata_player ().set_schedule_active (0)
                self.index = self.index + 1
                self.zoom_to_chest ()
                return
        
        # -- Talan bursts in
        elif self.index == 25 and self.done == 0:
            bjarn = self.text[3][0]
            bjarn.go_south ()
            bjarn.load ('bjarn_crying.mchar')
            
            talan = adonthell.gamedata_get_character ('Talan Wendth')
            talan.load ("talan_beaten.mchar")
            events.switch_submap (talan, 7, 1, 6, adonthell.STAND_EAST)
            
            # -- everyone look at Talan
            adonthell.gamedata_get_character ("Erek Stonebreaker").stand_west ()
            adonthell.gamedata_get_character ("Jelom Rasgar").stand_west ()
            adonthell.gamedata_get_character ("Imoen Silverhair").stand_west ()
            adonthell.gamedata_player ().stand_west ()
            
            talan.go_east ()
            talan.stand_south ()
            self.done = 1
        
        elif self.index == 36 and self.bubble == None:
            # -- shutdown the mapview, it's no longer needed
            adonthell.gamedata_player ().set_schedule_active (0)
            adonthell.gamedata_engine ().fade_out ()
            adonthell.gamedata_engine ().mapview_stop ()
            self.fade_to_forest ()
            return
        
        if self.bubble == None:
            self.index = self.index + 1
            self.bubble = self.make_bubble ()
            self.done = 0
Esempio n. 15
0
    def music_finished(self, song):
        music = adonthell.gamedata_get_quest("demo").get_val("music")

        # -- if we're in Silverhair's room, play special tune
        if adonthell.gamedata_player().submap() == 13:
            adonthell.audio_load_background(2, "audio/at-demo-7.ogg")
            adonthell.audio_play_background(2)

        # -- otherwise
        elif music == 0:
            adonthell.gamedata_get_quest("demo").set_val("music", 1)
            adonthell.audio_load_background(1, "audio/at-demo-6.ogg")
            adonthell.audio_play_background(1)

        else:
            adonthell.gamedata_get_quest("demo").set_val("music", 0)
            adonthell.audio_load_background(0, "audio/at-demo-5.ogg")
            adonthell.audio_play_background(0)
Esempio n. 16
0
 def run(self, submap, x, y, dir, name):
     self.speaker.launch_action(adonthell.gamedata_player())
Esempio n. 17
0
 def start_talking (self):
     self.myself.launch_action (adonthell.gamedata_player ())
     adonthell.gamedata_get_character ("Erek Stonebreaker").pause ()
     adonthell.gamedata_get_quest ("demo").set_val ("convince_jelom", 3)
Esempio n. 18
0
        del self.bag_o
        del self.bag_c
        del self.bag_t

        adonthell.audio_fade_out_background(500)
        adonthell.audio_unload_background(0)

    def play_intro(self):
        # -- Launches the intro

        import intro

        # -- start the mapengine
        adonthell.gamedata_engine().mapview_start()
        adonthell.gametime_update()
        adonthell.gamedata_engine().fade_in()


# -- Main --
adonthell.audio_load_wave(0, "audio/select.wav")
adonthell.audio_load_wave(1, "audio/switch.wav")
adonthell.audio_load_wave(2, "audio/unselect.wav")

if adonthell.gamedata_load_newest() == 0:
    title = title_screen()
else:
    # -- Quick-load
    adonthell.gamedata_player().set_schedule_active(1)
    adonthell.gametime_start_action()
    adonthell.gamedata_engine().main()
Esempio n. 19
0
        del self.bag_o
        del self.bag_c
        del self.bag_t

        adonthell.audio_fade_out_background (500)
        adonthell.audio_unload_background (0)


    def play_intro (self):
        # -- Launches the intro

        import intro

        # -- start the mapengine
        adonthell.gamedata_engine ().mapview_start ()
        adonthell.gametime_update ()
        adonthell.gamedata_engine ().fade_in ()

# -- Main --
adonthell.audio_load_wave (0, "audio/select.wav")
adonthell.audio_load_wave (1, "audio/switch.wav")
adonthell.audio_load_wave (2, "audio/unselect.wav")

if adonthell.gamedata_load_newest () == 0:
    title = title_screen ()
else:
    # -- Quick-load
    adonthell.gamedata_player ().set_schedule_active (1)
    adonthell.gametime_start_action ()
    adonthell.gamedata_engine ().main ()
Esempio n. 20
0
 def run (self, submap, x, y, dir, name):
     self.speaker.launch_action (adonthell.gamedata_player ())
Esempio n. 21
0
    def show_niche(self):
        if self.step == 0 and self.bubble == None:
            self.step = 1
            self.index = self.index + 1
            # -- "... well hidden and ..."
            self.bubble = self.make_bubble()

        # -- fade closed bag in
        elif self.step == 1:
            self.c_bag.set_alpha(1)
            self.c_bag.set_visible(1)
            self.window.add(self.c_bag)
            self.step = self.step + 1

        elif self.step > 1 and self.step <= 255:
            self.c_bag.set_alpha(self.step)
            self.step = self.step + 1
            return

        # -- fading done
        elif self.step == 256:
            self.window.remove(self.chest)
            self.window.remove(self.wall)
            del self.chest
            del self.wall
            self.step = 257

        elif self.step > 256 and self.step <= 306:
            self.step = self.step + 1
            return

        elif self.step == 307 and self.bubble == None:
            self.step = 308
            self.index = self.index + 1
            # -- "Right Here"
            self.bubble = self.make_bubble()

        # -- fade in open bag
        elif self.step == 308:
            self.o_bag.set_alpha(3)
            self.o_bag.set_visible(1)
            self.window.add(self.o_bag)
            self.step = self.step + 1

        elif self.step > 308 and self.step <= 561:
            self.o_bag.set_alpha(self.step - 307)
            self.step = self.step + 1

        # -- wait a little
        elif self.step > 561 and self.step <= 650:
            self.step = self.step + 1

        # -- zoom to bjarn's face
        elif self.step == 651:
            # -- audio
            adonthell.audio_load_background(1, "audio/at-demo-a.ogg")
            adonthell.audio_play_background(1)

            self.bjarn.set_visible(1)
            self.window.add(self.bjarn)
            self.window.remove(self.c_bag)
            self.window.remove(self.o_bag)
            del self.c_bag
            del self.o_bag

            self.step = 652
            self.index = self.index + 1
            # -- "But ..."
            self.bubble = self.make_bubble()

        elif self.step == 652 and self.bubble == None:
            self.step = 653
            self.index = self.index + 1
            # -- "... they are gone"
            self.bubble = self.make_bubble()

        # -- wait a little more
        elif self.step > 652 and self.step <= 850:
            if self.bubble == None: self.step = self.step + 1

        elif self.step == 851:
            if self.bubble != None:
                adonthell.win_manager_get_active().remove(self.bubble)
                self.bubble = None
            adonthell.gamedata_engine().main_quit()
            adonthell.gamedata_player().set_schedule_active(1)
            self.done = 0
            self.index = 25
Esempio n. 22
0
 def start_talking(self):
     self.myself.launch_action(adonthell.gamedata_player())
     adonthell.gamedata_get_character("Erek Stonebreaker").pause()
     adonthell.gamedata_get_quest("demo").set_val("convince_jelom", 3)
Esempio n. 23
0
 def start_talking(self):
     self.myself.launch_action(adonthell.gamedata_player())
     adonthell.gamedata_get_character("Erek Stonebreaker").pause()
Esempio n. 24
0
    def show_niche (self):
        if self.step == 0 and self.bubble == None:
            self.step = 1
            self.index = self.index + 1
            # -- "... well hidden and ..."
            self.bubble = self.make_bubble ()
            
        # -- fade closed bag in
        elif self.step == 1:
            self.c_bag.set_alpha (1)
            self.c_bag.set_visible (1)
            self.window.add (self.c_bag)
            self.step = self.step + 1            

        elif self.step > 1 and self.step <= 255:
            self.c_bag.set_alpha (self.step)
            self.step = self.step + 1
            return
        
        # -- fading done
        elif self.step == 256:
            self.window.remove (self.chest)
            self.window.remove (self.wall)
            del self.chest
            del self.wall
            self.step = 257

        elif self.step > 256 and self.step <= 306:
            self.step = self.step + 1
            return

        elif self.step == 307 and self.bubble == None:            
            self.step = 308
            self.index = self.index + 1
            # -- "Right Here"
            self.bubble = self.make_bubble ()
        
        # -- fade in open bag 
        elif self.step == 308:
            self.o_bag.set_alpha (3)
            self.o_bag.set_visible (1)
            self.window.add (self.o_bag)
            self.step = self.step + 1

        elif self.step > 308 and self.step <= 561:
            self.o_bag.set_alpha (self.step - 307)
            self.step = self.step + 1
        
        # -- wait a little
        elif self.step > 561 and self.step <= 650:
            self.step = self.step + 1

        # -- zoom to bjarn's face        
        elif self.step == 651:
            # -- audio
            adonthell.audio_load_background (1, "audio/at-demo-a.ogg")
            adonthell.audio_play_background (1)
            
            self.bjarn.set_visible (1)
            self.window.add (self.bjarn)
            self.window.remove (self.c_bag)
            self.window.remove (self.o_bag)
            del self.c_bag
            del self.o_bag
            
            self.step = 652
            self.index = self.index + 1
            # -- "But ..."
            self.bubble = self.make_bubble ()
        
        elif self.step == 652 and self.bubble == None:            
            self.step = 653
            self.index = self.index + 1
            # -- "... they are gone"
            self.bubble = self.make_bubble ()

        # -- wait a little more
        elif self.step > 652 and self.step <= 850:
            if self.bubble == None: self.step = self.step + 1
            
        elif self.step == 851:
            if self.bubble != None: 
                adonthell.win_manager_get_active ().remove (self.bubble)
                self.bubble = None
            adonthell.gamedata_engine ().main_quit ()
            adonthell.gamedata_player ().set_schedule_active (1)
            self.done = 0
            self.index = 25
Esempio n. 25
0
    def __init__(self, mapchar):
        # -- audio
        adonthell.audio_set_schedule_active (0)
        adonthell.audio_fade_out_background (1000)
        
        # -- grab the character's we need
        bjarn = adonthell.gamedata_get_character ("Bjarn Fingolson")
        erek = adonthell.gamedata_get_character ("Erek Stonebreaker")
        jelom = adonthell.gamedata_get_character ("Jelom Rasgar")
        talan = adonthell.gamedata_get_character ("Talan Wendth")
        silverhair = adonthell.gamedata_get_character ("Imoen Silverhair")
        player = adonthell.gamedata_player ()

        talan.pause ()

        # -- init the bubble texts
        #    (character, text)
        self.text = [(bjarn, N_("There is no denying it. Yes, I feigned the theft. ")), \
            (erek, N_("But Master? How could you do such an infamous deed? ")), \
            (jelom, N_("That I would know as well! And where are the gems then? ")), \
            (bjarn, N_("What? Haven't I made myself clear already? ")), \
            (bjarn, N_("I despise those Elves and their uncanny ways. ")), \
            (bjarn, N_("Their ... meddling with reality contradicts all principles I learnt to hold true.     ")), \
            (bjarn, N_("And yet, I had to provide them with the reagents they need to perform their dark art.     ")), \
            (bjarn, N_("I felt so ... ashamed! ")), \
            (player, N_("And you believe this justifies the discomfort you caused my mistress? ")), \
            (bjarn, N_("You cannot think further than your mistress, can you? ")), \
            (bjarn, N_("Theft by a high born like Lady Silverhair would have been considered a grave insult by the clan elders.     ")), \
            (bjarn, N_("Had she been convicted, they might have chosen to cease trading with her likes. ")), \
            (bjarn, N_("It might have been years before any Elf got his filthy hands on our beloved gems again! ")), \
            (silverhair, N_("I feared as much and I       feared the consequences.")), \
            (silverhair, N_("Without the arcane arts my kind would soon succumb to the human tides. ")), \
            (silverhair, N_("But without gems and ores purchased from the small folk we cannot create magic. ")), \
            (jelom, N_("Who would have thought that? ")), \
            (jelom, _("Seems you owe %s here a big favour, if I may say so, Lady. ") % player.get_name()), \
            (silverhair, _("Rest assured that %s's deeds will not be forgotten, good man. ") %  player.get_name()), \
            (jelom, N_("Well, this is settled then. What remains now are the whereabouts of the gems. ")), \
            (jelom, N_("Master Fingolson! ")), \
            (None, N_("They were here all the time, safe from thieving hands, ...")), \
            (None, N_("... well hidden in a niche I carved during my previous visits.")), \
            (None, N_("Right here.")), \
            (None, N_("But ...")), \
            (None, N_("... they are gone!")), \
            (talan, N_("Sir, sir! To the gate! Quick! The thief is loose!")), \
            (bjarn, N_("My jewels, oh my jewels!")), \
            (player, N_("By Andomiel's Tree! What happened to you, Talan?!")), \
            (talan, N_("It was the mercenary, sir! He sneaked upon me and hit me over the head.")), \
            (silverhair, N_("O sweet irony.")), \
            (jelom, N_("Then the gems have been stolen after all?!")), \
            (jelom, N_("By that scum, Alek!? Now that's funny.")), \
            (bjarn, N_("How can you say that? And why are you still here?")), \
            (bjarn, N_("Will nobody go after my gems!?")), \
            (jelom, N_("What for?")), \
            (jelom, N_("Where you are going you won't need them any more. Besides, Alek is probably long gone by now ..."))]

        # -- the typeover text
        self.typeover = [N_("And so Alek Endhelm escaped into the\nNorth, where he spent his newly gained\nwealth for Ale and other pleasures."), \
            N_("Bjarn Fingolson however, bereft of all\nhonour, was taken to Uzdun'kal and\nsentenced to the lowest labour.\nNowadays his fate serves as an example\nand a warning to generations of young Dwarves."), \
            N_("Lady Imoen Silverhair received the finest\nChrysoberyl Catseyes as a token of\nregret, and the magic rings and amulets\nshe crafted were of wondrous might and\nbeauty, desired and admired throughout\nthe realm."), \
            N_("Soon after his return, young Erek\naccomplished the Rite of Passage and\njoined adult society. To his surprise, he\nwas sent to the Elvish Council at the\nHigh City of Elgilad, as an ambassador\nfor his people.")]

        # -- the credits
        #    (text, delay)
        self.credits = [("Adonthell", 1), \
            ("- Waste's Edge -", 3), \
            (_("directed by:"), 1), \
            ("Alexandre Courbot", 1), \
            ("Kai Sterker", 3), \
            (_("written by:"), 1), \
            ("Kai Sterker", 1), \
            ("Mike Nieforth", 1), \
            ("Josh Glover", 3), \
            (_("based on an original idea by:"), 1), \
            ("Kai Sterker", 3), \
            (_("produced by:"), 1), \
            (_("the Adonthell team"), 3), \
            (_("executive producers:"), 1), \
            ("Sourceforge.net", 1), \
            ("GNU Savannah", 1), \
            ("Linuxgames.com", 5), \
            (_("cast:"), 1), \
            (adonthell.gamedata_player ().get_name () + _(" - you"), 1), \
            (_("Imoen Silverhair - herself"), 1), \
            (_("Bjarn Fingolson - himself"), 1), \
            (_("Erek Stonebreaker - himself"), 1), \
            (_("Orloth Redwyne - himself"), 1), \
            (_("Alek Endhelm - himself"), 1), \
            (_("Oliver Redwyne - himself"), 1), \
            (_("Talan Wendth - himself"), 1), \
            (_("Jelom Rasgar - himself"), 1), \
            (_("Tristan Illig - himself"), 1), \
            (_("Fellnir Kezular - himself"), 1), \
            (_("Lucia Redwyne - herself"), 1), \
            (_("Rhayne Frostbloom - herself"), 1), \
            (_("Sarin Trailfollower - himself"), 1), \
            (_("Janesta Skywind - herself"), 2), \
            (_("Mrs. Frostbloom's assistant:"), 1), \
            ("Yeti", 2), \
            (_("casting:"), 1), \
            ("Benjamin Walther-Franks", 5), \
            (_("director of photography:"), 1), \
            ("Alexandre Courbot", 2), \
            (_("art director:"), 1), \
            ("James Nash", 2), \
            (_("assistant art director:"), 1), \
            ("Benjamin Walther-Franks", 2), \
            (_("wardrobe:"), 1), \
            ("Benjamin Walther-Franks", 2), \
            (_("props masters:"), 1), \
            ("James Nash", 1), \
            ("Kai Sterker", 2), \
            (_("location managers:"), 1), \
            ("Alexandre Courbot", 1), \
            ("James Nash", 2), \
            (_("grip:"), 1), \
            ("Alexandre Courbot", 5), \
            (_("\"Window\" unit:"), 2), \
            (_("director:"), 1), \
            ("Joel Vennin", 2), \
            (_("assistant director:"), 1), \
            ("Joel Vennin", 2), \
            (_("best boy:"), 1), \
            ("Yeti", 2), \
            (_("runner:"), 1), \
            ("Joel Vennin", 5), \
            (_("music by:"), 1), \
            ("Joseph Toscano", 2), \
            (_("foley artist:"), 1), \
            ("Joseph Toscano", 2), \
            (_("title design:"), 1), \
            ("John Havard", 1), \
            ("James Nash", 2), \
            (_("soundtrack available on:"), 1), \
            ("http://zhaymusic.com/wastesedge/", 5), \
            (_("the Adonthell team wishes to thank:"), 2), \
            ("Al Koskelin", 1), \
            ("Andrew Henderson", 1), \
            ("Chris Harris", 1), \
            ("Mark Howson", 1), \
            ("Dave Peticolas", 1), \
            ("Ryan O'Neil", 1), \
            ("Meandus", 1), \
            ("Deniz Oezsen", 2), \
            (_("The people behind SDL, Ogg Vorbis,"), 1), \
            (_("Python, SWIG and all the other Free"), 1), \
            (_("Software developers whose work"), 1), \
            (_("made Adonthell possible"), 3), \
            (_("career portal:"), 1), \
            ("http://adonthell.linuxgames.com/development/", 5), \
            (_("No Yetis were harmed during\n the production of this game"), 5), \
            (_("presented in"), 2), \
            (_("Ogg Vorbis Stereo"), 1), \
            (_("(where available)"), 14), \
            (_("The END"), 6), \
            (_("Joel, you are fired! ;)"), -1)]

            
        # -- text colors
        self.colors = ["white", "yellow", "red", "violet", "blue", "green"]
         
        # -- misc stuff
        self.index = 0
        self.bubble = self.make_bubble ()
        self.done = 0
        
        # -- the images
        self.wall = adonthell.win_image ()
        self.wall.load_raw ('gfx/cutscene/extro_wall.img')
        self.wall.pack ()
        self.wall.thisown = 0
        
        self.chest = adonthell.win_image ()
        self.chest.load_raw ('gfx/cutscene/extro_chest.img')
        self.chest.set_mask (1)
        self.chest.move (75, 0)
        self.chest.pack ()
        self.chest.thisown = 0
        
        self.o_bag = adonthell.win_image ()
        self.o_bag.load_raw ('gfx/cutscene/extro_open_bag.img')
        self.o_bag.pack ()
        self.o_bag.thisown = 0
        
        self.c_bag = adonthell.win_image ()
        self.c_bag.load_raw ('gfx/cutscene/extro_closed_bag.img')
        self.c_bag.pack ()
        self.c_bag.thisown = 0
        
        self.bjarn = adonthell.win_image ()
        self.bjarn.load_raw ('gfx/cutscene/extro_bjarn.img')
        self.bjarn.pack ()
        self.bjarn.thisown = 0

        # -- set new audio schedule and play extro music
        adonthell.audio_load_background (0, "audio/at-demo-9.ogg")
        adonthell.audio_play_background (0)
Esempio n. 26
0
 def start_talking (self):
     self.myself.launch_action (adonthell.gamedata_player ())
     adonthell.gamedata_get_character ("Erek Stonebreaker").pause ()
Esempio n. 27
0
    def __init__(self, mapchar):
        # -- audio
        adonthell.audio_set_schedule_active(0)
        adonthell.audio_fade_out_background(1000)

        # -- grab the character's we need
        bjarn = adonthell.gamedata_get_character("Bjarn Fingolson")
        erek = adonthell.gamedata_get_character("Erek Stonebreaker")
        jelom = adonthell.gamedata_get_character("Jelom Rasgar")
        talan = adonthell.gamedata_get_character("Talan Wendth")
        silverhair = adonthell.gamedata_get_character("Imoen Silverhair")
        player = adonthell.gamedata_player()

        talan.pause()

        # -- init the bubble texts
        #    (character, text)
        self.text = [(bjarn, N_("There is no denying it. Yes, I feigned the theft. ")), \
            (erek, N_("But Master? How could you do such an infamous deed? ")), \
            (jelom, N_("That I would know as well! And where are the gems then? ")), \
            (bjarn, N_("What? Haven't I made myself clear already? ")), \
            (bjarn, N_("I despise those Elves and their uncanny ways. ")), \
            (bjarn, N_("Their ... meddling with reality contradicts all principles I learnt to hold true.     ")), \
            (bjarn, N_("And yet, I had to provide them with the reagents they need to perform their dark art.     ")), \
            (bjarn, N_("I felt so ... ashamed! ")), \
            (player, N_("And you believe this justifies the discomfort you caused my mistress? ")), \
            (bjarn, N_("You cannot think further than your mistress, can you? ")), \
            (bjarn, N_("Theft by a high born like Lady Silverhair would have been considered a grave insult by the clan elders.     ")), \
            (bjarn, N_("Had she been convicted, they might have chosen to cease trading with her likes. ")), \
            (bjarn, N_("It might have been years before any Elf got his filthy hands on our beloved gems again! ")), \
            (silverhair, N_("I feared as much and I       feared the consequences.")), \
            (silverhair, N_("Without the arcane arts my kind would soon succumb to the human tides. ")), \
            (silverhair, N_("But without gems and ores purchased from the small folk we cannot create magic. ")), \
            (jelom, N_("Who would have thought that? ")), \
            (jelom, _("Seems you owe %s here a big favour, if I may say so, Lady. ") % player.get_name()), \
            (silverhair, _("Rest assured that %s's deeds will not be forgotten, good man. ") %  player.get_name()), \
            (jelom, N_("Well, this is settled then. What remains now are the whereabouts of the gems. ")), \
            (jelom, N_("Master Fingolson! ")), \
            (None, N_("They were here all the time, safe from thieving hands, ...")), \
            (None, N_("... well hidden in a niche I carved during my previous visits.")), \
            (None, N_("Right here.")), \
            (None, N_("But ...")), \
            (None, N_("... they are gone!")), \
            (talan, N_("Sir, sir! To the gate! Quick! The thief is loose!")), \
            (bjarn, N_("My jewels, oh my jewels!")), \
            (player, N_("By Andomiel's Tree! What happened to you, Talan?!")), \
            (talan, N_("It was the mercenary, sir! He sneaked upon me and hit me over the head.")), \
            (silverhair, N_("O sweet irony.")), \
            (jelom, N_("Then the gems have been stolen after all?!")), \
            (jelom, N_("By that scum, Alek!? Now that's funny.")), \
            (bjarn, N_("How can you say that? And why are you still here?")), \
            (bjarn, N_("Will nobody go after my gems!?")), \
            (jelom, N_("What for?")), \
            (jelom, N_("Where you are going you won't need them any more. Besides, Alek is probably long gone by now ..."))]

        # -- the typeover text
        self.typeover = [N_("And so Alek Endhelm escaped into the\nNorth, where he spent his newly gained\nwealth for Ale and other pleasures."), \
            N_("Bjarn Fingolson however, bereft of all\nhonour, was taken to Uzdun'kal and\nsentenced to the lowest labour.\nNowadays his fate serves as an example\nand a warning to generations of young Dwarves."), \
            N_("Lady Imoen Silverhair received the finest\nChrysoberyl Catseyes as a token of\nregret, and the magic rings and amulets\nshe crafted were of wondrous might and\nbeauty, desired and admired throughout\nthe realm."), \
            N_("Soon after his return, young Erek\naccomplished the Rite of Passage and\njoined adult society. To his surprise, he\nwas sent to the Elvish Council at the\nHigh City of Elgilad, as an ambassador\nfor his people.")]

        # -- the credits
        #    (text, delay)
        self.credits = [("Adonthell", 1), \
            ("- Waste's Edge -", 3), \
            (_("directed by:"), 1), \
            ("Alexandre Courbot", 1), \
            ("Kai Sterker", 3), \
            (_("written by:"), 1), \
            ("Kai Sterker", 1), \
            ("Mike Nieforth", 1), \
            ("Josh Glover", 3), \
            (_("based on an original idea by:"), 1), \
            ("Kai Sterker", 3), \
            (_("produced by:"), 1), \
            (_("the Adonthell team"), 3), \
            (_("executive producers:"), 1), \
            ("Sourceforge.net", 1), \
            ("GNU Savannah", 1), \
            ("Linuxgames.com", 5), \
            (_("cast:"), 1), \
            (adonthell.gamedata_player ().get_name () + _(" - you"), 1), \
            (_("Imoen Silverhair - herself"), 1), \
            (_("Bjarn Fingolson - himself"), 1), \
            (_("Erek Stonebreaker - himself"), 1), \
            (_("Orloth Redwyne - himself"), 1), \
            (_("Alek Endhelm - himself"), 1), \
            (_("Oliver Redwyne - himself"), 1), \
            (_("Talan Wendth - himself"), 1), \
            (_("Jelom Rasgar - himself"), 1), \
            (_("Tristan Illig - himself"), 1), \
            (_("Fellnir Kezular - himself"), 1), \
            (_("Lucia Redwyne - herself"), 1), \
            (_("Rhayne Frostbloom - herself"), 1), \
            (_("Sarin Trailfollower - himself"), 1), \
            (_("Janesta Skywind - herself"), 2), \
            (_("Mrs. Frostbloom's assistant:"), 1), \
            ("Yeti", 2), \
            (_("casting:"), 1), \
            ("Benjamin Walther-Franks", 5), \
            (_("director of photography:"), 1), \
            ("Alexandre Courbot", 2), \
            (_("art director:"), 1), \
            ("James Nash", 2), \
            (_("assistant art director:"), 1), \
            ("Benjamin Walther-Franks", 2), \
            (_("wardrobe:"), 1), \
            ("Benjamin Walther-Franks", 2), \
            (_("props masters:"), 1), \
            ("James Nash", 1), \
            ("Kai Sterker", 2), \
            (_("location managers:"), 1), \
            ("Alexandre Courbot", 1), \
            ("James Nash", 2), \
            (_("grip:"), 1), \
            ("Alexandre Courbot", 5), \
            (_("\"Window\" unit:"), 2), \
            (_("director:"), 1), \
            ("Joel Vennin", 2), \
            (_("assistant director:"), 1), \
            ("Joel Vennin", 2), \
            (_("best boy:"), 1), \
            ("Yeti", 2), \
            (_("runner:"), 1), \
            ("Joel Vennin", 5), \
            (_("music by:"), 1), \
            ("Joseph Toscano", 2), \
            (_("foley artist:"), 1), \
            ("Joseph Toscano", 2), \
            (_("title design:"), 1), \
            ("John Havard", 1), \
            ("James Nash", 2), \
            (_("soundtrack available on:"), 1), \
            ("http://zhaymusic.com/wastesedge/", 5), \
            (_("the Adonthell team wishes to thank:"), 2), \
            ("Al Koskelin", 1), \
            ("Andrew Henderson", 1), \
            ("Chris Harris", 1), \
            ("Mark Howson", 1), \
            ("Dave Peticolas", 1), \
            ("Ryan O'Neil", 1), \
            ("Meandus", 1), \
            ("Deniz Oezsen", 2), \
            (_("The people behind SDL, Ogg Vorbis,"), 1), \
            (_("Python, SWIG and all the other Free"), 1), \
            (_("Software developers whose work"), 1), \
            (_("made Adonthell possible"), 3), \
            (_("career portal:"), 1), \
            ("http://adonthell.linuxgames.com/development/", 5), \
            (_("No Yetis were harmed during\n the production of this game"), 5), \
            (_("presented in"), 2), \
            (_("Ogg Vorbis Stereo"), 1), \
            (_("(where available)"), 14), \
            (_("The END"), 6), \
            (_("Joel, you are fired! ;)"), -1)]

        # -- text colors
        self.colors = ["white", "yellow", "red", "violet", "blue", "green"]

        # -- misc stuff
        self.index = 0
        self.bubble = self.make_bubble()
        self.done = 0

        # -- the images
        self.wall = adonthell.win_image()
        self.wall.load_raw('gfx/cutscene/extro_wall.img')
        self.wall.pack()
        self.wall.thisown = 0

        self.chest = adonthell.win_image()
        self.chest.load_raw('gfx/cutscene/extro_chest.img')
        self.chest.set_mask(1)
        self.chest.move(75, 0)
        self.chest.pack()
        self.chest.thisown = 0

        self.o_bag = adonthell.win_image()
        self.o_bag.load_raw('gfx/cutscene/extro_open_bag.img')
        self.o_bag.pack()
        self.o_bag.thisown = 0

        self.c_bag = adonthell.win_image()
        self.c_bag.load_raw('gfx/cutscene/extro_closed_bag.img')
        self.c_bag.pack()
        self.c_bag.thisown = 0

        self.bjarn = adonthell.win_image()
        self.bjarn.load_raw('gfx/cutscene/extro_bjarn.img')
        self.bjarn.pack()
        self.bjarn.thisown = 0

        # -- set new audio schedule and play extro music
        adonthell.audio_load_background(0, "audio/at-demo-9.ogg")
        adonthell.audio_play_background(0)