ID:179210
 
What would the code look like to start in a room?
Daemon5532 wrote:
What would the code look like to start in a room?

Depends on what you want.

A room can be made with just 2 icons.
- Floor
- Wall
- Door (if u want a way out)

The code for that would look like this:
turf
floor
icon = 'floor.dmi'
wall
icon = 'wall.dmi' // Name of the icon file
density = 1 // Make it so no one can pass
opacity = 1 // Make it so you can not see beyond

Then all you need to do after you make the 2 icons and create a map, and because you have coded them they will appear on the left menu under turfs. Just select and fill/add them to the map area to make your room.

OR........

If you meant area wise, you could set up a room var under area. Say for a text only MUD game.

area
var room
room_1
room = 1
room_2
room = 2

etc..

You could also add addtional conditions or things under each room.

LJR