-
Notifications
You must be signed in to change notification settings - Fork 0
/
room2.asc
125 lines (107 loc) · 2.39 KB
/
room2.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
// room script file
int timer = 60;
String time_As_string;
function Stick_Look()
{
player.Say("This look like a strong wood stick.");
}
function Stick_Interact()
{
player.Walk(Stick.X , Stick.Y, eBlock);
player.AddInventory(iStick);
Stick.Visible = false;
player.Say("This look like a strong wood stick ");
}
function room_FirstLoad()
{
dOpeneingSamCry.Start();
}
function repeatedly_execute_always()
{
if(IsTimerExpired(1)){
SetTimer(1, 40);
TimerBackground.Visible = true;
Timer.Visible = true;
timer = timer - 1;
}
if(IsTimerExpired(2) && !samIsDead) {
String samBegging[3];
samBegging[0] = "Please.. you dont have to do this!";
samBegging[1] = "Please.. I don't want to die!";
samBegging[2] = "Please don't";
SetTimer(2, 400);
SetTimer(3, 200);
cSam.SayBackground(samBegging[Random(2)]);
}
if(IsTimerExpired(3))
{
cNick.SayBackground("Shoot her already, they are coming!");
}
if(IsTimerExpired(4))
{
cSam.SayBackground("AHH...");
SetTimer(4, 200);
}
if(timer < 60)
{
time_As_string = String.Format("%d", timer);
Timer.Text = time_As_string;
if( timer == 0)
{
//what happens if you are dead?
Display("You are dead");
}
}
}
function cStickOnTree_UseInv()
{
if(player.ActiveInventory == iKnife && !decidedToKillSam)
{
player.Walk(391, 501, eBlock);
cStickOnTree.Visible = false;
Stick.Visible = true;
Display("The stick fell on the ground");
}
else
{
player.Think("I don't need this stick");
}
}
function cStickOnTree_Look()
{
player.FaceObject(cStickOnTree);
player.Think("Looks like a strong stick");
}
function cVine_Look()
{
player.FaceObject(cVine);
player.Think("Looks like a strong vine");
}
function cVine_UseInv()
{
if(player.ActiveInventory == iKnife && !decidedToKillSam)
{
player.Walk(186, 501, eBlock);
cVine.Visible = false;
player.Think("I might be able to use this");
player.AddInventory(iVine);
}
else
{
player.Think("I don't need this vine");
}
}
function room_LeaveLeft()
{
player.ChangeRoom(3, 555, 666);
}
function cStickOnTree_Interact()
{
player.Walk(391, 501, eBlock);
player.Think("I can't pull this off. I need to cut it");
}
function cVine_Interact()
{
player.Walk(186, 501, eBlock);
player.Think("I can't pull this off. I need to cut it");
}