Get village name? (get map label text)

The place to post your WML questions and answers.

Moderators: Forum Moderators, Developers

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

Get village name? (get map label text)

Post by lea » June 4th, 2017, 3:41 pm

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 (on add-ons servers for BfW 1.14, 1.12 and 1.10 )

User avatar
beetlenaut
Developer
Posts: 2391
Joined: December 8th, 2007, 3:21 am
Location: Washington State
Contact:

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

Post by beetlenaut » June 4th, 2017, 5:26 pm

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

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

Post by lea » June 5th, 2017, 5:51 am

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 (on add-ons servers for BfW 1.14, 1.12 and 1.10 )

Post Reply