ForestDragon's WML questions

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
Ravana
Forum Moderator
Posts: 2933
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: ForestDragon's WML questions

Post by Ravana »

You can use wesnoth.debug to show everything that tag has.
User avatar
ForestDragon
Posts: 1766
Joined: March 6th, 2014, 1:32 pm
Location: Ukraine

Re: ForestDragon's WML questions

Post by ForestDragon »

Ravana wrote: June 26th, 2018, 1:20 pm You can use wesnoth.debug to show everything that tag has.
could you post of a full example of the function in use?
User avatar
ForestDragon
Posts: 1766
Joined: March 6th, 2014, 1:32 pm
Location: Ukraine

Re: ForestDragon's WML questions

Post by ForestDragon »

ok, thanks.
User avatar
ForestDragon
Posts: 1766
Joined: March 6th, 2014, 1:32 pm
Location: Ukraine

Re: ForestDragon's WML questions

Post by ForestDragon »

Another question: how exactly does the campaign laurel type selection work? And preferably, are there are ways to alter it mid-campaign?
User avatar
ForestDragon
Posts: 1766
Joined: March 6th, 2014, 1:32 pm
Location: Ukraine

Re: ForestDragon's WML questions

Post by ForestDragon »

Question; how to filter hidden units with [filter_wml] or the like? by hidden, I mean when a [hides] ability is active on a unit. (I basically need a way to exclude hidden units in a filter)
User avatar
beetlenaut
Developer
Posts: 2812
Joined: December 8th, 2007, 3:21 am
Location: Washington State
Contact:

Re: ForestDragon's WML questions

Post by beetlenaut »

Did you look at the standard unit filter tags? There is "ability_type_active". Or did you try that already?
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
User avatar
Ravana
Forum Moderator
Posts: 2933
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: ForestDragon's WML questions

Post by Ravana »

There should be filter_vision somewhere.
User avatar
ForestDragon
Posts: 1766
Joined: March 6th, 2014, 1:32 pm
Location: Ukraine

Re: ForestDragon's WML questions

Post by ForestDragon »

beetlenaut wrote: July 6th, 2018, 1:22 pm Did you look at the standard unit filter tags? There is "ability_type_active". Or did you try that already?
Haven't seen it yet. (I didn't really have much knowledge of the many great WML additions of the 1.13.x/1.14.x versions) Thanks!
User avatar
beetlenaut
Developer
Posts: 2812
Joined: December 8th, 2007, 3:21 am
Location: Washington State
Contact:

Re: ForestDragon's WML questions

Post by beetlenaut »

ForestDragon wrote: July 6th, 2018, 3:14 pmI didn't really have much knowledge of the many great WML additions of the 1.13.x/1.14.x versions
You don't need to know. That's what the documentation is for. I didn't know this key existed either until I saw your question and looked at the standard unit filter keys. :eng: The point is that before you post a question to the forum, you should at least take a look at the relevant documentation first. It would save time.
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
User avatar
ForestDragon
Posts: 1766
Joined: March 6th, 2014, 1:32 pm
Location: Ukraine

Re: ForestDragon's WML questions

Post by ForestDragon »

beetlenaut wrote: July 6th, 2018, 7:41 pm You don't need to know. That's what the documentation is for. I didn't know this key existed either until I saw your question and looked at the standard unit filter keys. :eng: The point is that before you post a question to the forum, you should at least take a look at the relevant documentation first. It would save time.
true.
Post Reply