Manipulating map labels?

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
esci
Posts: 42
Joined: September 4th, 2006, 12:07 am

Manipulating map labels?

Post by esci »

WML allows one to place a new map label with the [label] tag, but I don't see a way to otherwise manipulate them. Does anyone know of a way to find / filter for / change existing labels on the map, either via WML or Lua?
Original creator of the campaign Descent Into Darkness
Currently working on Cities of the Frontier
User avatar
pyrophorus
Posts: 533
Joined: December 1st, 2010, 12:54 pm

Re: Manipulating map labels?

Post by pyrophorus »

Hi !

If you want to change a label on the map, you only have to overload it with a new [label] tag, same coordinates, new text.
If you problem is to retrieve them later, you should use a container variable to store their coordinates.

HTH
esci
Posts: 42
Joined: September 4th, 2006, 12:07 am

Re: Manipulating map labels?

Post by esci »

Thanks, pyrophorus, that's what I needed. I had thought about storing the data in a variable, but didn't know you could overwrite existing labels.
Original creator of the campaign Descent Into Darkness
Currently working on Cities of the Frontier
Post Reply