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
➜ way out of practice, help please?
way out of practice, help please?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| MReece199D
(11 posts) Bio
|
Date
| Mon 29 Jul 2013 09:41 AM (UTC) |
Message
| 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! | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #1 on Tue 30 Jul 2013 04:44 AM (UTC) |
Message
| |
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,845 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top