|
Setepth Novice
Joined: 17 Dec 2001 Posts: 34 Location: USA
|
Posted: 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! |
|
|
|
Cuttlefish Apprentice
Joined: 28 Oct 2003 Posts: 164
|
Posted: 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. |
|
|
|
Setepth Novice
Joined: 17 Dec 2001 Posts: 34 Location: USA
|
Posted: 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.
|
|
|
|
Cuttlefish Apprentice
Joined: 28 Oct 2003 Posts: 164
|
Posted: 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. |
|
|
|
|
|