At this moment I am having issues finding code that loads a single static map from initialisation. The ToME module is long and complex and I haven't really made heads or tails on how it is loading static maps. I have downloaded a module to compare but am not sure it is even using static maps. The documentation on static maps via TileEd, while did explain what the data/maps/[insert_city_name].lua file format is like, so I do not have trouble understanding this.
Main issue is just doing a trivial:
farm.lua (copy/paste from ToME module with modifications):
Code: Select all
defineTile('^', "HARDMOUNTAIN_WALL")
defineTile('#', "HARDWALL")
quickEntity('<', {show_tooltip=true, name='portal back', display='<', color=colors.WHITE, change_level=1, change_zone=game.player.last_wilderness, image="terrain/stone_road1.png", add_displays = {mod.class.Grid.new{image="terrain/worldmap.png"}},}, nil, {type="portal", subtype="back"})
defineTile(".", "GRASS")
defineTile("t", {"TREE","TREE2","TREE3","TREE4","TREE5","TREE6","TREE7","TREE8","TREE9","TREE10","TREE11","TREE12","TREE13","TREE14","TREE15","TREE16","TREE17","TREE18","TREE19","TREE20"})
defineTile('*', "ROCK")
defineTile('~', "FOUNTAIN")
defineTile('-', "FIELDS")
defineTile('_', "COBBLESTONE")
defineTile('2', "HARDWALL", nil, nil, "JEWELRY")
defineTile('4', "HARDWALL", nil, nil, "ALCHEMIST")
defineTile('5', "HARDWALL", nil, nil, "LIBRARY")
defineTile('6', "HARDWALL", nil, nil, "STAVES")
defineTile('@', "GRASS", nil, "SUPREME_ARCHMAGE_LINANIIL")
defineTile('T', "GRASS", nil, "TARELION")
startx = 2
starty = 4
return [[
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^........................................--------^
^...@....................................--------^
^........................................--------^
^........................................ttt.....^
^..........................***...........ttt.....^
^..........................***...................^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
]]
Thanks.