Counting Kills

Posted by DanielNicolai on Sun 16 Oct 2005 05:20 PM — 3 posts, 16,870 views.

USA #0
I want to make a program/trigger/variables/whatever that will count up from each time I do kill someone and will save when I quit. I can either use a timer or an alias to call the number into action when I need it so that's not needed.

The command I am using to mark that I need to add one to the variable is: * is Dead!

I am sure this is simple, I am just not that good at the VBScripts just yet.
USA #1
Alright, is '* is dead' coming from the server?
I'm assuming it is.

You'll make a trigger with the match text of '* is dead!'

In the send box of the trigger:
setvariable "killcount", CInt(getvariable("killcount"))+1

and you'll need to set the 'sendto' dropdown to 'script'.

and that's all there is to it. You might want to set killcount (a mushclient variable) to 0. But, I don't recall it being necessary.

Of course, you'll need to have VBscript as your scripting engine, and enable it as well.
USA #2
Thanks a million, it works just fine.