Logger Code Object

From City of Hope MUSH
Revision as of 10:26, 22 July 2020 by Arumi (talk | contribs) (Created page with "<code><pre> @create Flux Capacitor=10 &INDEX Flux Capacitor=0 @Ahear Flux Capacitor=think [if(not(strmatch(%n,SGP - Main Globals)),[set(me,[log_][get(me/index)]:%0)][set(me,in...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
@create Flux Capacitor=10
&INDEX Flux Capacitor=0
@Ahear Flux Capacitor=think [if(not(strmatch(%n,SGP - Main Globals)),[set(me,[log_][get(me/index)]:%0)][set(me,index:[add(1,get(me/index))])])]
@Listen Flux Capacitor=*
&CMD_CLEAR Flux Capacitor=$+logger/clear:@emit Clearing Logger.[set(me,index:0)][iter(lattr(me/log_*),[set(me,##:)])]
&CMD_SHOW Flux Capacitor=$+logger/show:think [list([lattr(me/log_*)],get(me/##))]
@Desc Flux Capacitor=OOC: This is Arumi's scene logger. Type +logger/show to see the scene log (could be spammy if the scene's long)
@rxlevel Flux Capacitor= Real
@txlevel Flux Capacitor= Real