-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroom40.asc
152 lines (140 loc) · 3 KB
/
room40.asc
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
// Parkplatz (Police Molest)
/****************************
* Raum-Funktionen
****************************/
function room_Load()
{
String seperator = String.Format("\\ **** Parkplatz");
StopMusic();
PlayAmbientSound(1, 108, 100, 1, 100);
}
/****************************
* Tür-Hotspot-Funktionen
****************************/
/****************************
* Objekt-Funktionen
****************************/
function oWagen73_AnyClick()
{
if (any_click_move(47, 143, eDirectionDown))
{
if (UsedAction(eActWalkTo))
{
}
else if (UsedAction(eActLookAt))
{
Wait(5);
if ( ! cSimpkins.SayIfPlayer("Das ist der mir zugewiesene Streifenwagen.") )
{
player.Say("Wagen 73.");
}
}
else if (UsedAction(eActPickUp))
{
Wait(5);
player.Say("Das ist mir zu schwer.");
}
else if (UsedAction(eActUse) || UsedAction(eActOpen) || UsedAction(eActPull))
{
Wait(5);
if ( player.InventoryQuantity[iFahrzeugschluessel.ID] )
{
PlaySound(50);
Wait(40);
player.Walk(47, 163, eBlock, eAnywhere);
Wait(41);
player.ChangeRoom(41);
PlaySound(78);
}
else
{
player.Say("Ohne den Schlüssel komme ich nicht weiter.");
}
}
else if (UsedAction(eActClose) || UsedAction(eActPush))
{
Wait(5);
player.Say("Der ist schon zu.");
}
else if (UsedAction(eActUseInventory))
{
Wait(5);
if ( player.ActiveInventory == iFahrzeugschluessel )
{
PlaySound(50);
Wait(40);
player.Walk(47, 163, eBlock, eAnywhere);
Wait(41);
player.ChangeRoom(41);
PlaySound(78);
}
else
{
player.Say("Ohne den Schlüssel komme ich nicht weiter.");
}
}
else Unhandled();
}
}
function oWagen78_AnyClick()
{
if (any_click_move(47, 143, eDirectionUp))
{
if (UsedAction(eActWalkTo))
{
}
else if (UsedAction(eActLookAt))
{
Wait(5);
player.Say("Wagen 78.");
}
else if (UsedAction(eActPickUp))
{
Wait(5);
player.Say("Der ist mir zu schwer.");
}
else if (UsedAction(eActUse) || UsedAction(eActOpen) || UsedAction(eActPull))
{
Wait(5);
player.Say("Das ist nicht meiner.");
}
else if (UsedAction(eActClose) || UsedAction(eActPush))
{
Wait(5);
player.Say("Die Türen sind ordnungsgemäß verschlossen.");
}
else if (UsedAction(eActUseInventory))
{
Wait(5);
player.Say("Das bringt nichts.");
}
else Unhandled();
}
}
/****************************
* Hotspot-Funktionen
****************************/
function hEingang_AnyClick()
{
player.FaceDirection(eDirectionRight);
if (UsedAction(eActWalkTo))
{
any_click_move(320, 138, eDirectionRight);
}
else if (UsedAction(eActLookAt))
{
Wait(5);
player.Say("Da geht es zum Präsidiums-Eingang.");
}
else
{
Unhandled();
}
}
/****************************
* Regionen-Funktionen
****************************/
function region1_WalksOnto()
{
player.ChangeRoom(16, 10, 135, eDirectionRight);
}