WML Expansion

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
Smok
Posts: 52
Joined: June 14th, 2016, 11:52 am

WML Expansion

Post by Smok » May 3rd, 2017, 7:45 pm

WML Expansion is addon for Wesnoth 1.13.7, that provides new WML tags. The idea is to extend existing WML functionalities and add new ones, that community is asking for, however for some reasons they are not avible in mainline.

Current version (1.0.0) contains following tags:

[experience_unit]
Spoiler:
[store_unit_defense] (hope gfgtdf have nothing against basing on his code ;) )
Spoiler:
Documentation inside.

I encourage to share your feelings/criticisms/suggestions about this addon.

User avatar
Celtic_Minstrel
Developer
Posts: 1245
Joined: August 3rd, 2012, 11:26 pm
Contact:

Re: WML Expansion

Post by Celtic_Minstrel » May 3rd, 2017, 11:11 pm

Just for the record, in [store_unit_defense], you should probably use the unit's location if neither loc_x,loc_y or terrain are specified.
Author of The Black Cross of Aleron campaign and Default++ era.
Maintainer of Steelhive.

Smok
Posts: 52
Joined: June 14th, 2016, 11:52 am

Re: WML Expansion

Post by Smok » May 3rd, 2017, 11:23 pm

Celtic_Minstrel wrote:Just for the record, in [store_unit_defense], you should probably use the unit's location if neither loc_x,loc_y or terrain are specified.
That's what it does. I pointed it here:
If terrain is not specified, the terrain on which the units currently stands is used.
.

User avatar
Celtic_Minstrel
Developer
Posts: 1245
Joined: August 3rd, 2012, 11:26 pm
Contact:

Re: WML Expansion

Post by Celtic_Minstrel » May 3rd, 2017, 11:34 pm

Oh, so you did. I missed that.
Author of The Black Cross of Aleron campaign and Default++ era.
Maintainer of Steelhive.

User avatar
Pentarctagon
Forum Administrator
Posts: 3567
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: WML Expansion

Post by Pentarctagon » May 4th, 2017, 12:31 am

If you're confident enough, you could also submit your tags for inclusion in mainline over at Wesnoth's Github, though you will have to learn a few git command along the way.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code

Post Reply