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...
I have two addons like Extra Weapons Mode and Stats Bonus and problem is that I don't know how to make adding stats works after extra weapons adding. I even used event name from Extra Weapons Mode with higher count value yet still Stats Bonus increase first stats like damage and strikes before...
I would like to ask how to prevent the repeated appearance of abilities when adding them through AMLA (Advanced Multilevel Advancement). Specifically, I have a unit where the first AMLA choice is Leadership, and the remaining unchosen AMLA option is Heal. However, when I try to apply...
I've just noticed, that using array variables e.g. $arrayname. .name inside a prestart event doesn't work. It seems the variable is considered as empty. The solution for me was, to put it in the start event. I'm still curious: Is this a bug or this intended?
Hello! I just wanted to report a bug (maybe it's a bug) and ask a question.
and tags, sometimes doesn't work when the event is 'name= side X turn X' - (EX: side 2 turn 6). The animations don't display correctly (i mean: don't display at all). Is there any issue? :hmm:
The only way I could solve...
How to make AI in WML understand that some hex on map reached with his leader can give it a win in scenario that is playing by AI. I have a x,y point on map that is important for player side. Human will understand after info at the scenario start and label on map but how make it understand by AI?...
How can I implement a weaker version of fearless? that only reduces the penalty by 5 percent (so if the time of day says -15 it would become -10)? if it helps, the trait will only effect units that have a penalty during day time
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:
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