|
1 | 1 | [
|
2 | 2 | {
|
3 | 3 | "type": "trap",
|
4 |
| - "id": "tr_tutorial_1", |
| 4 | + "//": "Should be an abstract but traps don't support abstracts rn", |
| 5 | + "id": "tr_tutorial", |
5 | 6 | "name": { "str": "tutorial message", "//~": "NO_I18N" },
|
6 | 7 | "color": "white",
|
7 | 8 | "symbol": "x",
|
|
11 | 12 | "always_invisible": true,
|
12 | 13 | "flags": [ "UNDODGEABLE", "AVATAR_ONLY" ],
|
13 | 14 | "action": "eocs",
|
| 15 | + "eocs": [ "EOC_NONE" ] |
| 16 | + }, |
| 17 | + { |
| 18 | + "type": "trap", |
| 19 | + "id": "tr_tutorial_1", |
| 20 | + "copy-from": "tr_tutorial", |
14 | 21 | "eocs": [ "EOC_LESSON_LOOK" ]
|
15 | 22 | },
|
16 | 23 | {
|
|
27 | 34 | {
|
28 | 35 | "type": "trap",
|
29 | 36 | "id": "tr_tutorial_2",
|
30 |
| - "copy-from": "tr_tutorial_1", |
| 37 | + "copy-from": "tr_tutorial", |
31 | 38 | "eocs": [ "EOC_LESSON_MOVEMENT_MODES" ]
|
32 | 39 | },
|
33 | 40 | {
|
|
44 | 51 | {
|
45 | 52 | "type": "trap",
|
46 | 53 | "id": "tr_tutorial_3",
|
47 |
| - "copy-from": "tr_tutorial_1", |
| 54 | + "copy-from": "tr_tutorial", |
48 | 55 | "eocs": [ "EOC_LESSON_MONSTER_SIGHTED" ]
|
49 | 56 | },
|
50 | 57 | {
|
51 | 58 | "type": "effect_on_condition",
|
52 | 59 | "id": "EOC_LESSON_MONSTER_SIGHTED",
|
| 60 | + "condition": { "math": [ "u_seen_LESSON_MONSTER_SIGHTED != 1" ] }, |
53 | 61 | "effect": [
|
| 62 | + { "math": [ "u_seen_LESSON_MONSTER_SIGHTED = 1" ] }, |
54 | 63 | {
|
55 | 64 | "u_message": "There is a <color_light_cyan>dummy</color> standing before you. Attack it by moving into it.\nYou'll receive a message warning you that safe mode is on. Safe mode prevents certain actions while hostiles are visible and within a certain configurable range as well as preventing you accidently attacking non-hostile creatures. You can turn it off with <keybind:safemode>.\n\nAfter you've dealt with it, please move to the door behind it.",
|
56 | 65 | "popup": true,
|
|
61 | 70 | {
|
62 | 71 | "type": "trap",
|
63 | 72 | "id": "tr_tutorial_4",
|
64 |
| - "copy-from": "tr_tutorial_1", |
| 73 | + "copy-from": "tr_tutorial", |
65 | 74 | "eocs": [ "EOC_LESSON_REACH_ATTACK" ]
|
66 | 75 | },
|
67 | 76 | {
|
68 | 77 | "type": "effect_on_condition",
|
69 | 78 | "id": "EOC_LESSON_REACH_ATTACK",
|
| 79 | + "condition": { "math": [ "u_seen_LESSON_REACH_ATTACK != 1" ] }, |
70 | 80 | "effect": [
|
| 81 | + { "math": [ "u_seen_LESSON_REACH_ATTACK = 1" ] }, |
71 | 82 | {
|
72 | 83 | "u_message": "There is another <color_light_cyan>dummy</color> standing behind the counters. Most melee weapons require standing directly adjacent to your target in order to hit it.\n\nFortunately, some long weapons such as spears are able to perform reach attack with a range of 2 or 3, so if you have one, you don't need to climb onto the counters to stand next to the dummy. The <color_light_cyan>steel spear</color> has a range of 2, so you can hit the dummy right over the counters. To use the reach attack, press the <keybind:fire> key. Once you select your target, press <keybind:CONFIRM> to confirm.\n\nAfter you've dealt with the dummy, please move to the corridor to the south.",
|
73 | 84 | "popup": true,
|
|
78 | 89 | {
|
79 | 90 | "type": "trap",
|
80 | 91 | "id": "tr_tutorial_5",
|
81 |
| - "copy-from": "tr_tutorial_1", |
| 92 | + "copy-from": "tr_tutorial", |
82 | 93 | "eocs": [ "EOC_LESSON_HOLSTERS_WEAR" ]
|
83 | 94 | },
|
84 | 95 | {
|
|
95 | 106 | {
|
96 | 107 | "type": "trap",
|
97 | 108 | "id": "tr_tutorial_6",
|
98 |
| - "copy-from": "tr_tutorial_1", |
| 109 | + "copy-from": "tr_tutorial", |
99 | 110 | "eocs": [ "EOC_LESSON_GUN_LOAD" ]
|
100 | 111 | },
|
101 | 112 | {
|
|
112 | 123 | {
|
113 | 124 | "type": "trap",
|
114 | 125 | "id": "tr_tutorial_7",
|
115 |
| - "copy-from": "tr_tutorial_1", |
| 126 | + "copy-from": "tr_tutorial", |
116 | 127 | "eocs": [ "EOC_LESSON_INVENTORY" ]
|
117 | 128 | },
|
118 | 129 | {
|
|
129 | 140 | {
|
130 | 141 | "type": "trap",
|
131 | 142 | "id": "tr_tutorial_8",
|
132 |
| - "copy-from": "tr_tutorial_1", |
| 143 | + "copy-from": "tr_tutorial", |
133 | 144 | "eocs": [ "EOC_LESSON_FLASHLIGHT" ]
|
134 | 145 | },
|
135 | 146 | {
|
|
146 | 157 | {
|
147 | 158 | "type": "trap",
|
148 | 159 | "id": "tr_tutorial_9",
|
149 |
| - "copy-from": "tr_tutorial_1", |
| 160 | + "copy-from": "tr_tutorial", |
150 | 161 | "eocs": [ "EOC_LESSON_INTERACT" ]
|
151 | 162 | },
|
152 | 163 | {
|
|
163 | 174 | {
|
164 | 175 | "type": "trap",
|
165 | 176 | "id": "tr_tutorial_10",
|
166 |
| - "copy-from": "tr_tutorial_1", |
| 177 | + "copy-from": "tr_tutorial", |
167 | 178 | "eocs": [ "EOC_LESSON_REMOTE_USE" ]
|
168 | 179 | },
|
169 | 180 | {
|
|
180 | 191 | {
|
181 | 192 | "type": "trap",
|
182 | 193 | "id": "tr_tutorial_11",
|
183 |
| - "copy-from": "tr_tutorial_1", |
| 194 | + "copy-from": "tr_tutorial", |
184 | 195 | "eocs": [ "EOC_LESSON_CRAFTING_FOOD" ]
|
185 | 196 | },
|
186 | 197 | {
|
187 | 198 | "type": "effect_on_condition",
|
188 | 199 | "id": "EOC_LESSON_CRAFTING_FOOD",
|
| 200 | + "condition": { "math": [ "u_seen_LESSON_CRAFTING_FOOD != 1" ] }, |
189 | 201 | "effect": [
|
| 202 | + { "math": [ "u_seen_LESSON_CRAFTING_FOOD = 1" ] }, |
190 | 203 | {
|
191 | 204 | "u_message": "Looks like you're hungry! The hunger status is indicated on the sidebar. Let's make a <color_light_cyan>peanut butter sandwich</color> from <color_light_cyan>peanut butter</color> and <color_light_cyan>crackers</color> on the counter next to the wall.\n\nTo make food, you need to use the <color_light_cyan>Crafting</color> menu. Press <keybind:craft> to open the menu. Press <keybind:NEXT_TAB> and <keybind:PREV_TAB> to toggle crafting categories and select the <color_light_cyan>FOOD</color> category. From there, select peanut butter sandwich and press <keybind:CONFIRM> to start crafting.\n\nNote that you don't need to stand directly near the counter to be able to craft. The <color_light_cyan>crafting radius</color> is 6 tiles, so while you're standing no farther than 6 tiles from any crafting components and tools, your character is able to still get them in order to use them.\n\nTo continue the tutorial, please craft the peanut butter sandwich and then eat it by pressing <keybind:eat>.",
|
192 | 205 | "popup": true,
|
|
197 | 210 | {
|
198 | 211 | "type": "trap",
|
199 | 212 | "id": "tr_tutorial_12",
|
200 |
| - "copy-from": "tr_tutorial_1", |
| 213 | + "copy-from": "tr_tutorial", |
201 | 214 | "eocs": [ "EOC_LESSON_CONSTRUCTION" ]
|
202 | 215 | },
|
203 | 216 | {
|
|
214 | 227 | {
|
215 | 228 | "type": "trap",
|
216 | 229 | "id": "tr_tutorial_13",
|
217 |
| - "copy-from": "tr_tutorial_1", |
| 230 | + "copy-from": "tr_tutorial", |
218 | 231 | "action": "none"
|
219 | 232 | },
|
220 | 233 | {
|
221 | 234 | "type": "trap",
|
222 | 235 | "id": "tr_tutorial_14",
|
223 |
| - "copy-from": "tr_tutorial_1", |
| 236 | + "copy-from": "tr_tutorial", |
224 | 237 | "eocs": [ "EOC_LESSON_THROWING" ]
|
225 | 238 | },
|
226 | 239 | {
|
|
237 | 250 | {
|
238 | 251 | "type": "trap",
|
239 | 252 | "id": "tr_tutorial_15",
|
240 |
| - "copy-from": "tr_tutorial_1", |
| 253 | + "copy-from": "tr_tutorial", |
241 | 254 | "eocs": [ "EOC_LESSON_FINALE" ]
|
242 | 255 | },
|
243 | 256 | {
|
|
0 commit comments