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...
Hi,
just spent quite some time nailing down a bit of weirdness.
I was puzzled why a was not highlighting the unit doing the speaking even though I explicity set highlight=yes and scroll=yes .
( Very ) long story short: the ( side 1 ) speaker speaks inside a side 2 moveto (i.e. when a side 2 unit...
I want to present an order list of items inside an block, with the numbers right justified and space-padded. Unable to find a sprintf in wml, I went with lua for that (and it works, I just mention it because I wonder if I missed something.
I want this (assuming it shows up right in your browser,...
Hi,
Recently stumbled across posts asking if the turn time limit in multiplayer could be implemented/ported to single player campaigns.
I've never used it and assume it simply ends the current player's turn with extreme prejudice?
If not, please enlighten me.
Each time side 1 captures a village, I want to count how many villages side 1 currently has. I can't keep a running total myself, because I won't get events when side 1's villages are recaptured by other sides. So, the idea is to store locations based on the terrain type *^V* , count the hexes that...
According to wiki, new input should replace the previous one. It did not work on my case. Could you please help me understand how it works? Is is possible to retract the without this facet/path thing?
I guess this is more or less the right place to point this out?
Built 1.17.16 on U22.04. The wmlindent in /usr/local/bin fails, while the one in /usr/local/share works. They sure look like the same thing. I assume it has something to do with a path for python to find the right modules(?), and it's...
And that's fine, but when I don't have enough gold I'd still like to know how much I'd need. I tried inserting this between the two option blocks first, and it's as close as I've gotten:
This works, and it's close. The problem is it's a...
So I need help for a particular issue. Lets say a unit has two types of attacks: Attack A and Attack B. The unit has an attacks attribute of 3. I want the unit to attack with Attack A twice and Attack B once. Can I make it so that the unit cannot attack using Attack A more than twice and Attack B...
Hello, I need some help with multiple locations inside one variable in an array. I.e., in the following code, only the first set of coordinates x,y gives me result of spawning only one scarecrow in the first position. I tried to check the variables with messages, but it blanks out.
Im really want to make a campaign but ive never done it before, i have the story planned out and some maps made on the map editor but I’ve never even done any programming ever, i know there is supposed to be a editor on the tools folder but I downloaded the game from sourceforge and it wasn’t...
I am trying to make a weapon special which checks for your chance to be hit and if it detects that it is above 50% then it sets it to 50%. However, I am having trouble making it work. It seems that all attacks that have a chance to hit below 50% are being set to 50% instead.
Is it possible to create an ability that can give adjacent units another ability? For example, a version of heal that not only heals adjacent units but gives the adjacent units the heal ability as well.
Hi,
I started today with the tutorial for making your down campaign ( ). I followed the tutorial to including step 4 and wanted to try out the first scenario. But I receive the following Error Message:
The following add-on had errors and could not be loaded:...
Hi,
How can I do the following:
All enemy Leader appear one after another. So: Player 1(human) kills Player 2, than Player 3 appears, after that is killed Player 4 and so on.
With inspiration form the 4 moon era, I created a new debuff/curse for units.
Basic idea is that they could work like poison and slow and add more variety to the gameplay.
It works by adding a ability or weapon special to the hit enemy, which can get removed either at the end of the turn or when...
Version 1.17 has introduced new tiles with elevation: bluffs , gulches and ravines . This map fragment is from the map 3p_Elevation_Example.map which comes with version 1.17. (Click map to enlarge.)
elevation_test_map.jpg
What tactical advantage would you give a unit holding the higher ground?...
I'm trying to add limited number of arrows for archers. I can't do it. I tried having arrows number in unit's status and it was showing correct number after recruiting and wrong number (always -1) after attack. I changed from status to unit's variables and now it don't show number at all. What I'm...
Since I have many questions, I think that one thread will be better that many (specially that my questions come from a newbie).
question 1:
do WFL work like a variable value?
Just spent quite a bit of time unwrangling why a rather gnarly mess of WML that stopped working after I stupidly changed something that was working to make it better :doh:
Wesnoth v1.16.8
I stumbled across what I think is inconsistent behaviour, I'm not...
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