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...
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...
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...
Is it possible to create an ageless worls conquest era, so we can choose it over the default wc era?
Is it necessary to modify the WC mod for ageless units?
Can we play with swapping ageless recruits from different factions just like using default wc era?
I'm trying to make ability, that recruits random unit from side recruitment list.
I decided to do this by picking random number base on length of $rec_side.recruit array, however there's one problem: when I try to get $rec_side.recruit.length, the value is 0. Is there anything I can do to solve...
I'm having an issue with getting duplicate traits on my units when I made the jump from 1.14 to 1.18.
I've tried to use the 'exclude_traits' and exclude itself, but this seems to make the trait not show at all.
Here is the snippet of code of the unit I've been using as the guinea pig:...
Hey fellas, WML noob here. Let's say I want an event where the camera pans to a spooky castle and then a timely animated lightning bolt strikes a hex.
How do I animate the lightning bolt?
And let's say I want an event so that any tile you kill an enemy ghoul on has a scenery/flames01-15 animation...
Hi, I want to create a custom decoration for my mod which I only want to display in between certain teams. Also I want to display the graphic on top of the units, so they are properly visible. This is why I'm using the halo property to achieve the over layer effect, but the problem is when it given...
I have a menu item, and I only want it to be shown in deep water terrain 'Wog' surrounded only by deep water 'Wog' as well. I'm having trouble doing it.
I just can't seem to get it right. Can someone help me? :hmm: I won't even mind showing how I did it because it simply doesn't work any...
Hello!
I'm using the tag for a weapon special. I want to disable the attack if the unit hp is less than or equal to a value; and I did it!
It works just fine! But it was way too easy; and that bothers me! You know... it's too easy; I must have made a mistake! I'm afraid that at some point it...
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 all, I have searched the forums and the web but cannot find anything related to this.
In my first scenario you are cornered and killed by another character, this automatically displays the victory tab before moving to the next one.
Is there a way to avoid this and WML a jump to the next scenario...
I am working on some hand-tailored AI scripts and I am currently trying to figure out how to sort a series of values. Let's say that I have 6 units and I want to have an array of their hp values sorted from max to min. How can I do this?
Hi,
I tried to create a hides ability.
The ability shows up ingame, but it's set to inactive.
Maybe it's a problem with my code, but I couldn't find the problem.
Other abilities (but which are copied from the base game and not changed, like Heal or Leadership) work fine
Hi everyone! Got a question about how the preprocessor works.
Let's say I have the following code
I expected that {TEST} will be macrosubstituted and I'll get an event with name Test my event , instead I got an error during the preprocessing stage saying Unexpected characters after variable...
I am reading wiki on it, and I would like to ask for directions to find some comprehensive examples. Ctrl+F on forum gives a lot of results but not what I am looking for.
I need to define locations as empty hex that belongs to the location A and has adjacent unit on e,ne orse, but no...
When Fog of War is active, the opponents stats are hidden in the status table. Is it possible to change that somehow (I suppose it is not possible), but I have a single-player-map with Fog of War active, and I would like to enable the player to see the stats of the opponent in the status table....
I need to ask, because wiki is a little too concise on the matter. Is it possible to fire an event if a specific unit, e.g., race=dwarf, fires a ranged attack and hits?
What I want to achieve is to trigger an event after a Dwarf Thundered line unit fires its musket (and hits, thereby...
Hi!
The aim I'd like to achieve is to have a castle on the map with an adjacent keep, but not to allow recruiting at that location. (Only at that location).
In previous versions of Wesnoth, I could do this by simply placing a Castle Overlay on the Keep tile. That way, the keep tile was in fact...
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