Several of our mainline campaigns are in the works for upgrades at the moment, which includes adding characters and enhancing existing scenarios. We are looking for more artwork to supplement these upgrades, including the following:
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...
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...
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...
This lists removed WML functionality and helpful hints for avoiding pitfalls.
A similar thread for changes before 1.18 can be found here .
Compatibility breaking (requires updates to work)
now reduces target unit hitpoints to 0 before triggering last_breath, die events. This affects mentioned...
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...
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...
Does → apply_to=type work the same as if applied to a unit with no more levelups available (i.e. at maximum level and only AMLAs available)?
FWIW the unit is 4th level.
Specifically, would existing (already acquired) s (mainly custom AMLAs), s, unit variables and statuses be preserved?
When I define an unit variation, I know how to modify it. But how can I remove it? Can that be done easily, by first picking the original unit that the variation is based on and then adding lines just to remove features entirely?
In particular - I would like to make (i) Peasant that...
How does radius work in abilities? Or does it work at all?
I have this from AbilitiesWML, which states:
for Illuminates
-- radius: (Version 1.19.15 and later only) defines the radius of the ability, by default only the terrain the user is on and adjacent hexes are affected, but this can now be...
Hello everyone, again.
I return with the same question that I removed yesterday. And it involves an ability called Terror it is a specific ability of Mal-Ravanal, the big bad boi of the company. He has reviving too, but i want to focus on his terror firstly. Mainly bc im not interested in his...
Hello, I am trying to follow the wiki however there is something I am doing wrong. May I ask for help with the following blocks? I would be very grateful.
Hi, I need to double check something with you. I am just writing a Lurker Micro AI that takes around 70 lines and my brain starts tripping.
If I want to say only approach this unit if it is alone, i.e., has no buddies in the radius of 5 , would that be correct? Or would it catch the approached...
Hi,
To make certain bits of transient information more visible to the player I'm using a label which shortly after is removed and replaced by floating text.
This works fine except matching font sizes is fiddly; by trial and error the best way seems to be to leave the floating text as is and specify...
Is there is a wml way to inside unit cfg file use unit image but with hight and width increased by % value than the original image size?
For example when the unit image size is 72x72 then to make it be 90x90 but to set it +25% of 72x72 size, not by number 90x90.
I have been messing around with wesnoth save files. I just wrote a program that edits wesnoth save files in order to give all units that meet a certain criteria a goto x and y coordinate in order to automate the process of setting these movements. (For context I am playing a game with over 1000...
I was introduced to wesnoth a couple months ago by a friend and only recently started dipping my toes into debug mode, save files, and WML. I am trying to replace all 6 leaders in an ongoing wesnoth local multiplayer game with different units. Creating units to replace old ones would work for...
Hello, I'm trying to develop my own factions of catgirls. The art was started and can be found here .
I'm trying to recolor the following sprite with two color ranges. There's the default magenta palette and a new cyan palette. I'd like the magenta to be recolored normally to the team color, but...
Can description=_ ... recognise variables and/or WFL statements?
From a very quick test it seems not but just thought I'd ask here to confirm.
Specifically, being able to vary an description via an embeded formula that uses if to conditionally deliver variable strings depending on the unit's state...
I am currently trying to animate two units at once during a cutscene. However, I need one of the units to start animating a second later, as opposed to both units starting the animation at the same time, thereby desynchronising them.
I started by the following code, which makes them...
I want to have friendly dwarf miners convert to your side when you move next to one. But I have the problem to access the id from the unit I moved next to. Here's the code I have used:
Triggering the event itself works fine, but storing and searching for the adjacent unit does work, because...
Would it be possible to make recall cost dependent on which fort is used?
E.g., player has two leaders, so simple scripts wouldn't work. There is an extra castle with just two hex, one for leader and one empty - would it be possible to make recall cost equal zero for this one particular castle but...
Below is code which I made. Inside this code is also message which Ive written to check if variables which are used are filled correct. I don't know why units don't spawn as they should. Do you have any idea what can be wrong?
I have noticed that units no longer move to attack in 1.18 when using Return Guardian. They do move to the GP normally, but stay there indefinitely. I set the aggression to 1, ca_score to 400000 but still no effect. Is there some issue with that?
Hi,
I'm doing something stupid but can't determine what (as usual). :roll:
Using v1.19.16 so not quite latest, will update when I get chance, just checking here.
I have a special implemented as an ability that works fine except that the logic allowing the player to switch the abiltity on or off...
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