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
Sapphiremagus
Newbie


Joined: 13 Jul 2001
Posts: 6

PostPosted: Wed Jul 14, 2004 6:59 am   

Simple script for a newbie
 
Hey all. I'm a new builder on a new mud and I was hoping that Zmud could help make my life a tad bit easier. Trouble is, I don't know how. I know next to nothing about the higher features/functions of Zmud.

Here's what I'm looking for: I want to be able to enter a low vnum and a high vnum, and goto each vnum from low to high. This way I can populate my area quickly and save a little bit of time. Is there a way to do this?
Reply with quote
hykou
Wanderer


Joined: 29 Apr 2004
Posts: 63
Location: USA

PostPosted: Wed Jul 14, 2004 8:12 am   
 
what mud is it, and what is the vnum system... 5 numbers or 3, or what ever... give some more info
Reply with quote
Sapphiremagus
Newbie


Joined: 13 Jul 2001
Posts: 6

PostPosted: Wed Jul 14, 2004 8:16 am   
 
Sorry, the MUD is called Legubrious Enclave. It's just begun development so I doubt anyone's heard of it. It's running a Smaug base, the most recent release I believe. The vnums I'm working with are 4 digit (ex: 1300, 1200, 1529, etc), but can be anywhere from 1 (I think) to 5 digits.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Jul 14, 2004 6:45 pm   
 
Start in the low-number room. Use a variable to keep track of which room you are in, and add 1 (or whatever increment is appropriate) for each move. If desired, compare it to the high number.
#AL lowhigh {#VAR here %1;#VAR high %2;goto %1}
#AL next {#ADD here %1;#IF (@here <= @high) {goto @here} {#SAY Done.}}

#VARIABLE, #ALIAS, #IF, #ADD, #SAY. These are all fairly basic features.
_________________
LightBulb
Senior member

Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious.
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