OOC:Page Colors
The following attributes add a few things, most notably the ability to change how you see the color of a specific person's incoming/outgoing pages. If no color is set for the paging player, then the default color of white is used. A small command exists within the allow you to quickly return a page of the last person to page you and everyone included, to do this, simply type "lp <text>".
Syntax:
&OUTPAGEFORMAT me=[setq(0,default(me/PAGEFORMAT`[first(%3)],hw))][ansi(%q0,%4)] &PAGEFORMAT me=[setq(0,default(me/PAGEFORMAT`%#,hw))][ansi(%q0,%4)][attrib_set(me/LASTPAGEDBY,%#[if(t(setr(0,remove(%3,%!))),%b%q0)])] &CMD`LASTPAGE me=$LP *: PAGE v(LASTPAGEDBY)=%0 @set me/LASTPAGEDBY=QUIET
To set a custom color to a player, you first must lookup their dbref number, to do this type: "think pmatch(<player>)" and from there...
&PAGEFORMAT`<dbref> me=<custom color>
An example of setting colors would go like...
&PAGEFORMAT`#4508 me=#e066ff &PAGEFORMAT`#823 me=+springgreen3 &PAGEFORMAT`#12164 me=xterm26 &PAGEFORMAT`#106 me=hr
This will set the paging colors for Miyako, Allya, Artel, and Yuriko using hex, name, xterm, and standard ansi codes respectively.
The entered color for that player can be any of the 16 standard ansi colors, or if set, the available 256 colors- for further help with this, see help ansi and help xterm256.
If you'd like a command to quickly see who has what color by simply typing "pageformat"...:
&CMD`PAGEFORMAT me=$PAGEFORMAT: THINK [table(iter(sort(lattr(me/PAGEFORMAT`)),[ansi(v(%i0),name(after(%i0,`)))] %([v(%i0)]%),,|),23,78,|)]
If you're using any of the $-commands within this file, please make sure you're set !no_command (@set me=!NO_COMMAND).