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...
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?
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...
Hi everyone, this is my first post in the forum and english is not my native language so i'm sorry if i'm asking my question in the wrong place or making any grammar mistake.
How do i spawn a certain unit around certain terrain every turn for certain side (myself,my ally or enemy).
Hey all, I've been playing around with a custom teleportation ability for a campaign I'm working on. The campaign is big on stealth tactics, and moving units around to different parts of the map via teleportation. Most non-teleporting units move fast enough to not be a hindrance to the play style,...
Hi,
I've been playtesting a campaign and it would be handy to specify an clause that only applies to certain units on the ai side.
Specifically I want an clause that is only obeyed by trolls in an ai side that can recruit a mix of human and troll unittypes.
Hello. I have a problem with the following script. It is supposed to designate upt to 4 wounded Ruffians to head for villages. The reason I want to do it like that is because (a) even with large caution/retreat values, the AI is suiciding its units and (b) I want to create a zone of wounded...
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