Get village name? (get map label text)

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
lea
Posts: 301
Joined: October 1st, 2016, 7:25 pm

Get village name? (get map label text)

Post by lea »

is it possible to get the name of the village that was captured in "capture" WML event?
AFAIK the name of the village is a label, similar to labels created by [label] WML tag but could not find anything like [store_label] and [store_locations] does not store labels...
author of: Altered Era/Ruleset (AKA "Altera"), latest version is on add-ons servers for BfW 1.16 and 1.14, latest version also still supports BfW 1.12 and 1.10, 1.10 server is stuck with older buggy version)
User avatar
beetlenaut
Developer
Posts: 2825
Joined: December 8th, 2007, 3:21 am
Location: Washington State
Contact:

Re: Get village name? (get map label text)

Post by beetlenaut »

No, it seems that labels can't be stored. There is a way to do this though. As you place the labels, you can put each location into a container manually, and then check through the container in your capture event.
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
lea
Posts: 301
Joined: October 1st, 2016, 7:25 pm

Re: Get village name? (get map label text)

Post by lea »

this is for labels that I create from WML script with [label] tag.
but I want to get names of villages that were named by random map generator and/or in map editor.
impossible so far?
maybe with lua?
author of: Altered Era/Ruleset (AKA "Altera"), latest version is on add-ons servers for BfW 1.16 and 1.14, latest version also still supports BfW 1.12 and 1.10, 1.10 server is stuck with older buggy version)
Post Reply