ForestDragon's WML questions

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

Re: ForestDragon's WML questions

Post by Ravana » June 26th, 2018, 1:20 pm

You can use wesnoth.debug to show everything that tag has.

User avatar
ForestDragon
Forum Regular
Posts: 1494
Joined: March 6th, 2014, 1:32 pm

Re: ForestDragon's WML questions

Post by ForestDragon » June 26th, 2018, 1:23 pm

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?
Co-creator of Era of Magic
Creator of Tale of Alan (1.12 abandoned),The Golden Age (1.12/1.13, abandoned),XP Bank (1.14),Alliances Mod(1.14), with a large add-on in development
"Real life is like a hyper-realistic VR game, but with permadeath and boring gameplay"


User avatar
ForestDragon
Forum Regular
Posts: 1494
Joined: March 6th, 2014, 1:32 pm

Re: ForestDragon's WML questions

Post by ForestDragon » June 26th, 2018, 1:47 pm

ok, thanks.
Co-creator of Era of Magic
Creator of Tale of Alan (1.12 abandoned),The Golden Age (1.12/1.13, abandoned),XP Bank (1.14),Alliances Mod(1.14), with a large add-on in development
"Real life is like a hyper-realistic VR game, but with permadeath and boring gameplay"

User avatar
ForestDragon
Forum Regular
Posts: 1494
Joined: March 6th, 2014, 1:32 pm

Re: ForestDragon's WML questions

Post by ForestDragon » June 28th, 2018, 6:02 am

Another question: how exactly does the campaign laurel type selection work? And preferably, are there are ways to alter it mid-campaign?
Co-creator of Era of Magic
Creator of Tale of Alan (1.12 abandoned),The Golden Age (1.12/1.13, abandoned),XP Bank (1.14),Alliances Mod(1.14), with a large add-on in development
"Real life is like a hyper-realistic VR game, but with permadeath and boring gameplay"

User avatar
ForestDragon
Forum Regular
Posts: 1494
Joined: March 6th, 2014, 1:32 pm

Re: ForestDragon's WML questions

Post by ForestDragon » July 6th, 2018, 1:15 pm

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)
Co-creator of Era of Magic
Creator of Tale of Alan (1.12 abandoned),The Golden Age (1.12/1.13, abandoned),XP Bank (1.14),Alliances Mod(1.14), with a large add-on in development
"Real life is like a hyper-realistic VR game, but with permadeath and boring gameplay"

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

Re: ForestDragon's WML questions

Post by beetlenaut » 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?
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide

User avatar
Ravana
Moderator
Posts: 1867
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: ForestDragon's WML questions

Post by Ravana » July 6th, 2018, 1:37 pm

There should be filter_vision somewhere.

User avatar
ForestDragon
Forum Regular
Posts: 1494
Joined: March 6th, 2014, 1:32 pm

Re: ForestDragon's WML questions

Post by ForestDragon » July 6th, 2018, 3:14 pm

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!
Co-creator of Era of Magic
Creator of Tale of Alan (1.12 abandoned),The Golden Age (1.12/1.13, abandoned),XP Bank (1.14),Alliances Mod(1.14), with a large add-on in development
"Real life is like a hyper-realistic VR game, but with permadeath and boring gameplay"

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

Re: ForestDragon's WML questions

Post by beetlenaut » July 6th, 2018, 7:41 pm

ForestDragon wrote:
July 6th, 2018, 3:14 pm
I 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
Forum Regular
Posts: 1494
Joined: March 6th, 2014, 1:32 pm

Re: ForestDragon's WML questions

Post by ForestDragon » July 7th, 2018, 10:14 am

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.
Co-creator of Era of Magic
Creator of Tale of Alan (1.12 abandoned),The Golden Age (1.12/1.13, abandoned),XP Bank (1.14),Alliances Mod(1.14), with a large add-on in development
"Real life is like a hyper-realistic VR game, but with permadeath and boring gameplay"

Post Reply