[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  VBscript
. . -> [Subject]  way out of practice, help please?
Home  |  Users  |  Search  |  FAQ
Register forum user name
Forgotten password?

way out of practice, help please?

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

Posted by MReece199D   (11 posts)  [Biography] bio
Date Mon 29 Jul 2013 09:41 AM (UTC)
Okay so, along time ago, I wanna say 06 maybe 07 a friend of mine introduced me to VBscripting for mud systems on mushclient by giving me a copy of his script file. I was enthralled, I tore it to pieces and dissected it like crazy for about 6 months and began to use what I learned to build my own system which ended up running beautifully and which did wonders for my characters combat abilities within the game.

I had quit playing for a good few years and ended up lossing that script and no longer have contact with anyone else who still uses VB and the friend who showed me his script no longer has his in VB either and I haven't scripted in probably 4 or 5 years so I don't really remember much of how to do it.

I've started playing my favorite mud again recently and am appalled to learn that most of the systems being sold to our players are now running in the range of about $100 real usd and that kinda makes me sick...

So I decided I'd try to develop a simple but effective system that I can put on our game's forums for free use.
However again, I can't really remember the exact script to get my project going.

What I was hoping to find here was a simple sample that I could get started with and then either figure out the rest, or maybe start another thread later when I'm stumped again.

What I need from this sample would be how to script a list of variables and triggers so that the triggers do a check of a variable and then react based on the variables status, like say I have a trigger for when someone say afllicts me with say ignorance (which is cured using a potion of wisdom) and I have a variable to track my potion balance and want it to check if I have the balance and if so cure it (and edit the variable to note that I don't have balance as a result) and if not wait and then cure it when I have the balance. I would also need to know how to track a balance with a variable since my game only sends a line when I recover potion balance not when I lose it...

If someone could help me out with a short and simple example of such a script with perhaps some basic explanation of how the code works I'd be eternally greatful to be able to start work on my new system!

Thanks in advance!
[Go to top] top

Posted by Nick Gammon   Australia  (21,607 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Tue 30 Jul 2013 04:44 AM (UTC)
I would recommend Lua these days. Most of the examples scripts and plugins are in that. Something to get you started:


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] 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.


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

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]