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:
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...
This lists removed WML functionality and helpful hints for avoiding pitfalls.
A similar thread for changes before 1.18 can be found here .
Compatibility breaking (requires updates to work)
now reduces target unit hitpoints to 0 before triggering last_breath, die events. This affects mentioned...
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,
I've got some working code but it recreates (overwrites) an existing menu item at the start of each scenario.
Whilst this all works I was wondering if there was a test for the existence or not of a menu item with a specific id?
Sort of a equivalent for menu items.
No big deal, just curious.
WML...
Hello. Im trying to add new option for advancement of the Elvish Archer (to be able lvlup in to Elvish Lord). No matter what I wrote its end with errors. Anyone could help me?
Anyone know why game is doing infinity loop during lvluping unit with advance unit macro (for example advancing inferno drake to armageddon drake, same with lvluping lich to ancient lich)? Below code from my addon called More units forms (which was working fine on Wesnoth v1.10):...
Hi. I have a problem with a tag. When I use male_voice= and female_voice= with a translatable text to support many languages... it shows me this error:
lua_error.png
The voice plays correctly when the message is displayed, but after choosing an option in the message menu - the message...
Hello. Im trying to create mod that will add to units new weapon which will have same stats but strike number equal 1 and damage number equal original strikes number multiplied by damage number. To not be op this code will add also weapon special that will decrease chance to hit by 10%....
Hey all, I'm new to WML and have been studying the basics to create a simple modification add-on.
Before I get to the meat of the add-on, though, I'd like to setup a proper debugging workflow that would allow me to develop faster, more easily and more correctly.
I'm trying to create a complex animation sequence when spawning a unit. Here's what I want to achieve:
1. Spawn a unit on the map
2. Play the unit's recruit animation (900ms duration)
3. During this sequence:
- Fire a projectile (300ms duration)
- Trigger the target's defend animation ~150ms...
I'm trying to create a critical hit damage thing but the damage doesn't reset to the base damage of the unit after every strike, or in other cases doesn't even increase the damage
is there a simple way to randomize the order of units stored in an array via ?
This is my code, the only issue is when playing it is painfully obvious, that there is a set order whenever this code is called
in case it is important this is the longer version of my code
So i was searching for something about healing values and poison values buy i found nothing, probably missed it. What i'm trying to do is to increase the healing values and the poison damage value. Can someone help me?
Hi, I tried to implement the achievements.cfg and in my UMC .. but it is not showing up in the game menu?
What do I have to do to get it shown up?
And the description is vague .. because I can define my 'root' folder and maybe have stacked _main.cfg files ;)
So you did mean to say that the root...
I need someone to create a new type of terrain for me. It would be walkable lava - using the graphics of shallow lava. The fire elementals that don't fly need to walk on the lava, but not on the lava chasm.
Hello. Ive got a problem with correcting recruit list during campaign. Problem is that leaders has a different recruit list in each scenario. Below is code for end scenario and at the beginning.
Code for scenario end:
Hey, Im working on new campaign and I don't know how to create recall list to have units from first scenario in next one. Anyone could write me here it? I tried my self but it didn't work.
I dont know where in my code is a core of the problem. Ive checked all die events and added if there if variable isnt null then unstore unit. Game is still spamming info about unstoring unit that is null. Anyone can take a look in to abilities.cfg file that you can find in to my addon folder...
Hello! I have macro called spawner. It spawns by default walking corpse at a given x,y coordinate and the last argument is an array of turns to tell when should spawn. My code looks like that:
In use it looks like that:
However the logged message shows that TURNS is 1,6,10,13 and I get the...
Hello! I want to end a scenario when the Caravan and the gear horder unit gets adjacent. So I created 2 moveto event for them to cover the cases when the Caravan moves and when the gear horder moves. However the event triggers always when they make a move action.
Hello! I'm trying to make a realistic zombie campaign. When a living unit gets hit from a walking corpse it turns into a walking corpse. This mechanic works, however the new walking corpse can move and attack immediately and that is not desired. I read the wiki abot unit attributes, so I tried to...
Hello, I'm trying to develop my own factions of catgirls. The art was started and can be found here .
I'm trying to recolor the following sprite with two color ranges. There's the default magenta palette and a new cyan palette. I'd like the magenta to be recolored normally to the team color, but...
20241124 09:19:20 warning ai/ca/testing_ai_default: Leader not found
20241124 09:19:20 warning ai/ca/testing_ai_default: Leader not found
20241124 09:19:21 warning ai/ca/testing_ai_default: Leader not found
20241124 09:19:21 warning ai/ca/testing_ai_default: Leader not found
20241124 09:19:21...
there is a lot of material on how to create good animations (e.g. but it mostly talks about the images part. But another part of the animation is actually in the WML. I.e. things like these:
How far does the unit slide into the tile of the opponent?
Does it maybe even go back before...
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