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
green2swing
Beginner


Joined: 20 Jun 2005
Posts: 10

PostPosted: Wed Jun 22, 2005 3:15 am   

setting Vars one after the next
 
How would I set up something that would look when I look at a door it make that @door1 but the next time I look at a door it would make it @door2 and so on up to 6 doors?

The way I have it now is I can run a set pattern that will look at all the doors but the doors change after each reboot. I have it where it will echo the door name for each door when seen but then I have to go in to setup the vars.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Wed Jun 22, 2005 8:57 am   
 
You would have to use a counter variable. Lets say DoorNo, to help automate things it should be set with a default.
#VAR DoorNo {1} {1}
Now when using it to assign your variables you do:
#VAR {door@{DoorNo}} {text}
Finally you can use #ADD to increment your counter.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
green2swing
Beginner


Joined: 20 Jun 2005
Posts: 10

PostPosted: Wed Jun 22, 2005 11:40 am   
 
Do not think that is what I'm looking for - I need to be able to call upon lets say door3 and have it know it as metal or wooden which ever it is.

door1 = metal
door2 = wooden
door3 = straw
door4 = stone

As I said I want to be able to look at the doors and have it remember what type of door each door is till the next boot and I will look at them again.
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