MAP

From OHRRPGCE-Wiki
Jump to navigation Jump to search

The MAP lump holds general info about every map. The size of the records is stored in BINSIZE.BIN. The number of records equals the number of maps.

Formal Specs[edit]

About Formal Specs

0 INT default map tileset (for layers that don't specify otherwise)
1 INT ambient music (-1 = same as last map, 0 = off, or music_num + 1)
2 INT minimap available (0 = no, 1 = yes)
3 INT save anywhere (0 = no, 1 = yes)
4 INT display map name for (n) ticks (0= don't display)
5 INT map edge mode (0=Crop,1=wrap,2=use default edge tile)
6 INT default edge tile
7 INT autorun Plotscript Trigger
8 INT script argument
9 INT harm-tile damage (or heal) amount, in HP
10 INT harm-tile flash (0=none)
11 INT foot offset. +n = down n pixels. -n = up n pixels
12 INT after-battle Plotscript Trigger
13 INT instead-of-battle Plotscript Trigger
14 INT each-step Plotscript Trigger
15 INT on-keypress Plotscript Trigger
16 INT Hero/npc draw order:

0=Heroes over NPCs
1=NPCs over Heroes
2=Together (recommended)

17 INT .N and .D lump loading:

0=load from state file if available
1=load+save state file when leaving
2=ignore state files

18 INT .T and .P lump loading:

0=load from state file if available
1=load+save state file when leaving
2=ignore state files

19 INT Bitsets:

0-14 - Layers 1-15 enabled

20 INT RSAV x offset
21 INT RSAV y offset
22-24 INT * 3 Layers 0-2 tilesets: 0=use default, x > 0 = tileset x - 1
25 INT Number of NPC instances in L lump
26-30 INT * 5 Layers 3-7 tilesets: 0=use default, x > 0 = tileset x - 1
31 INT Number of map layers drawn below NPCs and heroes, 0 means default to 2
32 INT Default NPC movement zone
33 INT Default NPC avoidance zone
34-369 VSTR(1i+40b=21i) * 16 Map layer names
370-377 INT * 8 Layers 8-15 tilesets: 0=use default, x > 0 = tileset x - 1
378 INT Default NPC pathfinding obstruction rules. (can be overridden by individual npcs)

0=Default (same as 1)
1=Treat obstructing NPCs as walls
2=Treat obstructing NPCs as passable
3=Treat non-moving obstructing NPCs as high-cost terrain (This incomplete feature is not in nightlies)

379 INT Main menu available (1 = no, 0 = yes)