way out of practice, help please?

Posted by MReece199D on Mon 29 Jul 2013 09:41 AM — 2 posts, 17,433 views.

#0
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!
Australia Forum Administrator #1
I would recommend Lua these days. Most of the examples scripts and plugins are in that. Something to get you started:

http://www.gammon.com.au/forum/bbshowpost.php?bbtopic_id=120