Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Sat Aug 09, 2008 5:44 am   

235 - preference adjustment from within a script
 
I would like to toggle the timestamp checkbox in preferences on and off, with say, an alias.

I'm not really sure where to start.
_________________
Athlon 64 3200+
Win XP Pro x64
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Sun Aug 10, 2008 2:57 pm   
 
I don't think this can be done programmatically at this time.
_________________
Asati di tempari!
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Aug 10, 2008 7:49 pm   
 
Actually, it can be done.

#ALIAS timeon {#CALL %pref(showtime,1)}
#ALIAS timeoff {#CALL %pref(showtime,0)}

If you're talking about logging timestamps, then:

#ALIAS logtimeon {#CALL %pref(LogSaveTime,1)}
#ALIAS logtimeoff {#CALL %pref(LogSaveTime,0)}

Hope this helps!

Charneus

As an aside, if you want delta time, just do #CALL %pref(deltatime, 1) as well to the showtime.
Reply with quote
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: Mon Aug 11, 2008 8:20 am   
 
Thanks Charneus!

Personally I just leave the stamps there all the time, but I've just convinced another cmud user from Aetolia to clean up his system, the first step being removing #sayp %time(etc)

But he insists on being able to toggle them on/off, for whatever reason.
_________________
Athlon 64 3200+
Win XP Pro x64
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net