[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[adonthell-wastesedge-commits] Release_0-3-1 00147c0 211/237: IMPROVED S
From: |
Kai Sterker |
Subject: |
[adonthell-wastesedge-commits] Release_0-3-1 00147c0 211/237: IMPROVED Silverhair's schedule |
Date: |
Mon, 25 Jul 2016 18:15:13 +0000 (UTC) |
tag: Release_0-3-1
commit 00147c0645a122de384f7e2902aad64a20718645
Author: adondev <adondev>
Commit: adondev <adondev>
IMPROVED Silverhair's schedule
IMPORVED events.py
FIXED audio schedule
---
scripts/init.py | 1 -
scripts/modules/events.py | 4 ++--
scripts/schedules/audio/in_game.py | 28 +++++++++++--------------
scripts/schedules/mapcharacters/extro.py | 9 +++++++-
scripts/schedules/mapcharacters/silverhair.py | 3 ++-
5 files changed, 24 insertions(+), 21 deletions(-)
diff --git a/scripts/init.py b/scripts/init.py
index e22dfb5..1c1198d 100755
--- a/scripts/init.py
+++ b/scripts/init.py
@@ -808,7 +808,6 @@ class title_screen:
ev.set_script ("teleport", (0, 20, 12, STAND_EAST))
lm.add_event (ev)
-
# From veranda to silverhair
ev = enter_event ()
ev.thisown = C
diff --git a/scripts/modules/events.py b/scripts/modules/events.py
index 60b5d6e..b98ebba 100755
--- a/scripts/modules/events.py
+++ b/scripts/modules/events.py
@@ -22,8 +22,8 @@ def switch_submap (mychar, x, y, submap, dir):
else:
schedule_active = 0
- # -- comparing mychar and player directly does not work (???)
- if mychar.get_name () == adonthell.gamedata_player ().get_name ():
+ # -- only fade for the player
+ if mychar.get_id () == "Player":
# -- fade the new submap in if we teleport the player
adonthell.gamedata_engine ().fade_out ()
mychar.jump_to (x, y, submap, dir)
diff --git a/scripts/schedules/audio/in_game.py
b/scripts/schedules/audio/in_game.py
index 43ae5fb..7490063 100644
--- a/scripts/schedules/audio/in_game.py
+++ b/scripts/schedules/audio/in_game.py
@@ -18,31 +18,27 @@ import adonthell
class in_game:
def __init__ (self):
- self.next_song = -1
+ pass
# -- method called everytime a song has finished playing
# load song before playing, as the mixer seems to discard it
# after it's been played once
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:
- # -- resume with the song that played before entering
- if self.next_song != 2 and song != 2: self.next_song = song
-
adonthell.audio_load_background (2, "audio/at-demo-7.ogg")
adonthell.audio_play_background (2)
- # -- right after leaving Silverhair's room
- elif self.next_song >= 0:
- adonthell.audio_fade_in_background (self.next_song, 500)
- self.next_song = -1
-
- # -- otherwise just loop at-demo-5 and at-demo-6
+ # -- 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:
- if song == 0:
- adonthell.audio_load_background (1, "audio/at-demo-6.ogg")
- adonthell.audio_play_background (1)
- else:
- adonthell.audio_load_background (0, "audio/at-demo-5.ogg")
- adonthell.audio_play_background (0)
+ adonthell.gamedata_get_quest ("demo").set_val ("music", 0)
+ adonthell.audio_load_background (0, "audio/at-demo-5.ogg")
+ adonthell.audio_play_background (0)
diff --git a/scripts/schedules/mapcharacters/extro.py
b/scripts/schedules/mapcharacters/extro.py
index 1ca2944..3d6ee9f 100644
--- a/scripts/schedules/mapcharacters/extro.py
+++ b/scripts/schedules/mapcharacters/extro.py
@@ -164,7 +164,7 @@ class extro:
("Ogg Vorbis Stereo", 1), \
("(where available)", 15), \
("The END", 6), \
- ("Joel, you're fired! ;)", -1)]
+ ("Joel, you are fired! ;)", -1)]
# -- text colors
self.colors = ["white", "yellow", "red", "violet", "blue", "green"]
@@ -233,6 +233,13 @@ class extro:
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
diff --git a/scripts/schedules/mapcharacters/silverhair.py
b/scripts/schedules/mapcharacters/silverhair.py
index b237b12..50dc591 100755
--- a/scripts/schedules/mapcharacters/silverhair.py
+++ b/scripts/schedules/mapcharacters/silverhair.py
@@ -56,7 +56,8 @@ class silverhair:
else:
say = randint (33, 66) * 10
delay = randint (100, 200) * 35
- myself.set_goal (4, 4, STAND_SOUTH)
+ if myself.set_goal (4, 4, STAND_SOUTH) == 0:
+ return
myself.set_val ("say_something", say)
myself.set_val ("delay", delay)
- [adonthell-wastesedge-commits] Release_0-3-1 25cd3d4 153/237: Improved Eyes, (continued)
- [adonthell-wastesedge-commits] Release_0-3-1 25cd3d4 153/237: Improved Eyes, Kai Sterker, 2016/07/25
- [adonthell-wastesedge-commits] Release_0-3-1 bb956f2 196/237: ADDED shutdown, Kai Sterker, 2016/07/25
- [adonthell-wastesedge-commits] Release_0-3-1 9a4da9a 234/237: ADDED ability to build RPM package, Kai Sterker, 2016/07/25
- [adonthell-wastesedge-commits] Release_0-3-1 7e2a6c6 157/237: FIXED some bugs, Kai Sterker, 2016/07/25
- [adonthell-wastesedge-commits] Release_0-3-1 bc3ef93 217/237: ADDED PLAYING file, Kai Sterker, 2016/07/25
- [adonthell-wastesedge-commits] Release_0-3-1 3502543 201/237: added running alek., Kai Sterker, 2016/07/25
- [adonthell-wastesedge-commits] Release_0-3-1 e74fdec 226/237: ADDED music to the extro, Kai Sterker, 2016/07/25
- [adonthell-wastesedge-commits] Release_0-3-1 dc927e9 184/237: FIXED some problems with the extro, Kai Sterker, 2016/07/25
- [adonthell-wastesedge-commits] Release_0-3-1 8d71e77 171/237: FINISHED extro dialogue, Kai Sterker, 2016/07/25
- [adonthell-wastesedge-commits] Release_0-3-1 b1e9ee0 231/237: FORGOT to distribute one schedule, Kai Sterker, 2016/07/25
- [adonthell-wastesedge-commits] Release_0-3-1 00147c0 211/237: IMPROVED Silverhair's schedule,
Kai Sterker <=
- [adonthell-wastesedge-commits] Release_0-3-1 f8fcdd6 218/237: FIXED music link in extro, Kai Sterker, 2016/07/25
- [adonthell-wastesedge-commits] Release_0-3-1 da8d94a 168/237: Completed intro sequence, Kai Sterker, 2016/07/25
- [adonthell-wastesedge-commits] Release_0-3-1 7b9766b 237/237: FIXES to configure Adonthell for Solaris, Kai Sterker, 2016/07/25
- [adonthell-wastesedge-commits] Release_0-3-1 40be0c6 014/237: Added two dialogues, Kai Sterker, 2016/07/25
- [adonthell-wastesedge-commits] Release_0-3-1 e3409db 177/237: CHANGED sfx, Kai Sterker, 2016/07/25
- [adonthell-wastesedge-commits] Release_0-3-1 c82deb8 163/237: ADDED more 'gimmicks', Kai Sterker, 2016/07/25
- [adonthell-wastesedge-commits] Release_0-3-1 83261fc 112/237: FIXED installation of character_screen.py, Kai Sterker, 2016/07/25
- [adonthell-wastesedge-commits] Release_0-3-1 0adcb1b 204/237: REMIXED some songs, Kai Sterker, 2016/07/25
- [adonthell-wastesedge-commits] Release_0-3-1 fc01b86 192/237: FIXED typo, Kai Sterker, 2016/07/25
- [adonthell-wastesedge-commits] Release_0-3-1 21f8167 183/237: FIXED a few small bugs, Kai Sterker, 2016/07/25