-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCORE 05 - Config System.txt
45 lines (32 loc) · 2.25 KB
/
CORE 05 - Config System.txt
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
@@ Core
@cmdquota me=99999
@skip isdbref(tag(setr(1,conf)))={@assert/inline isdbref(globalroom())=@pemit %#=ERROR: No master_room set!;@assert/inline isdbref(setr(0,create(Config System,,t)))=@pemit %#=ERROR: Could not create code object %q1: %q0;@set %q0=INDESTRUCTIBLE !NO_COMMAND;@tag/add %q1=%q0;@tel %q0=globalroom()}
&CMD.GLOBALCONFIG #conf=$^(?s)(?\:\+)(globalconfig)(?\:/(\\S+)?)?(?\: +(.+?))?(?\:=(.*))?$:@assert/inline gtebittype(%#,5)=@pemit %#=error();@attach #inc/GET_SWITCHES=%2;@attach %!/SW.[strfirstof(%q<switch>,MAIN)]=trim(%3),trim(%4)
@set #conf/CMD.GLOBALCONFIG=regexp
&FN.LIST_CONFIGS #conf=setunion(iter(lattrp(%0/CONFIG.*.*),elementsmux(%i0,2,.),%b,|),,|,|,i)
&CONFIG.PERM #conf=@assert/inline gtebittype(%#,6)=@pemit %#=Permission denied.
&CONFIG.ALERTLEVEL.DESC #conf=bittype()>=this to hear staff alerts.
&CONFIG.ALERTLEVEL.DEFAULT #conf=4
&CONFIG.ALERTLEVEL.TYPE #conf=POSINT
&CONFIG.BORDER.DESC #conf=Color for header/footer/boxes.
&CONFIG.BORDER.DEFAULT #conf=m
&CONFIG.BORDER.TYPE #conf=COLOR
&CONFIG.HDRSTAR.DESC #conf=Color for header *
&CONFIG.HDRSTAR.DEFAULT #conf=hm
&CONFIG.HDRSTAR.TYPE #conf=COLOR
&CONFIG.HDRTEXT.DESC #conf=Color for header text
&CONFIG.HDRTEXT.DEFAULT #conf=hw
&CONFIG.HDRTEXT.TYPE #conf=COLOR
&CONFIG.COLUMN.DESC #conf=Color for column names
&CONFIG.COLUMN.DEFAULT #conf=g
&CONFIG.COLUMN.TYPE #conf=COLOR
&CONFIG.REQAPPROVAL.DESC #conf=Game requires use of approval system?
&CONFIG.REQAPPROVAL.DEFAULT #conf=1
&CONFIG.REQAPPROVAL.TYPE #conf=BOOL
&CONFIG.EMAIL.DESC #conf=Game's public email, for relevant messages?
&CONFIG.EMAIL.DEFAULT #conf=
&CONFIG.EMAIL.TYPE #conf=WORD
&SW.MAIN #conf=@if strlen(%0)={@assert/inline gtebittype(%#,6)=@pemit %#=Permission denied.};@attach #inc/CONFIG=%0,%1,%!
@@ Help stuffs.
&SHLP.GAMECONFIG #conf=The Global Configuration affects softcoded config options that affect the whole game.%R%R[ansi(hc,Commands)]%R%R[ansi(hw,+globalconfig)]%R%TDisplay current configuration.%R%R[ansi(hw,+globalconfig <option>=<value>)]%R%TSet an option.%R%R[ansi(hc,Extending)]%RIf you @decompile #conf you'll see the attributes beginning with &CONFIG.<type>. create more of those to add more options. The .TYPE fields must align with VALID_<type> found on #inc.
+shelp/add Configuration/+globalconfig=#conf/SHLP.GAMECONFIG