|
saryon Beginner
Joined: 27 Nov 2003 Posts: 13 Location: USA
|
Posted: Tue Jan 06, 2004 11:11 pm
A script I have been working on |
Hi all, I have finished my first script, I think.
What I am wondering, is how efficeint am I being? And what way can I create a script that will work with previous versions of zMUD. I have kind of been creating simple stuff for friends for awhile, and my complicated scripts never work except in my zMUD.
Here is what I have so far.
#ALIAS start {#t+ tokening;startsearch}
#ALIAS stop {#t- tokening}
#ALIAS startsearch {eat pack;get all;f 400.} "tokening"
#TRIGGER {Some unknown magic holds you here.} {c 'gate' delica;#var
gate 1} "tokening"
#TRIGGER {You do not have that item} {get all.pack diku} "tokening"
#TRIGGER {tells you 'Pull that again and I'm gonna kick your ass ..'} {startsearch} "tokening"
#TRIGGER {You step through a shimmering } {#var gate 0} "tokening"
#TRIGGER {You failed} {#if (@gate = 1) {c 'nexus' delica;enter gate} {};#var gate 0} "tokening"
#TRIGGER {I see nothing like that in the diku} {#t- tokening} "tokening"
#TRIGGER {Something Shiny} {#beep;#t- tokening} "tokening"
Can anyone see any huge problems I have overlooked. Initial testing seems to work fine for me, but if anyone else sees anything that may throw up a flag, would you let me know please?
Matt |
|
|
|
Caled Sorcerer
Joined: 21 Oct 2000 Posts: 821 Location: Australia
|
Posted: Thu Jan 08, 2004 4:53 pm |
Without knowing what you're trying to do, its hard to say whether the script will work or not
|
|
|
|
Latent Apprentice
Joined: 19 Aug 2002 Posts: 120 Location: USA
|
Posted: Thu Jan 08, 2004 8:19 pm |
That looks like something I used to do on a mud called Bad Trip where the imms would randomly spread quest tokens throughout the entire mud, so you randomly teleport around looking for tokens
|
|
|
|
saryon Beginner
Joined: 27 Nov 2003 Posts: 13 Location: USA
|
Posted: Sat Jan 17, 2004 7:48 am |
Latent, you are exactly right. Hehe. Who were ya? Maybe I knew you.
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Jan 17, 2004 7:24 pm |
I expect the #TRIGGER, #ALIAS, #VARIABLE, and #IF commands will work on any version of zMUD which your friends are likely to use. The #T+ and #T- commands might not. If you want to ensure compatibility with prior versions, you should probably use a variable scheme (similar to the one you use for gates) to control when these triggers are active.
|
|
|
|
saryon Beginner
Joined: 27 Nov 2003 Posts: 13 Location: USA
|
Posted: Sat Jan 24, 2004 3:06 am |
I will make some modifications to my script, and hopefully in the next week, be able to post it again, as a completed script. I know not many users will know what it is for, however it can be easily adapted for many different schemes of collecting items on a mud.
Thanks for all the help everyone has given me.
Matt |
|
|
|
|
|