Worldmap
The mapper manual lists the functions world_map_x_pos
and world_map_y_pos
, which supposedly return the player’s x and y positions on the world map. get_world_map_x/y_pos
are included here anyway, because I was unable to get those original functions to work, or even to find any evidence that they existed in game.
Функции
- get_world_map_x_pos
- get_world_map_y_pos
- in_world_map
- set_terrain_name
- set_town_title
- set_world_map_pos
get_world_map_x_pos
int get_world_map_x_pos()
get_world_map_y_pos
int get_world_map_y_pos()
in_world_map
bool in_world_map
Returns 1 if the player is looking at the world map, or 0 at any other time. Obviously this is only useful in global scripts, since normal scripts will never get the chance to run on the world map.
set_terrain_name
void sfall_func3("set_terrain_name", int x, int y, string name)
Overrides the terrain type name for the sub-tile on the world map by the specified coordinates.
set_town_title
void sfall_func2("set_town_title", int areaID, string title)
Sets a floating text for a town on the world map when hovering the cursor over the player’s marker.
- areaID: the ID number of the town from city.txt
set_world_map_pos
void set_world_map_pos(int x, int y)