-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInfo Files.txt
More file actions
32 lines (24 loc) · 3.97 KB
/
Info Files.txt
File metadata and controls
32 lines (24 loc) · 3.97 KB
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
@@ Dependencies: Info Lib
@skip isdbref(tag(setr(1,info)))={@assert/inline isdbref(globalroom())=@pemit %#=ERROR: No global room set!;@assert/inline isdbref(setr(0,create(Info Files,,t)))=@pemit %#=ERROR: Could not create code object: %q0;@set %q0=INDESTRUCTIBLE;@tag/add %q1=%q0;@tel %q0=globalroom();@parent %q0=#info_lib}
&CMD.INFO #info=$^(?s)(?\:\+)(info|inf)(?\:/(\\S+)?)?(?\: +(.+?))?(/(.+?)?)?(?\:=(.*))?$:@attach %!/DO_INFO
@set #info/CMD.INFO=regexp
&INFO.ATTR #info=INFO
&INFO.NAME #info=Info
&INFO.PLURAL #info=Info
&INFO.CMD #info=+INFO
&INFO.CMD_SHORT #info=+info
@skip isdbref(tag(setr(1,priv_info)))={@assert/inline isdbref(globalroom())=@pemit %#=ERROR: No global room set!;@assert/inline isdbref(setr(0,create(Private Info Files,,t)))=@pemit %#=ERROR: Could not create code object: %q0;@set %q0=INDESTRUCTIBLE;@tag/add %q1=%q0;@tel %q0=globalroom();@parent %q0=#info_lib}
&CMD.+PINFO #priv_info=$^(?s)(?\:\+)?(pinfo|pinf)(?\:/(\\S+)?)?(?\: +(.+?))?(/(.+?)?)?(?\:=(.*))?$:@attach %!/DO_INFO
@set #priv_info/CMD.+PINFO=regexp
&INFO.ATTR #priv_info=PINF
&INFO.NAME #priv_info=Private Info
&INFO.PLURAL #priv_info=Private Info
&INFO.CMD #priv_info=+PINFO
&INFO.CMD_SHORT #priv_info=+pinfo
&INFO.INIT #priv_info=th setq(!,1,private)
&INFO.DECOMP #priv_info=cor(strmatch(objid(%0),objid(%1)),gtebittype(%1,2))
@@ CHARACTER - +INFO
&HLP.INFO #info=The Info system allows Players to store notes about their character. These notes can be used for a number of things, such as tracking details of resources, backgrounds, cheat sheets, or other notes that might be several paragraphs in length. Anything stored in +info is visible to ALL PLAYERS. If you want private files, use +pinfo (the commands are the same.)%R%R[ansi(hc,Concepts)]%R[ansi(h,infonames)] - Info files can't be very long\, may not contain special characters\, and are not case sensitive.%R[ansi(h,filelists)] - Some commands let you specify a list of files. Seperate their names with | symbols\, such as file1|file2.%R[ansi(h,locked)] - Locked files have been verified by staff and are read-only.%R%R[ansi(hc,Managing Infos)]%R[ansi(h,+info <infoname>=<text>)]%R%TCreates or replaces an info file.%R%R[ansi(h,+info/summary <infoname>=<text>)]%R%TSet a file's summary.%R%R[ansi(h,+info/delete <filelist>)]%R%TDeletes a file or series of files.%R%R[ansi(h,+info/rename <infoname>=<newname>)]%R%TRenames Info files.%R%R[ansi(hw,+info/order <infoname>=<#>)]%R%TSpecifies optional intended listing/viewing order. This affects listing in various commands.%R%R[ansi(hw,+info/reorder <info1>|<info2>|<info3>...)]%R%TReorder multiple files at once. This WIPES all manually set /order values and sets the given files to 1, 2, 3, and so on.%R%R[ansi(hc,Viewing Infos)]%R[ansi(h,+info)]%R%TShow all of your Info files.%R%R[ansi(h,+info <filelist>)]%R%TDisplay an info's contents.%R%R[ansi(h,+info <player>)]%R%TShow a player's visible files.%R%R[ansi(h,+info <player>/<filelist>)]%R%TDisplay a player's info contents.%R%R[ansi(h,+info/all \[<player>\])]%R%TQuick way to read all files.%R%RUse the /get switch as you would reading files to retrieve a decompile'd version for easy editing.%R%RIf your File name matches a player's\, you will have to use +info <yourname>/<filename> to set or view it.
+help/add Character/+info=#info/HLP.INFO
&SHLP.INFO #info=Staff are able to see, create, edit, delete, rename, and otherwise manage +info and +pinfo files on any character. The commands work the same as for players via <name>/<filename>.%R%R[ansi(hc,Staff Commands)]%R[ansi(h,+info/lock <player>/<filelist>)]%R%TLock one or more info files.%R%R[ansi(h,+info/unlock <player>/<filelist>)]%R%TUnlock one or more info files.%R%R[ansi(h,+info/lset <player>/<file>=<contents>)]%R%TWorks just like setting an +info file but locks it simultaneously.%R%RLocked files cannot be edited by players. This is useful for 'approved information' depending on the game.%R%R[ansi(h,+info/lockall <player>)]%R[ansi(h,+info/unlockall <player>)]%R%TLocks/unlocks all files.
+shelp/add Character/+info=#info/SHLP.INFO