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...
hi everybody!! :)
im working on a new short, yet complicated campaign to teach myself more complex wml stuff:
the campaign its only two scenarios long the campaign uses no amlas the campaign follows the story of a mage he recruits small lvl one one orbs , the orbs are recruited using xp and not...
Hi,
I'm not sure where to ask...
How to (do you) start Wesnoth-1.18 through console,
so it writes things like errors in the console?
I'm using Ubuntu.
Command /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=sh org.wesnoth.Wesnoth -c 'wesnoth'
Which worked for 1.16 starts Wesnoth...
I am struggling with getting consistent results, with the tag. Specifically, the ones with absolute coordinates. Sometimes I get them to work, sometimes I don't and I can't figure out the pattern. The tutorials from website don't seem to work: .
while working on an scenario of mine I used a macro for the first time. When loading the scenario for multiplayer, I get an error that the Macro/file IS_SPAWN_FREE is missing . How do I properly link the macro file? It is in utils.
WML development feedback loop is quite slow - you need to use F5, build new cache, start scenario again. When only looking to test one specific event or tag there is faster way.
Many WML tags are implemented in Lua now, and because of that Lua has all the tools needed to read and run WML. Note...
Hi,
I have a situation where a number of units may be ed simultaneously.
The scenario also has multiple leaders and if any leader dies the player loses.
If 2+ leaders are ed simultaneously their respective last breath and die events fire.
Their last breaths are all delivered then an on-screen...
This is my unit. If you go to the right panel and click on the unit type, it says Unknown unit .. you must discover... . If instead you hit 'd', it shows you all the usual unit data. Is this they way it's supposed to work?
hide_help: (yes|no) default=no. Determines if the unit type will appear...
I was troubleshooting an issue with an event, and didn't want to replay from the start, so I added some messages to the save file. That's when I noticed that one of my events, which I define exactly once and with an id, was stored in the save file twice.
I've got a scenario in mind not dissimilar in nature to HttT_01, in which the leader needs to reach an area of the map to clear.
I've got a rough map and scenario coded, but on playtesting, every time the enemy leader dies (which is a likely outcome, given the placement) the scenario ends...
I'm firing a catapult in the general direction of a hero, though it actually hits somewhere within a small radius. This means there's no guarantee that there is a unit where it hits. Wherever it actually hits, I want any unit on that tile to take 12 damage, and any unit on an adjacent TILE to take...
For the final battle, I want to place an impassable shield around the enemy leader so that the player cannot approach unit he has met certain objectives. But I want the enemy units to be able to pass through (preferably without messing with teleports).
I am using to obtain specific sprites of villages, as opposed to the random ones. If I use the Village Overlay and paste a house graphic on top of it, it does not provide defence values of a Village.
What is the easiest way to correct that, so that the tile functions like a proper...
Hi,
I've never used this and thought I'd ask here before totally messing it up experimenting myself.
Am I right in believing that sounds come and go depending on which area of the map the player is viewing?
So if the player scrolls/clicks further away from a sound source the volume will fall...
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...
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