Show a WML variable in [theme][status]

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
User avatar
WhiteWolf
Forum Moderator
Posts: 769
Joined: September 22nd, 2009, 7:48 pm
Location: Hungary

Show a WML variable in [theme][status]

Post by WhiteWolf »

Hello,

I'm just starting out with ThemeWML. Is it possible to show the status of a WML variable inside the [status] tag? If I understand correctly, I can place an icon next to it with [label], but I need to somehow show that value of the variable, but [status] only recognizes certain tags. Is this possible somehow?

Thanks
Main UMC campaigns: The Ravagers - now for 1.16, with new bugs!
Old UMC works: The Underness Series, consisting of 5 parts: The Desolation of Karlag, The Blind Sentinel, The Stone of the North, The Invasion Of The Western Cavalry, Fingerbone of Destiny
User avatar
josteph
Inactive Developer
Posts: 741
Joined: August 19th, 2017, 6:58 pm

Re: Show a WML variable in [theme][status]

Post by josteph »

Does this help? It's an example of using lua to show custom statuses. Lua code can get values of WML variables too.
Post Reply