-
Notifications
You must be signed in to change notification settings - Fork 0
/
DontUnderstand.as
38 lines (36 loc) · 987 Bytes
/
DontUnderstand.as
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
class DontUnderstand {
function DontUnderstand() {
}
static function parse(rm) {
var _loc2 = Game.tp;
if (_loc2.is("inventory")) {
rm.put(GameState.getInvString());
return;
}
if ((_loc2.isGo("north")) || (_loc2.isGo("south")) || (_loc2.isGo("west")) || (_loc2.isGo("east"))) {
rm.put("You try to go that way but end up floating into a wall. Bonk.");
return;
}
switch (Math.floor(Math.random()*3)) {
case 0 :
if (GameState.inControl != "stlunko") {
rm.put("You obviously can\'t do that. Try something else.");
} else {
rm.put("You obviously cannot do that. Try something else.");
}
break;
case 1 :
rm.put("That command made my stummy hurt. Keep try.");
break;
case 2 :
if (GameState.inControl != "stlunko") {
rm.put("That\'s a stupid idea. Try something else.");
} else {
rm.put("That is a stupid idea. Try something else.");
}
break;
default :
break;
}
}
}