|
SoulSkorpion Newbie
Joined: 07 Jan 2003 Posts: 6
|
Posted: Mon Jan 13, 2003 3:46 pm
Need a little help here |
To cut a long story short, I don't have zmud and it won't run on my machine (it simply refuses to. Go figure). Anyway, I'm trying to learn the zMUD scripting language nevertheless so I can write scripts for my guild etc. and so I can convert scripts I've written for MudMaster.
Basically, I need someone to tell me if this script will work:
#SA {vials.txt loaded}
#VA drink 1
#TR {Your mind feels stronger and more alert.} {drink = 0}
#TR {The elixir heals and soothes you.} {drink = 0}
#TR {You may drink another health or mana elixir.} {drink = 1}
#AL drinkvial {#IF {@drink = 0} {#SA {**can't drink healthmana yet!**}} {drink %1}}
#AL dv {drinkvial %1}
When you drink health or mana in the MUD I play you have to wait before you're able to drink again. If you drink before then it has no effect. The script is supposed to stop you drinking before you are able to. The logic of it should work, since it works with MudMaster, but I need to know whether the syntax is correct. Yes, I've read the help files (I worked with them open) but, as I said, I have no way to actually test the script myself. So can someone please tell me if this script will work? If it helps, the MUD in question is Achaea (http://www.achaea.com/).
Thanks.
SoulSkorpion
(btw, I posted this in the wrong forum initially, and was told to post here. Well, here it is :) ) |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Mon Jan 13, 2003 3:56 pm |
The syntax appears to be correct. It should work fine.
Btw, why doesn't zMUD run on your computer. What message does it say?
Kjata |
|
|
|
SoulSkorpion Newbie
Joined: 07 Jan 2003 Posts: 6
|
Posted: Mon Jan 13, 2003 5:04 pm |
Thanks :)
It doesn't show up any messages. It loads for a brief moment, and then nothing happens :) |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Mon Jan 13, 2003 5:49 pm |
Looks like you need one change. The correct syntax for #IF uses parentheses around the expression rather than braces.
#AL drinkvial {#IF (@drink = 0) {#SA {**can't drink healthmana yet!**}} {drink %1}}
LightBulb
Senior Member |
|
|
|
AzCowboy Adept
Joined: 09 Nov 2000 Posts: 222 Location: USA
|
Posted: Mon Jan 13, 2003 6:37 pm |
quote:
Thanks :)
It doesn't show up any messages. It loads for a brief moment, and then nothing happens :)
If you're running Windows 2000 or XP, make sure that the License control service (I think it's lictrl?) isn't disabled... A lot of people seem inclined to go into the services control panel and disable this one for some reason, and it will cause the program to not run in the manner you described. There's more info on this in some of the other posts on here... |
|
|
|
|
|