Difference between revisions of "Logger Code Object"

From City of Hope MUSH
Jump to navigation Jump to search
(Undo revision 215620 by Arumi (talk) Might need)
Tag: Undo
Line 6: Line 6:
 
@Ahear Flux Capacitor=think [if(not(strmatch([stripansi([%0])],[*<OOC>*])),[set(me,[log_][get(me/index)]:[iter(%0,[trim(edit(itext(),%t,),b)],%r,%r)])][set(me,index:[add(1,get(me/index))])])]
 
@Ahear Flux Capacitor=think [if(not(strmatch([stripansi([%0])],[*<OOC>*])),[set(me,[log_][get(me/index)]:[iter(%0,[trim(edit(itext(),%t,),b)],%r,%r)])][set(me,index:[add(1,get(me/index))])])]
 
@Listen Flux Capacitor=*
 
@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/##)[%r])]
 
 
@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)
 
@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
 
@rxlevel Flux Capacitor= Real

Revision as of 03:48, 31 August 2020

This is a work in progress. When I feel more comfortable with it, I'll polish it up for others to use.

@create Flux Capacitor=10
&INDEX Flux Capacitor=0
@Ahear Flux Capacitor=think [if(not(strmatch([stripansi([%0])],[*<OOC>*])),[set(me,[log_][get(me/index)]:[iter(%0,[trim(edit(itext(),%t,),b)],%r,%r)])][set(me,index:[add(1,get(me/index))])])]
@Listen Flux Capacitor=*
@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