|
green2swing Beginner
Joined: 20 Jun 2005 Posts: 10
|
Posted: 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. |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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 |
|
|
|
green2swing Beginner
Joined: 20 Jun 2005 Posts: 10
|
Posted: 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. |
|
|
|
|
|