Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
saryon
Beginner


Joined: 27 Nov 2003
Posts: 13
Location: USA

PostPosted: 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
Reply with quote
Caled
Sorcerer


Joined: 21 Oct 2000
Posts: 821
Location: Australia

PostPosted: 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 Wink
Reply with quote
Latent
Apprentice


Joined: 19 Aug 2002
Posts: 120
Location: USA

PostPosted: 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
Reply with quote
saryon
Beginner


Joined: 27 Nov 2003
Posts: 13
Location: USA

PostPosted: Sat Jan 17, 2004 7:48 am   
 
Latent, you are exactly right. Hehe. Who were ya? Maybe I knew you.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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.
Reply with quote
saryon
Beginner


Joined: 27 Nov 2003
Posts: 13
Location: USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net