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...
I have a scenario in which there are Galleon units scattered about the map, all on deep water hexes (Wo). What I want is for every new turn, the game to pick a random galleon unit and then assign a random goto target for it. The goto targets in question will all be shallow water hexes (Ww) with an...
I've recently managed to get my wesnoths to output their logs (that was harder than it should have been especially for the flatpak version) and have been looking through them and I often see this one. It always applies to files with the same name but oddly they are not always identical bit for...
Is there a way to have icon= point to another file that contains the actual data? Including it in the pbl file makes it hard to edit as the data is 1 line 80,000 columns wide and Kate doesn't like it and has to reload it with a temporary limit raise on width.
I am making an era, and I want any faction participating in a multiplayer's theme song to be added to the playlist for that scenario. But I don't want any default, or core songs to be butting in. Meaning a scenario that has only my songs in it, and only the ones belonging to the factions, chosen...
I made a unit that is meant to restrain another unit, I used the trait active to mark when it's restraining something, It works find for single scenario's but I need a macro to remove the trait at the end of a scenario. please help me.
I am making a unit that transforms into a different unit depending on the terrain after a few turns.
I believe I can simply use an event to transform the unit with a bunch of if tags to decide what it gets turned into. However, I don't know how to actually trigger this event. I want it to be that...
So I inherited all this WML code and naturally there are errors. I'm trying to discover if this is one but searching was to no avail. Random genders appear not to be supported but is it possible this works or was it optimistic of the original author? :-) The file has a huge extra chunk of almost...
I have a hero units, and I wish to make it so that unit (drake fighter) have cold attack and it can slow other units when melee fighting. I do not want to change ranged attack. How can I do it? Also i wish this to work, when hero advances to better unit. Here is what I have so far:...
So, there's this effect I want to apply in a scenario of my campaign where all units of two given sides get healed in 10hp, strengthened by 25% and their resistances increased by 50%. This effect is supposed to last only a few turns, and at every turn when...
I'm trying to make a character that yells random insults during attacks. I'm having trouble with strings that include a comma:
My problem is that the WML parser seems to use all of the commas as delimiters, so the above rand value appears to be a list of five strings instead of three. How do I...
Hey,
I copied an old campaign of mine to have an easier start for my new campaign. However for some reason I get very weird errors now when I try to run it and it's prob. because I forgot to change something, but I can't put my finger on it...
Hey,
I would like to create a few effects concerning antimagic. First I will have a lot of general questions. I am not looking for a full answer (which would be nice as well), but rather for a: Take a look at campaign xyz that did something similar or read about xyz-WML
Hey guys. I have a couple of questions about WML:
1. Is it possible to run a code when a unit has been modified?
2. Is it possible to run a code when a label has been placed on the map?
3. Is it possible to run a code when a chat message has been received?
4. Is it possible to run a code when a...
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...
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