mapmarker
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:
Parameter | Type | Description |
---|---|---|
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 level | Area | Xmin | Zmax | Map offset | |
---|---|---|---|---|---|
0 | 0 | Castle of Arx | 4350.00 | 12485.00 | 0.0, -0.5 |
0 | 8 | Council Room | 5150.00 | 11350.00 | 0.0, 0.0 |
0 | 11 | City of Arx | 1444.99 | 11160.00 | 0.0, 77.0 |
0 | 12 | Area 12 | 4931.42 | 13708.70 | 103.0, -2.5 |
1 | 1 | Area 1 | 2573.29 | 12150.60 | 0.0, 0.0 |
1 | 13 | Crystal Caves | 3454.98 | 8359.99 | 21.5, 116.0 |
1 | 14 | Temple of Akbaa | 6777.29 | 12673.80 | 130.0, 0.0 |
2 | 2 | Area 2 | 1701.90 | 13480.00 | 0.0, 4.0 |
2 | 15 | Area 15 | 3750.01 | 12185.80 | 31.0, -3.5 |
3 | 3 | Area 3 | 1715.01 | 13672.10 | -1.0, 0.0 |
3 | 16 | Rebel Camp | 4133.09 | 11300.00 | 70.0, 8.0 |
3 | 17 | Crypt I | 4116.69 | 9373.42 | 83.0, 120.5 |
3 | 20 | Underground Lake | 5640.00 | 9775.00 | 0.0, 0.0 |
4 | 4 | Ylside Bunker | 5537.33 | 12857.20 | 0.0, -7.0 |
4 | 18 | Caves | 3529.35 | 11708.00 | 59.5, 5.5 |
4 | 19 | Crypt II | 3148.38 | 9150.00 | 43.0, 109.0 |
5 | 5 | Area 5 | 1891.48 | 13450.00 | 0.0, 0.0 |
5 | 21 | Crypt III | 4233.66 | 10050.00 | 46.0, 113.0 |
6 | 6 | Mushroom Forest | 1654.94 | 12550.00 | 0.0, 0.0 |
6 | 22 | Crypt IV | 2640.19 | 8464.38 | 7.0, 98.0 |
7 | 7 | Dwarven Mines | 2093.75 | 13056.20 | 0.0, 0.0 |
7 | 23 | Crypt V | 4700.00 | 9595.35 | 51.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]