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
knuffel
Wanderer


Joined: 12 Jul 2002
Posts: 73

PostPosted: Mon Nov 04, 2002 11:22 pm   

Add 1 to roomnum and walk there ?
 
Hi,

I have another little question that is probably very obvious but I don't see to manage correctly.


What I would like to do is the following ...

I want the current %roomnum and add 1 to it and walk there, perform some actions and if they are done trigger the same response and go to the next roomnumber within a range ...

I unfortunately always end up in a loop or nothing happens ...

So something like

#If %roomnum is between 1000 and 10010
#VAR zdir %roomnum () + 1
#WALK zdir
execute alias
#abort 1

// the above doesn't make sense but I just don't wanna get you all a heartstroke with what I have been trying the last days to figure it out.


Greetz
Knuff
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Nov 05, 2002 12:59 am   
 
#IF ((%roomnum() > 999) AND (%roomnum() < 10011)) {#MATH zdir {%roomnum() + 1};#WALK @zdir;alias}

LightBulb
Senior Member
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