mapmarker

From Arx Libertatis Wiki
Jump to navigation Jump to search

The mapmarker script command is used to add a marker to the map. The can only be one map marker for each localization key - trying to add a second one only changes the position of the existing marker.

Usage

mapmarker <x*> <y*> <maplevel*> <textkey>
mapmarker -r <textkey>

Context: Ignored

Flags:

 -r: Remove the marker instead of adding it

Parameters:

ParameterTypeDescription
x number or variable 2D x-position on the map
y number or variable 2D y-position on the map
maplevel int or variable Map level to add the marker to
textkey text Localization key for the label to show when hovering over the marker

The text key can optionally start and end with [] brackets, which are ignored.

Map levels

Map levelAreaXminZmaxMap offset
00Castle of Arx4350.0012485.000.0, -0.5
08Council Room5150.0011350.000.0, 0.0
011City of Arx1444.9911160.000.0, 77.0
012Area 124931.4213708.70103.0, -2.5
11Area 12573.2912150.600.0, 0.0
113Crystal Caves3454.988359.9921.5, 116.0
114Temple of Akbaa6777.2912673.80130.0, 0.0
22Area 21701.9013480.000.0, 4.0
215Area 153750.0112185.8031.0, -3.5
33Area 31715.0113672.10-1.0, 0.0
316Rebel Camp4133.0911300.0070.0, 8.0
317Crypt I4116.699373.4283.0, 120.5
320Underground Lake5640.009775.000.0, 0.0
44Ylside Bunker5537.3312857.200.0, -7.0
418Caves3529.3511708.0059.5, 5.5
419Crypt II3148.389150.0043.0, 109.0
55Area 51891.4813450.000.0, 0.0
521Crypt III4233.6610050.0046.0, 113.0
66Mushroom Forest1654.9412550.000.0, 0.0
622Crypt IV2640.198464.387.0, 98.0
77Dwarven Mines2093.7513056.200.0, 0.0
723Crypt V4700.009595.3551.5, 119.0

Map positions

Given a 3D world position (X, Y, Z) in an area with scene extends Xmin, Zmax and map offset (oX, oY) loaded from graph/levels/mini_offsets.ini you can calculate the matching 2D map position (x, y) as:

x = (X - Xmin) * 0.0390625 + oX * 2.5390625
y = (Zmax - Z) * 0.0390625 + oY * 2.4218750

Used markers

The following map markers are used in the game:

mapmarker 100 100 1 [goblinlord_warning]
mapmarker 169 110 1 [addmarker_human_throne_room]
mapmarker 183 194 7 [addmarker_treasure_gob]
mapmarker 195 390 1 [description_miguel]
mapmarker 196 127 4 [addmarker_pathway_snake]
mapmarker 20 385 1 [description_gary]
mapmarker 237 62 1 [addmarker_falan_room]
mapmarker 276 390 3 [addmarker_human_access]
mapmarker 312 174 6 [addmarker_temple_illusions]
mapmarker 333 260 4 [description_alia]
mapmarker 348 22 1 [addmarker_human_access]
mapmarker 365 305 1 [description_tafiok]
mapmarker 404 390 1 [description_maria]
mapmarker 469 320 6 [addmarker_elder_shield]
mapmarker 500 50 1 [addmarker_secret_temple]