ID:155875
 
I just have a question about these world variables.

It seems from experimenting that no matter what, if you want to use a map you have to initiate the map in someway before runtime, either through setting maxx and maxy or actually creating a map. If you do this then you can adjust these variables during runtime to change the maps size.

Example (This works):
world
maxx = 1
maxy = 1

turf/grass
text = "#"

client
verb
Set_Map()
world.maxx = 10
world.maxy = 10
new/turf/grass(locate(10,1,1))
view = 10


However, if you don't setup a map at runtime, there is nothing you can do to initialize the map.

Example (this doesn't work-no map initialization):
turf/grass
text = "#"

client
verb
Set_Map()
world.maxx = 10
world.maxy = 10
new/turf/grass(locate(10,1,1))
view = 10


Now I know this isn't a big deal and I can work around any issue with this. I am just wondering out of curiosity if there is a way to initialize a map at runtime.
It works fine for me.
client/verb
setMax(x as num, y as num)
world.maxx = x
world.maxy = y
if(x && y)
world.maxz = 1
src << view
mob.loc = locate(1,1,1)
setView(x as num)
view = x
turf/icon = 'icon.dmi'

I'm using just that.

Don't forget to change the view and to put the client eye somewhere where you can see things, hence my line mob.loc=locate(1,1,1)

If you don't have a map initially, client view seems to be 0x0
In response to Loduwijk (#1)
I think I see my problem... I wasn't setting world.maxz to anything.