-
Notifications
You must be signed in to change notification settings - Fork 0
/
Arm.tin
414 lines (372 loc) · 14.1 KB
/
Arm.tin
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
#nop **** MarshallDFXs TinTin++ Armageddon MUD script ****
#nop Special thanks to player nauta who originally posted a tintin++ script which I
#nop took and run with.
#nop MarshalDFX source: https://github.com/mdfx01/ArmageddonMUD/
#nop **** Strangeloop's TinTin++ Armageddon MUD script ****
#nop Special thanks to MarshalDFX for sharing his as a starting point :)
#nop Please note, I have removed some of MarshalDFX's code/features to customize
#nop for myself, feel free to add them together and make this your own
#nop This script assumes you have an Armageddon folder in your home directory (~/)
#zap Armageddon;
#echo {Starting Arm.}
#script {armdir} {armdir=$(echo ~/Armageddon); mkdir -p "$armdir" && echo "$armdir"}
#variable {armdir} {$armdir[1]}
#CONFIG {AUTO TAB} {5000}
#CONFIG {BUFFER SIZE} {1000000}
#CONFIG {CHARSET} {UTF-8}
#nop Reduced to 16 for simplicity, controlling colors via terminal settings is
#nop faster, albiet significantly more limiting in terms of color options
#nop going with a more is less approach here.
#CONFIG {COLOR MODE} {ANSI}
#nop Disabled due to bug in RECEIVED OUTPUT EVENT
#nop May cause some color leakage so you need to reset colors at line endings
#nop #CONFIG {COLOR PATCH} {ON}
#CONFIG {COMMAND COLOR} {$CMD}
#CONFIG {COMMAND ECHO} {ON}
#CONFIG {COMPACT} {OFF}
#CONFIG {CONNECT RETRY} {15.0}
#CONFIG {HISTORY SIZE} {1000}
#CONFIG {LOG MODE} {HTML}
#CONFIG {MOUSE} {ON}
#CONFIG {PACKET PATCH} {0.50}
#CONFIG {REPEAT CHAR} {!}
#CONFIG {REPEAT ENTER} {OFF}
#CONFIG {SCREEN READER} {OFF}
#CONFIG {SCROLL LOCK} {ON}
#CONFIG {SPEEDWALK} {ON}
#CONFIG {TELNET} {ON}
#CONFIG {TINTIN CHAR} {#}
#CONFIG {VERBATIM} {OFF}
#CONFIG {VERBATIM CHAR} {\}
#CONFIG {VERBOSE} {OFF}
#CONFIG {WORDWRAP} {ON}
#MACRO {\t} {#cursor tab list scrollback caseless forward}
#nop -------------------------------------------------------------------------
#nop CUSTOM PATHDIRs: these are necessary for mapping when you want the map
#nop or automapper to follow you into enterable objects like tents
#nop you may need to add to this list.
#nop -------------------------------------------------------------------------
#PATHDIR {d} {u} {32}
#PATHDIR {e} {w} {2}
#PATHDIR {n} {s} {1}
#PATHDIR {s} {n} {4}
#PATHDIR {u} {d} {16}
#PATHDIR {w} {e} {8}
#PATHDIR {ne} {sw} {3}
#PATHDIR {nw} {se} {9}
#PATHDIR {se} {nw} {6}
#PATHDIR {sw} {ne} {12}
#PATHDIR {enter village} {leave}
#PATHDIR {enter tent} {leave}
#PATHDIR {enter 2.tent} {leave}
#PATHDIR {enter stand} {leave}
#PATHDIR {enter stall} {leave}
#PATHDIR {enter booth} {leave}
#PATHDIR {enter building} {leave}
#PATHDIR {enter pavilion} {leave}
#PATHDIR {enter ranch} {leave}
#PATHDIR {enter warehouse} {leave}
#PATHDIR {enter hovel} {leave}
#PATHDIR {enter emporium} {leave}
#PATHDIR {enter encampment} {leave}
#PATHDIR {enter pen} {leave}
#PATHDIR {enter hut} {leave}
#PATHDIR {enter fortress} {leave}
#PATHDIR {enter corral} {leave}
#PATHDIR {enter stairway} {leave}
#alias {up} {u}
#alias {down} {d}
#alias {west} {w}
#alias {east} {e}
#alias {north} {n}
#alias {south} {s}
#alias {out} {leave}
#alias {so} {s}
#alias {no} {n}
#alias {do} {d}
#nop -------------------------------------------------------------------------
#nop SOUNDS ALERTS: Uses default bell command which should system beep
#nop experiences may vary depending on what system/terminal you use
#nop -------------------------------------------------------------------------
#action {beeps you.$}
{
#bell
}
#action {^A foreign}
{
#bell
}
#action {^SYSTEM:}
{
#bell
}
#nop -------------------------------------------------------------------------
#nop MOUSE NAV: can click in input bar to move cursor and use scroll wheel for
#nop the buffer. Issue is right-click-paste doesn't work. use shift+rght clk
#nop -------------------------------------------------------------------------
#EVENT {SCROLLED MOUSE WHEEL DOWN}
{
#buffer down 4
}
#EVENT {SCROLLED MOUSE WHEEL UP}
{
#buffer up 4
}
#nop -------------------------------------------------------------------------
#nop PROMPT/INFOBAR: InstallInfobar installs prompt and new arm default colors
#nop use ManaOff or ManaOn to disable/enable mana in the infobar
#nop -------------------------------------------------------------------------
#alias {installinfobar} {InstallInfobar}
#alias {installprompt} {InstallInfobar}
#alias {myprompt} {InstallInfobar}
#alias {InstallInfobar}
{
#nop PROMPT_time_day_hunger_thirst_drunk_mood_LINEONE;
#nop PROMPT_hp_maxhp_stamina_maxstamina_stun_maxstun_focus_maxfocus_mana_maxmana_armed_position_LINETWO;
#nop PROMPT_encumbrance_speed_riding_accent_language_scan_listen_LINETHREE;
#send {prompt PROMPT_%e_%d_%u_%U_%R_%O_LINEONE\\nPROMPT_%h_%H_%v_%V_%t_%T_%x_%X_%m_%M_%A_%s_LINETWO\\nPROMPT_%E_%w_%k_%a_%o_%p_%P_LINETHREE\\n};
change color none;
change color fg_room_name bred;
change color fg_room_exits bwhite;
change color fg_object $GAME_OBJECT;
change color fg_char $GAME_CHARACTER;
change color emphasize on;
pagelength 100;
}
#alias {ManaOff}
{
#variable mana off;
#echo Hiding mana values
}
#alias {manaoff} {ManaOff}
#alias {ManaOn}
{
#variable mana on;
#echo Displaying mana values
}
#alias {manaon} {ManaOn}
#nop cval is for colour highlighting of stat values
#alias {cval}
{
#variable %3 %1;
#math {p_h} {%1.00 / %2.00};
#if {$p_h <= 0.80 && $p_h > 0.70}
{
#variable {%3} {${INFO}${%3}${RESET}}
};
#elseif {$p_h <= 0.70 && $p_h > 0.55}
{
#variable {%3} {${MEDIUM}${%3}${RESET}}
};
#elseif {$p_h <= 0.55 && $p_h > 0.25}
{
#variable {%3} {${HIGH}${%3}${RESET}}
};
#elseif {$p_h <= 0.25}
{
#variable {%3} {${CRITICAL}${%3}${RESET}}
}
}
#function {timeicon} {
#local {result} {};
#switch {"%1"} {
#case {"before dawn"} #format {result} {${FG_BMAGENTA}%s %n${RESET}} {} {%1};
#case {"dawn"} #format {result} {${FG_BYELLOW}%s %n${RESET}} {} {%1};
#case {"early morning"} #format {result} {${FG_YELLOW}%s %n${RESET}} {} {%1};
#case {"late morning"} #format {result} {${FG_WHITE}%s %n${RESET}} {} {%1};
#case {"high sun"} #format {result} {${FG_BWHITE}%s %n${RESET}} {} {%1};
#case {"early afternoon"} #format {result} {${FG_RED}%s %n${RESET}} {} {%1};
#case {"late afternoon"} #format {result} {${FG_BRED}%s %n${RESET}} {} {%1};
#case {"dusk"} #format {result} {${FG_MAGENTA}%s %n${RESET}} {} {%1};
#case {"late at night"} #format {result} {${FG_MAGENTA}%s %n${RESET}} {} {%1};
#default #format {result} {%1 unhandled time};
};
#return $result
}
#function {foodicon} {
#local {result} {};
#switch {"%1"} {
#case {"stuffed"} #format {result} {${FG_BCYAN} %n${RESET}} {%1};
#case {"full"} #format {result} {${FG_GREEN} %n${RESET}} {%1};
#case {"satisfied"} #format {result} {${FG_BGREEN} %n${RESET}} {%1};
#case {"peckish"} #format {result} {${FG_YELLOW} %n${RESET}} {%1};
#case {"little hungry"} #format {result} {${FG_BYELLOW} %n${RESET}} {%1};
#case {"hungry"} #format {result} {${FG_MAGENTA} %n${RESET}} {%1};
#case {"very hungry"} #format {result} {${FG_BMAGENTA} %n${RESET}} {%1};
#case {"starving"} #format {result} {${FG_RED} %n${RESET}} {%1};
#case {"near death"} #format {result} {${FG_BRED} %n${RESET}} {%1};
#default #format {result} {%1 unhandled hunger};
};
#return $result
}
#function {thirsticon} {
#local {result} {};
#switch {"%1"} {
#case {"not thirsty"} #format {result} {${FG_BGREEN} %n${RESET}} {%1};
#case {"little thirsty"} #format {result} {${FG_GREEN} %n${RESET}} {%1};
#case {"thirsty"} #format {result} {${FG_YELLOW} %n${RESET}} {%1};
#case {"very thirsty"} #format {result} {${FG_BYELLOW} %n${RESET}} {%1};
#case {"parched"} #format {result} {${FG_RED} %n${RESET}} {%1};
#case {"dehydrated"} #format {result} {${FG_BRED} %n${RESET}} {%1};
#default #format {result} {%1 unhandled thirst};
};
#return $result
}
#function {drunkicon} {
#local {result} {};
#switch {"%1"} {
#case {"sober"} #format {result} {${FG_BGREEN} %n${RESET}} {%1};
#case {"tipsy"} #format {result} {${FG_GREEN} %n${RESET}} {%1};
#case {"buzzed"} #format {result} {${FG_YELLOW} %n${RESET}} {%1};
#case {"drunk"} #format {result} {${FG_BYELLOW} %n${RESET}} {%1};
#case {"very drunk"} #format {result} {${FG_RED} %n${RESET}} {%1};
#case {"wasted"} #format {result} {${FG_BRED} %n${RESET}} {%1};
#case {"blackout drunk"} #format {result} {${FG_BLACK} %n${RESET}} {%1};
#default #format {result} {%1 unhandled drunk};
};
#return $result
}
#function {armedicon} {
#local {result} {};
#switch {"%1"} {
#case {"armed"} #format {result} {${FG_YELLOW} %n${RESET}} {%1};
#case {"unarmed"} #format {result} {${FG_WHITE} %n${RESET}} {%1};
#default #format {result} {%1 unhandled weapons};
};
#return $result
}
#function {stanceicon} {
#local {result} {};
#switch {"%1"} {
#case {"standing"} #format {result} {${FG_BGREEN} %n${RESET}} {%1};
#case {"sitting"} #format {result} {${FG_CYAN} %n${RESET}} {%1};
#case {"resting"} #format {result} {${FG_BLUE} %n${RESET}} {%1};
#case {"sleeping"} #format {result} {${FG_MAGENTA} %n${RESET}} {%1};
#case {"fighting:%*"} #format {result} {${FG_RED} %n${RESET}} {%1};
#default #format {result} {%1 unhandled stance};
};
#return $result
}
#function {weighticon} {
#local {result} {};
#switch {"%1"} {
#case {"very light"} #format {result} {${FG_GREEN} %n${RESET}} {%1};
#case {"no problem"} #format {result} {${FG_BGREEN} %n${RESET}} {%1};
#case {"light"} #format {result} {${FG_CYAN} %n${RESET}} {%1};
#case {"easily manageable"} #format {result} {${FG_BCYAN} %n${RESET}} {%1};
#case {"manageable"} #format {result} {${FG_BWHITE} %n${FG_YELLOW}} {%1};
#case {"heavy, but manageable"} #format {result} {${FG_BYELLOW} %n${RESET}} {%1};
#case {"very heavy"} #format {result} {${FG_RED} %n${RESET}} {%1};
#case {"VERY heavy"} #format {result} {${FG_BRED} %n${RESET}} {%1};
#case {"extremely heavy"} #format {result} {${FG_MAGENTA} %n${RESET}} {%1};
#case {"unbelievably heavy"} #format {result} {${FG_BMAGENTA} %n${RESET}} {%1};
#default #format {result} {%1 unhandled weight};
};
#return $result
}
#function {speedicon} {
#local {result} {};
#switch {"%1"} {
#case {"sneaking"} #format {result} {${FG_BLUE} %n${RESET}} {%1};
#case {"walking"} #format {result} {${FG_WHITE} %n${RESET}} {%1};
#case {"running"} #format {result} {${FG_YELLOW} %n${RESET}} {%1};
#default #format {result} {%1 unhandled speed};
};
#return $result
}
#function {ridingicon} {
#local {result} {};
#switch {"%1"} {
#case {"riding: none"} #format {result} {};
#default #format {result} { ${FG_WHITE} %n${FG_BWHITE}} {%1};
};
#return $result
}
#function {listenicon} {
#local {result} {};
#switch {"%1"} {
#case {"Listen"} #format {result} { ${FG_CYAN} %sing${RESET}} {%1};
#default #format {result} {};
};
#return $result
}
#function {scanicon} {
#local {result} {};
#switch {"%1"} {
#case {"Scan"} #format {result} { ${FG_CYAN} %sing${RESET}} {%1};
#default #format {result} {};
};
#return $result
}
#nop top bar
#action {PROMPT_%1_%2_%3_%4_%5_%6_LINEONE}
{
#format {clearline} {%+200s};
#showme {$clearline} {2} {3};
#format {lineone} { %s on %n %s %s %n %n} {@timeicon{%1}} {%2} {@foodicon{%3}} {@thirsticon{%4}} {@drunkicon{%5}} {%6};
#showme {${RESET}$lineone} {2} {3};
}
{1}
#nop bottom bar
#action {PROMPT_%1_%2_%3_%4_%5_%6_%7_%8_%9_%10_%11_%12_LINETWO}
{
#format {clearline} {%+200s};
#showme {$clearline} {-4} {3};
cval {%1} {%2} {h};
cval {%3} {%4} {v};
cval {%5} {%6} {t};
cval {%7} {%8} {f};
cval {%9} {%10} {m};
#if {"$mana" == "off"}
{
#showme { ${FG_BRED}${RESET} ${h}/%2 ${FG_BGREEN}${RESET} ${v}/%4 ${FG_BYELLOW}${RESET} ${t}/%6 ${FG_BMAGENTA}${RESET} ${f}/%8 @armedicon{%11} @stanceicon{%12}} {-4} {3}
};
#else
{
#showme { ${FG_BRED}${RESET} ${h}/%2 ${FG_BGREEN}${RESET} ${v}/%4 ${FG_BYELLOW}${RESET} ${t}/%6 ${FG_BMAGENTA}${RESET} ${f}/%8 ${FG_BBLUE}${RESET} ${m}/%10 @armedicon{%11} @stanceicon{%12}} {-4} {3}
}
}
{1}
#nop bottom bar
#action {PROMPT_%1_%2_%3_%4_%5_%6_%7_LINETHREE}
{
#format {clearline} {%+200s};
#showme {$clearline} {-3} {3};
#format {linethree} { @weighticon{%1} @speedicon{%2}@ridingicon{%3} %n %n${RESET}@scanicon{%6}@listenicon{%7}} {%4} {%5};
#showme {${RESET}$linethree} {-3} {3};
}
{1}
#gag {PROMPT_%*_LINEONE}
#gag {PROMPT_%*_LINETHREE}
#gag {PROMPT_%*_LINETWO}
#nop Note when creating splits lines without text will be box drawing characters
#nop 3 lines on top
#nop 4 lines on bottom
#nop 85 columns for map
#split 3 4 0 -85
#nop Must come first******************************
#read {$armdir/Login.tin};
#read {$armdir/Map.tin};
#script {logdir} {mkdir -p $armdir/ArmLogs; cd $armdir/ArmLogs; pwd}
#variable {logdir} {$logdir[1]}
#format {logfile} {$logdir/%t.html} {%Y-%m-%d}
#log append $logfile;
#nop *********************************************
#nop Constants used throughout the scripts
#read {$armdir/Globals.tin};
#alias {rlglobals} { #read {$armdir/Globals.tin} }
#nop General highlighting
#read {$armdir/HL.tin};
#alias {rlhl} { #read {$armdir/HL.tin} }
#nop PC names
#read {$armdir/PCs.tin};
#alias {rlpc} { #read {$armdir/PCs.tin} }
#nop External help file reading in second terminal
#read {$armdir/Help.tin};
#nop Accumulate repeated lines into one line
#nop #read {$armdir/Accumulator2.tin};
#alias {rlacc} { #read {$armdir/Accumulator2.tin} }
#read {$armdir/Alias.tin};
#alias {rlalias} { #read {$armdir/Alias.tin} }
#nop reload it all
#alias {reconnect} {#read $armdir/Arm.tin}