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:
This lists removed WML functionality and helpful hints for avoiding pitfalls.
A similar thread for changes before 1.16 can be found here .
Compatibility breaking (requires updates to work)
no longer sets the heal_amount variable, instead supporting the variable attribute. This variable will be...
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...
If 'aggression=1', no negative contributions are added to the score. Thus, the AI disregards damage done to its own units and selects attacks based solely on the damage it can do to enemy units. If the AI can inflict 1 damage and take 0, or inflict 2 damage and take 20, it will take the latter...
Does anyone know the exact value of layer of the animated waves on top of the water tiles? I am interested in making them appear on top of the custom tiles, but not the rest of the water.
Often, you can use a comma to represent (effectively) or , like type=Ghost,Wraith,Shadow. But, is this on a case by case basis (at least where it makes sense), or is it a general rule? Does it apply only to values, or keys as well?
This is similar to another thread where I was pointed to , which may be an alternative here, but I'd like to understand some things. I want to create an object in lua and feed that to . I can create an object, and I can use to add an object to a unit, but I can't seem to glue them together....
I'm creating fire elemental units. They will heal when over lava, and maybe get a damage bonus or something. I'd like to inform the AI that this unit should have an affinity for lava, but I'm not really finding anything. Best I can think of is to give the unit a good defense on unwalkable. Better...
WML and I don't get along real well. It does a lot of things I don't like, I assume in the name of being user friendly . I'm just not sure if this is one of those times, or if it's a bug (I'm strongly in favor of the latter).
In the following code, always happens, regardless of the value of...
I'm creating a unit, the suicide drone. It has a weapon special 'explosive detonation' whereby if it hits it explodes doing self.hitpoints to himself and all adjacent units. It also has trait 'unstable', so if you hit it with impact, again an Earth-shattering kaboom! Kind of a fun little guy. This...
How can i convert traits from specific campaigns to those traits that come by default (like skirmisher or submerge)
I wanted to just copy everything (imo) relevant to disengage trait but it doesn't work properly (actually it doesn't work at all, only the description)
also why this doesn't work, its...
I'm creating a suicide bomber. When it attacks on offense it explodes, killing itself and damaging all adjacent units for the attacker's hitpoints. I have all this working, but I can't get the sounds right. I want it to use explosion.ogg when the special is active, and lightning.ogg when it is not...
I want to give Side 2 a one-time infusion of 100 gold on Turn 20. Not finding any simple syntax to accomplish this, and everything I search just takes me farther down a rabbit hole.
there is a scenario named Pebbles_in_the_Flood
from The_South_Guard campaign
there are such enemies with invulnerable status
where is this status defined? how can i use it in my campaigns or to attach this status to my created units
I have to be missing something here. Without using lua, how do I simply clone a unit? I want to make a copy of a leader, and then change a few things (like canrecruit).
I could make a new unit and copy all its attributes. I guess that's simple, but tedious.
As you can see, the whole modify_unit block is pretty redundant, which bothers me (there are a more s, just showing two as an example). I'd like to do something like this (code is wrong, hopefully my intent will be clear):
I want to print a message only if the number of undead, both on the map and on the recall list. This has led me to some questions. So many it's time to ask for help.
(I know, use lua. But I want to learn some stuff)
Only somewhat related, can I ever use count as anything but a filter? Seems...
Hi I try to build an ability who deal adjacent damage at the end the of turn, based on the owner current HP.
With my event i have an error message in the game debug console when the event triggers (and match filters) :
attempt to perform arithmetic on a nil value (local 'base_damage')
I'd like to set multiple objectives which all must be met for a side's victory. eg, take cities a AND b, AND kill the enemy leader. It appears from what I've been looking at that all objectives are mutually exclusive, eg take city a OR b, OR kill the enemy leader. I want victory to happen when all...
Supposing a side's leader earns enough XP during a scenario to advance in rank. But the next scenario has him set up as his previous rank. How does the game handle this?
eg, suppose Side 1's leader is a Dragoon but kills enough bad guys to qualify for Cavalier. But the next scenario's .cfg has him...
I store some side=7 units into units_to_micro_ai array, hat works fine.
But the works unexpected(leader starts moving to 36,7 while units on units_to_micro_ai array keep fighting)
(I'm working on retreat micro-ai for nagas that aren't in water, then I want to add them lurker micro_ai so they'll...
I want to play a short bugle call and show a picture on the scenario start screen.
Picture works fine. (well, it won't scale; can the picture's size be changed? The text window covers the bottom, would like the pic not to overflow into the text window) Music won't play. It was placed in the...
To no surprise of mine, when I tried to start my campaign from the campaign menu, it returned a very verbose error message. So verbose, I wanted to take a screenshot so I wouldn't get it wrong.
There is no default hot key for a screenshot, so I went into Preferences and assigned f12 to the job. I...
I'm looking at creating a few units whose mission is to target a human-controlled leader. At the moment, using the simple_attack micro_ai. Each time I create one of these units, I create a CA for it, so I end up with something like this:
In this particular case, I doubt I have to worry about...
I'm looking at ai for the first time, and I'm a bit overwhelmed. The wiki seems like more of a reference than a guide, describing some interesting pieces, but not how to put them together.
I have a scenario which I think will provide a good example to get me started, as I have the same basic need...
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