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.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ VBscript ➜ I have a bit of a scripting problem

I have a bit of a scripting problem

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


Posted by Onyxx   (2 posts)  Bio
Date Tue 08 Jun 2004 12:49 AM (UTC)
Message
I've been trying to figure out a way to count the improvments to the skills I get in my game. After you practice something a line comes up if you have improved your skill at all:

* You think your minor_heal_other skill has improved. *

All of the skills use the same wording except for the skill in question. All I need a script to do would be to count each one because rank increases at different increments, and the farther up the fewer in between.

I used to know a little bit of Vb.net but I don't remember much and would appreicate any help I could get.

Thanks :)

Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #1 on Tue 08 Jun 2004 03:53 AM (UTC)

Amended on Tue 08 Jun 2004 03:54 AM (UTC) by Flannel

Message
Trigger:
\* You think your (\w+) skill has improved\. \*
Flags: Regexp, enabled, whatever else youd like.

Send to: Script

Send:
setvariable "%1", Cint(getvariable "%1")+1

You will have to initially set the variables, they will simply be the name, you CAN add whatever you want (Skill_) infront and such. You can also initially set the variable with triggers, if you have a command that lists your percentages. Also, the variables are case sensetive, you might want to convert to lowercase.

This of course requires scripting to be enabled, and set to VBscript.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by Onyxx   (2 posts)  Bio
Date Reply #2 on Thu 10 Jun 2004 02:35 AM (UTC)
Message
Thanks! That helps a little bit. But it's been a long time since I worked with it and I was hoping maybe I could get a 'sample'?
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #3 on Thu 10 Jun 2004 03:09 AM (UTC)
Message
Well, you can download the scripting help file, theres a link at the top of the Mushclient forum, you can also get a list of the "inbuilt script functions", which is basically the way you get the script to interact with the world, and the mud. They all have examples about how to use them. Unless youre doing complicated stuff, youll be using the MC functions, some basic logic, and some basic arithmetic.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
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.


13,722 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.