
03-27-2006, 09:45 PM
|
|
Banned
|
 |
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
|
|
|
First, you'll want to initialize the rooms.
You could either use an array, such as this.rooms, or you could use a list of strings such as this.room1, this.room2, this.room3
Personally, I'd use a list of arrays.
this.room1 = {owneraccount,islocked,isowned};
this.room2 = {owneraccount,islocked,isowned};
For example.. this.room14 = {"Yen",0,0};
The owner is me, Yen.
The room is unlocked.
I don't own the room.
I could then access each piece of data with this.room14[#]
this.room14[0] is the owner, this.room14[1] is whether it's locked, this.room14[2] is whether it's owned or not.
You'll be using makevar() a lot.
i.e. makevar("this.room" @ room)[0] |
|
|
|