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,...
The thread for changes from 1.10 to 1.12 is here .
Deprecated or removed feature:
The FOREACH macro is deprecated, use instead
The ABILITY_LEADERSHIP_LEVEL_1 ..5 macros are deprecated and are now aliases for the new more general ABILITY_LEADERSHIP macro.
The ~BRIGHTEN() (which was...
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...
Attempting to create a menu item that only shows up when a unit of the given side is located on specific terrain.
I have accomplished having the menu item show up when clicking on the unit, as well as when clicking on the terrain, but can't seem to combine the two :?
I'm trying to do a weapon special that is based on the defense of the other unit. I'm having a hard time figuring out the correct WFL to make it happen.
The attacking unit damage should be multiplied by the other unit's defense * 0.01.
This is same as saying (self.damage * other.defense) /...
Hello, I went through the WML for Complete Beginners Tutorial And after completing it, I was looking through the HttT utils to get a better understanding on how the JOURNEY macro works.
Inspecting the file in Heir_To_The_Throne/utils/bigmap.cfg I found a macro symbol with whitespace in it, which...
Hello. I'm creating custom multiplayer era. I want to change the default music playlist to my own playlist on all default maps. How can I do it without duplicating all scenarios? Is there any way to do it?
I endeavored to customize BfW's UI theme to my liking (as per ThemeWML wiki page) and it provides enough tools to rearrange existing controls and adapt it to different resolutions.
But what about customizing controls themselves?
Is it possible to (for example) show unit's abilities one per row...
Note: the WML syntax highlighting schema is currently included with the upstream version of Kate under Markup/Wesnoth Markup Language , so you shouldn’t need to download anything unless you are using a very old version of the editor. If you do, grab lua.xml, pango.xml and wml.xml from the directory...
It may be a stupid question, but I'm in trouble because I don't know the answer.
I want to addition using formula with set_variable, but it don't work.
I want answer = 3, but the actual value is empty.
Also, if the number part is replaced with a variable, the character strings will be...
I'm wondering how can I get the reference .id of the last unit created with ?
I want that unit to say something without giving it an explicit ID or role, because there could be more of them later on.
The location of the created unit is not always guaranteed, so can't use $x1,$y1 for that.
The...
In my campaign, I would need a weapon special that, like a reflection, completely throws the damage caused by the attacker back to the attacker self.
with a negative value works fine, but It would be cool, and really like a reflection, if the attacker gets harmed by exact the damage he deals. But...
I need a Saurian Ambusher named Smekk to be immune to backstab. I thought I should make a trait called alert to bestow an immunity to backstab...but is such a thing even possible? Or do I need an event? An ability?
How would you code it? By the way, it's just one scenario and one unit, so the...
I uploaded to the add-on server my completed campaign, titled The Pool of Ek. I purposefully crammed this simple, little campaign with examples of almost every tag. If you are learning WML and need a specific code example, there's a good chance that the one you need appears in The Pool of Ek....
Apparently an x,y location can receive an id? And there is a filter attribute called location_id that filters that id? And a unit can be sent there via and to_location ?
So...if I'm understanding correctly, instead of moving a unit to a specific snow terrain via the...
Not sure if this is the right place to post that issue, but I noticed some broken transition between fence and village.
Recently I have installed the latest development version 1.15.8, and there I have noticed that: fence_transistion_bug.png
Edit: According to the changelog, the iron fence was...
I’m building a modification add-on to make heal cumulative but less effective. I was thinking of +8 health from village or regeneration ability and we add +6 for each adjacent lvl2 healers and +3 from lvl1 healers . Do you have any tips ?
My campaign is almost done, so I need to select music. Not being a musical person, I'd appreciate some help with this part. Right now I'm using the {DEFAULT_MUSIC_PLAYLIST} , which is awesome music. But I'd like to customize the music anyway with some other awesome music that the player might not...
I'm trying to force a unit to advance 1 level. The cool glow that happens upon advancement must occur, too.
I don't know what level the unit will be prior to the forced-leveling: maybe 1,2 or even 3. Ideally, the unit advances only 1 level.
This did not work. Anyhow, it was flawed because a level...
I'd like the overlay image to be embellishments/farm-veg-spring.png~BLIT(items/straw-bale1.png) instead.
That doesn't seem to work with {OVERLAY} macro.
Anyone knows which macro I should be using instead?
A corrupted unit turns slightly purple, changes their alignment to chaotic, and gains 3 temporary hitpoints. The problem is, units are getting corrupted multiple times, getting more and more hitpoints every turn. I want a unit to get corrupted...
Using the recall tag is simple enough, but there are a few recall-related situations that are not so simple.
I want to remove a unit (id=Boolzak) from the map. I can't use kill , as it removes him from recall list, and I want him on the recall list. Is this how you would do it? Is there a better...
In one of my scenarios, sides 3, 4 and 5 are hidden from the outset. At a certain point, a side 3 unit enters the map and side 3 appears in the Status Table via the following code...
The problem is this: when side 3 is no longer hidden, sides 4 and 5 also appear in the Status Table. I thought my...
I figured-out how to give custom random names to my custom races. Here is the problem...
One particular race is actually composed of two different types of creatures: ones that fly and ones that don't. I would like the names within each group to be unique to that group.
I created an illustration of a huge puddle of green slime and I figured-out how to make it appear on my map. So far, so good. Toward the end of the scenario, however, I want the puddle to go away, revealing the floor underneath. I tried a few things, but either the slime remained visible, or the...
In my campaign, when a unit is killed by a mushroom-like shroomling, the unit becomes a shroomling via special=fungal plague . This works perfectly. Here is the problem...
There is one scenario where all the shroomlings become corrupted , including any new shroomlings created by special=fungal...
In this scenario, the big monster is called a doomshroom and the little monsters are called shroomlings. Shroomlings have a plague-type attack that turns defeated units into shroomlings. This works perfectly.
The doomshroom is supposed to gain 1 hitpoint every...
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