-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathactionCommands.js
More file actions
37 lines (33 loc) · 954 Bytes
/
Copy pathactionCommands.js
File metadata and controls
37 lines (33 loc) · 954 Bytes
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
var ActionCommands = {};
ActionCommands.look = function() {
if (App.player.target) {
var msg = "you see "+ App.player.target.nameThe() +": "+ App.player.target.desc;
App.player.target.onLookedAt();
Screens.print(msg, true);
} else {
var msg = "look at what?";
Screens.print(msg, true);
}
Screens.refresh();
};
ActionCommands.offerRespect = function() {
if (App.player.target) {
var msg = "you bow to "+ App.player.target.nameThe() +" in an offer of respect";
Screens.print(msg, true);
App.player.target.onRespectOffered();
} else {
var msg = "Offer respect to what?";
Screens.print(msg, true);
}
Screens.refresh();
};
ActionCommands.take = function() {
if (App.player.target) {
var msg = "You awkwardly try to pickup "+ App.player.target.nameThe() +" and fail";
Screens.print(msg, true);
} else {
var msg = "Take what?";
Screens.print(msg, true);
}
Screens.refresh();
}