Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ General ➜ Counting Kills

Counting Kills

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by DanielNicolai   USA  (3 posts)  Bio
Date Sun 16 Oct 2005 05:20 PM (UTC)
Message
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.
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #1 on Sun 16 Oct 2005 07:33 PM (UTC)
Message
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.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by DanielNicolai   USA  (3 posts)  Bio
Date Reply #2 on Sun 16 Oct 2005 08:53 PM (UTC)
Message
Thanks a million, it works just fine.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


12,981 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.