WML Expansion

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

WML Expansion

Post by Smok »

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: 2166
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

Re: WML Expansion

Post by Celtic_Minstrel »

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.
Former maintainer of Steelhive.
Smok
Posts: 53
Joined: June 14th, 2016, 11:52 am

Re: WML Expansion

Post by Smok »

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: 2166
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

Re: WML Expansion

Post by Celtic_Minstrel »

Oh, so you did. I missed that.
Author of The Black Cross of Aleron campaign and Default++ era.
Former maintainer of Steelhive.
User avatar
Pentarctagon
Project Manager
Posts: 5526
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: WML Expansion

Post by Pentarctagon »

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