We are happy to announce that Wesnoth is now able to accept donations on Liberapay . While Wesnoth does rely on the work of dedicated volunteers, no project can function completely cost-free. Revenue from the Apple App Store and from donations goes towards maintaining our servers,...
The thread for changes from 1.10 to 1.12 is here .
Deprecated or removed feature:
The FOREACH macro is deprecated, use instead
The ABILITY_LEADERSHIP_LEVEL_1 ..5 macros are deprecated and are now aliases for the new more general ABILITY_LEADERSHIP macro.
The ~BRIGHTEN() (which was...
There have been numerous important forum posts and wiki articles written by users and developers. We reference these pages a lot, and decided to put them together in a convenient list.
Write clearly, be nice to others, and be very careful when posting anything related to politics or religion. When asking for help, remember that everyone here is a volunteer. Prefer editing your previous post over double posting. No animated avatars or graphical signatures. Don’t plagiarize other’s...
Here you can find configuration files to enable WML syntax highlighting for various text editors :
Gedit (and other Gnome based editors): Has full WML support and partial inline lua support.
wml.lang goes in /usr/share/gtksourceview-3.0/language-specs .
cobalt-wml.xml goes in...
The purpose of this thread is to provide links to particularly useful information and code examples of WML and Lua on the wiki, without cluttering up this forum with more and more stickies. As such, the wiki pages linked here should be kept working and up to date - if an unmodified piece of example...
Does you campaign produce obscure WML errors on startup and you don't know what line in your 2000 lines of WML causes it? Instead of going through everything line by line and try to spot the mistake you've made, or before posting your entire campaign on the forums in the hopes that someone wants to...
People often use WML attribute or tag names that are misspelled or just plain fictitious when trying to debug WML — or even tag structures that (to the trained eye) are logical to the writer but have no basis in reality. You should always look up the proper format first, and we have a dedicated...
The Terrain reference says that vision_alias doesn't work. Is there an alternative way to add this effect to the terrain?
I want to create a terrain that can't walk but doesn't block view.
Is that possible to pillage an hexagon of terrain through WML?
If not how you do it?
If I recall well the Under_Burning_Sun campaign allow to pillage a village (destroy it) and maybe also some other campaign.
I would like to create an array of stored units that can be unstored via an option menu.
Here's what I have so far, (I just placed this at the end of Athermaw scenario for testing)
Edit: this is a continuation of a topic from here:
This thread focuses on the core desired function instead of...
I want to give the recruiting ability from within the AMLA advancement framework.
Something like this:
Now doesn't have apply_to=canrecruit , so I'll have to do a custom one with lua.
I'm not sure how to proceed with that, and what is the safest option?
please help...
I'm wondering how can I get the reference .id of the last unit created with ?
I want that unit to say something without giving it an explicit ID or role, because there could be more of them later on.
The location of the created unit is not always guaranteed, so can't use $x1,$y1 for that.
The...
I made a costum unit in my own costum era, the only problem is that the unit can't be recruited, and when I have him as my leader, It just shows me the you have been defeated message, please help me
I have an event in the scenario I'm currently working on that causes a random amount of walking corpses to spawn on deep water hexes (Wot). The problem, however, is that the player can see them, even though they're all in deep water, with deep water adjacent hexes, and I want them to...
Pentarctagon requested that I post this current progress on the forums, so here it is.
Working on a little modification (very rough and unfinished / probably has some bugs).
The issue that I have is in attempting to store units in an array and unstore them via an option.
Have yet to accomplish...
Hi, I made an ability that lets a unit respawn at the location of one of the other units of it's faction upon death.
I worked out most of the kinks, but one problem I still have is that the AI seems to 100% prioritize the unit with this ability.
This leads to the AI basically being locked into...
In many events, there are temporary variables like $unit, $x1, $y1, and $weapon. For the purpose of debugging, I might find this useful - assuming it's even possible.
1. Is there a way to use WML and iterate over the temp variable and show the keys' names after the event ends? I don't seem to be...
Attempting to create a menu item that only shows up when a unit of the given side is located on specific terrain.
I have accomplished having the menu item show up when clicking on the unit, as well as when clicking on the terrain, but can't seem to combine the two :?
I know that you can read about (almost?) everything on the wiki, and there are good bits of info on the forums, however it can be difficult to know what to look for and in some cases it's pretty challenging to find.
It's been recommended to look through existing content for various tid bits and to...
I'm trying to do a weapon special that is based on the defense of the other unit. I'm having a hard time figuring out the correct WFL to make it happen.
The attacking unit damage should be multiplied by the other unit's defense * 0.01.
This is same as saying (self.damage * other.defense) /...
Hello, I went through the WML for Complete Beginners Tutorial And after completing it, I was looking through the HttT utils to get a better understanding on how the JOURNEY macro works.
Inspecting the file in Heir_To_The_Throne/utils/bigmap.cfg I found a macro symbol with whitespace in it, which...
Hello. I'm creating custom multiplayer era. I want to change the default music playlist to my own playlist on all default maps. How can I do it without duplicating all scenarios? Is there any way to do it?
I endeavored to customize BfW's UI theme to my liking (as per ThemeWML wiki page) and it provides enough tools to rearrange existing controls and adapt it to different resolutions.
But what about customizing controls themselves?
Is it possible to (for example) show unit's abilities one per row...
Note: the WML syntax highlighting schema is currently included with the upstream version of Kate under Markup/Wesnoth Markup Language , so you shouldn’t need to download anything unless you are using a very old version of the editor. If you do, grab lua.xml, pango.xml and wml.xml from the directory...
It may be a stupid question, but I'm in trouble because I don't know the answer.
I want to addition using formula with set_variable, but it don't work.
I want answer = 3, but the actual value is empty.
Also, if the number part is replaced with a variable, the character strings will be...
In my campaign, I would need a weapon special that, like a reflection, completely throws the damage caused by the attacker back to the attacker self.
with a negative value works fine, but It would be cool, and really like a reflection, if the attacker gets harmed by exact the damage he deals. But...
I need a Saurian Ambusher named Smekk to be immune to backstab. I thought I should make a trait called alert to bestow an immunity to backstab...but is such a thing even possible? Or do I need an event? An ability?
How would you code it? By the way, it's just one scenario and one unit, so the...
I uploaded to the add-on server my completed campaign, titled The Pool of Ek. I purposefully crammed this simple, little campaign with examples of almost every tag. If you are learning WML and need a specific code example, there's a good chance that the one you need appears in The Pool of Ek....
Apparently an x,y location can receive an id? And there is a filter attribute called location_id that filters that id? And a unit can be sent there via and to_location ?
So...if I'm understanding correctly, instead of moving a unit to a specific snow terrain via the...
Not sure if this is the right place to post that issue, but I noticed some broken transition between fence and village.
Recently I have installed the latest development version 1.15.8, and there I have noticed that: fence_transistion_bug.png
Edit: According to the changelog, the iron fence was...
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum