You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _datafiles/world/empty/rooms/tutorial/901.js
+22-27Lines changed: 22 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,6 @@ function onCommand(cmd, rest, user, room) {
19
19
20
20
teacherMob=getTeacher(room);
21
21
22
-
varextraDelay=0;
23
22
// Make sure they are only doing stuff that's allowed.
24
23
25
24
if(cmd=="south"&&!canGoSouth){
@@ -35,18 +34,15 @@ function onCommand(cmd, rest, user, room) {
35
34
if(teach_commands[commandNow]==fullCommand){
36
35
37
36
teacherMob.Command("say Good job!",1.0);
38
-
extraDelay=1.0;
39
37
40
38
if(cmd=="status"){
41
-
teacherMob.Command('say You can see how much gold you carry, your Level, and even attributes like Strength and Smarts.',2.0);
42
-
teacherMob.Command('say It\'s a lot of information, but you quickly learn to only pay attention to the important stuff.',3.0);
43
-
extraDelay=3.0;
39
+
teacherMob.Command('say You can see how much <ansi fg="yellow">Gold</ansi> you carry, your <ansi fg="yellow">Level</ansi>, and even attributes like <ansi fg="yellow">Strength</ansi> and <ansi fg="yellow">Smarts</ansi>.',1.0);
40
+
teacherMob.Command('say It\'s a lot of information, but you\'ll quickly learn to only pay attention to the important stuff.',1.0);
44
41
}
45
42
46
43
if(cmd=="inventory"){
47
-
teacherMob.Command('say Hmm, it doesn\'t look like you\'re carrying much other than that sharp stick.',2.0);
48
-
teacherMob.Command('say Remember, you can <ansi fg="command">look</ansi> at stuff you\'re carrying any time you want.',3.0);
49
-
extraDelay=3.0;
44
+
teacherMob.Command('say Hmm, it doesn\'t look like you\'re carrying much other than that <ansi fg="item">sharp stick</ansi>.',1.0);
45
+
teacherMob.Command('say Remember, you can <ansi fg="command">look</ansi> at stuff you\'re carrying any time you want.',1.0);
50
46
}
51
47
52
48
commandNow++;
@@ -61,30 +57,27 @@ function onCommand(cmd, rest, user, room) {
61
57
62
58
switch(commandNow){
63
59
case0:
64
-
65
-
if(!user.HasItemId(firstItemId)){
66
-
itm=CreateItem(firstItemId);
67
-
user.GiveItem(itm);
68
-
}
69
-
70
-
teacherMob.Command('say To see all of your characters stats, type <ansi fg="command">status</ansi>.',extraDelay+1.0);
60
+
61
+
teacherMob.Command('say To see all of your characters stats, type <ansi fg="command">status</ansi>.',1.0);
71
62
break;
72
63
case1:
73
-
teacherMob.Command('say To only peek at your inventory, type <ansi fg="command">inventory</ansi>.',extraDelay+1.0);
64
+
teacherMob.Command('say To only peek at your inventory, type <ansi fg="command">inventory</ansi>.',1.0);
74
65
break;
75
66
case2:
76
-
teacherMob.Command('say As you solve quests and defeat enemies in combat, you\'ll gain experience points and your character will "Level up".',extraDelay+1.0);
77
-
teacherMob.Command('say For quick look at your progress, type <ansi fg="command">experience</ansi>.',extraDelay+2.0);
67
+
teacherMob.Command('say As you solve quests and defeat enemies in combat, you\'ll gain experience points and your character will "Level up".',1.0);
68
+
teacherMob.Command('say For quick look at your progress, type <ansi fg="command">experience</ansi>.',1.0);
78
69
break;
79
70
case3:
80
71
teacherMob.Command('emote touches you and you feel more focused.');
81
72
user.GiveBuff(32,"training");
82
-
teacherMob.Command('say Sometimes you might become afflicted with a condition. Conditions can have good or bad effects.',extraDelay+1.0);
83
-
teacherMob.Command('say type <ansi fg="command">conditions</ansi> to see any statuses affecting you.',extraDelay+2.0);
73
+
teacherMob.Command('noop',2);
74
+
teacherMob.Command('say Sometimes you might become afflicted with a condition. Conditions can have good or bad effects (and sometimes both!).',1.0);
75
+
teacherMob.Command('say type <ansi fg="command">conditions</ansi> to see any statuses affecting you.',1.0);
84
76
break;
85
77
case4:
86
78
user.GiveBuff(-32,"training");
87
-
teacherMob.Command('say head <ansi fg="command">south</ansi> for the next lesson.',extraDelay+1.0);
79
+
teacherMob.Command('say Some special conditions might last indefinitely, such as natural abilities like night vision. Others may expire after enough time passes.',1.0);
80
+
teacherMob.Command('say head <ansi fg="command">south</ansi> for the next lesson.',1.0);
88
81
canGoSouth=true;
89
82
room.SetLocked("south",false);
90
83
break;
@@ -103,29 +96,30 @@ function onCommand(cmd, rest, user, room) {
103
96
functiononEnter(user,room){
104
97
room.SetLocked("west",true);
105
98
99
+
100
+
if(!user.HasItemId(firstItemId)){
101
+
itm=CreateItem(firstItemId);
102
+
user.GiveItem(itm);
103
+
}
104
+
106
105
sendWorkingCommands(user);
107
106
108
107
teacherMob=getTeacher(room);
109
108
110
109
teacherMob.Command('emote appears in a '+UtilApplyColorPattern("flash of light!","glowing"));
111
110
112
111
teacherMob.Command('say Hi! I\'m here to teach you about inspecting your characters information.',1.0);
113
-
teacherMob.Command('say To get a detailed view of a LOT of information all at once, type <ansi fg="command">status</ansi> and hit enter.',2.0);
114
-
112
+
teacherMob.Command('say To get a detailed view of a LOT of information all at once, type <ansi fg="command">status</ansi> and hit enter.',1.0);
0 commit comments