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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Setepth
Novice


Joined: 17 Dec 2001
Posts: 34
Location: USA

PostPosted: Fri Nov 21, 2003 2:06 am   

count?
 
Hi all,

Would like to develop a count command that will count up how many times this event is exposed on my screen and save it to a database (only the number of times) to continue adding on. Its to certify the amount of times i did it for someone else. So if you can, help me out. The current event im trying to count is:

You shovel a spadeful of dirt out of the tunnel.

Thanks!
Reply with quote
Cuttlefish
Apprentice


Joined: 28 Oct 2003
Posts: 164

PostPosted: Fri Nov 21, 2003 2:48 am   
 
You need to provide a little more info. Like do you have a specific database you want to save it to (better question might be - what exactly do you mean "save it to a database"). Do you want it to maintain the same value when you close zMUD and reopen it, etc.

Your starting point would be:

#TRIGGER {You shovel a spadeful of dirt out of the tunnel.} {#ADD shovelcount 1}

This would add 1 to the variable each time you saw the response.
Reply with quote
Setepth
Novice


Joined: 17 Dec 2001
Posts: 34
Location: USA

PostPosted: Fri Nov 21, 2003 3:12 am   
 
just want to have it save somewhere for viewing later. Dont really care if its in a database or not.
Reply with quote
Cuttlefish
Apprentice


Joined: 28 Oct 2003
Posts: 164

PostPosted: Fri Nov 21, 2003 5:22 am   
 
Later viewing while you're still connected to the mud and haven't closed zMUD?

Or do you want it to save the value even if you've closed zMUD and reopened it?

Cause the complexity of the answer is directly proportional to your needs. If the answer to the first question is Yes and the second one No, then the trigger I already posted will work. It will store the value into the variable @shovelcount.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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