-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathskyline.scc
executable file
·88 lines (68 loc) · 2.72 KB
/
skyline.scc
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/* ScummC
* Copyright (C) 2008 Alban Bedel, Gerrit Karius
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#include <scummVars6.s>
#include "common.sch"
#include "officeroom.sch"
#include "actors.sch"
#include "imuse.sch"
actor ufoActor;
room Skyline {
image = "graphics/rooms/skyline.bmp";
cost ufoCost = "ufo.cost";
sound introMusic = "midi/intro2.soun";
local script entry() {
cutscene(0) {
try {
soundKludge([imSetMasterVolume, 127]); // Volume Maxi
startMusic(introMusic); // Lire la musique
soundKludge([imClearQueue]);
setCurrentActor(ufoActor);
initActor();
setActorCostume(ufoCost);
setActorTalkPos(-60,-70);
setActorName("Ufo");
setActorWalkSpeed(2,1);
setActorTalkColor(ZIF_COLOR);
setActorWidth(20);
setActorIgnoreBoxes();
setActorAnimSpeed(4);
putActorAt(ufoActor,-50,80,Skyline);
walkActorTo(ufoActor, 140, 80);
waitForActor( ufoActor );
actorSay(ufoActor, "These are the coordinates.");
waitForMessage();
//delay(39);
actorSay(ufoActor, "Ensign, bring the teleportation device online.");
soundKludge([imPlayerSetHook, introMusic, hkJump, 2]); // Set Hook 2 (jump id 0x02 on byte 6 in MIDI sysex)
waitForMessage();
delay(250);
}
override {
if(VAR_OVERRIDE) {
actorSay(0xFF, ""); //stopTalking();
screenEffect(0x8186);
} else {
screenEffect(0x8686);
}
}
}
soundKludge([imPlayerFade, introMusic, 0, 250]);
soundKludge([imStopSound, introMusic]); // stopper musique
soundKludge([imClearQueue]);
startRoom(OfficeRoom);
}
}