This lists removed WML functionality and helpful hints for avoiding pitfalls.
A similar thread for changes before 1.16 can be found here .
Compatibility breaking (requires updates to work)
no longer sets the heal_amount variable, instead supporting the variable attribute. This variable will be...
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,...
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...
there is a scenario named Pebbles_in_the_Flood
from The_South_Guard campaign
there are such enemies with invulnerable status
where is this status defined? how can i use it in my campaigns or to attach this status to my created units
I'm looking at ai for the first time, and I'm a bit overwhelmed. The wiki seems like more of a reference than a guide, describing some interesting pieces, but not how to put them together.
I have a scenario which I think will provide a good example to get me started, as I have the same basic need...
Hi, I encounter an error when i try to set my arrays that say in the debug console Error : is not supported at scenario toplevel (3)
I've search in the wiki but I can't figure out my problem
so my 3 set_variables don't work but it seems to be the correct syntax, my code here:
Hi,
I'd like to filter if unit with id=$my_unit_id is visible for side=1 in name=last breath id=$my_unit_id
And apparently , doesn't recognize units with HP<0
How to do so?
I have an issue with this code, i know my mistake. So I explain what goes wrong, I want to save the name of the cloak in a variable with the name sideX_cape where X is the $side_number. I custom a MOBA-like add-ons, so each side control only 1 leader and can't recruit. If you have an alternative it...
The only place I could find a list of variations was in the in-game help for walking corpses, which lists Wose, which does not work (wose does). Are these documented somewhere?
It seems to me that either the help should be updated or the variation, or make variation case-insensitive, but they...
I can't find an event that occurs on healing. Kind of surprising. I'd like to make a healer who takes damage when healing others. I've also thought about having healing experience where for example a shaman who heals N units or M amount of damage advances to druid (why would a unit on a path...
Apologies if |I've missed something but it seems to me that once an achievement is set, that's it?
I haven't tested this exhaustively but that's been my experience so far.
Is there a way to unset achievements - or are they auto-unset at some point?
Can I change the difficulty from within a scenario?
I'm playing with a new difficulty level, but I want it to only apply to the first chapter for now (that's the only place it's implemented). I was hoping to put a victory event at the end of the scenario, with something like
1. The special weapon's name is Parry .
2. The basis is, when the unit is attacked, and reacts with the weapon with this attribute, it has a 15% chance of deflecting the attack, reducing its damage by 25%, in which case the text Parry will appear, and 15% of Chances to parry more effectively,...
I ran into a strange bug related to a name=unit placed event, and I could use some help understanding it. To give some context, I have a scenario where a player (side=1) controls a large number of walking corpses. At the end of the player's turn, any WCs that haven't moved have their side switched...
Hello,
I'm sure this isn't a new idea so thought I'd ask here first.
What I would ideally like to do is to craft a tag in lua or failing that implement something in WML.
The logic would utilise (or spoof) a normal attack dialogue.
Ideally the routine would trap a normal attack initiation i.e....
Realizing I'd forgotten something, I restarted my turn. For just an instant an Image Not Found blinked into life, then all went according to plan. I found these in the log. I'm wondering if anyone can give me a clue where to start looking, either from the message or where it occurs in context.
Hello,
Konrad2 kindly playtested my LSB campaign and I was able to mostly answer/resolve the issues raised.
However one has me not knowing where best to start: statistics (scroll down to Don't worry, it's a confusing bug. just after the first screen grab).
Hey I got this new error and I just don't get it. I only want to turn those units, that have 10 hp or less, but I guess I don't really get Unit filters. This is my current code:
Unerwartete Zeichen nach einem Variablennamen (erwartet werden »,« oder »=«)
an Position...
Okay, I'm not sure if its just because drain is hard-coded to the point of being un-editable or not, but; I want to make a drain which has the possibility to extend maximum hp.
Hello there.
I want to modify the current definition of some terrains inside my custom campaign, specifically the villages definition to remove their healing effects . But I don't know what would be the preferred approach: should I modify (in some way which I haven't clear) the core definition of...
Hi. I want to add to my add-on a terrain type which is a village on bluff/gulch. I can try copying and experimenting with original bluff/gulch terrain-graphics code but since I don't understand how terrain-graphics.cfg works - my attempts will probably end in ugly code. I have successfully done...
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