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,
I don't know if this is on topic or off topic.
if it isn't, I , really sorry
So, is there a way to update maps (and scenarios if ever possible) between different releases of wesnoth?
I mean instead of redesigning them hex by hex and line by line :cry:
After adding a fair chunk of new code I decided to playtest from the start again (new campaign).
I had not changed scenarios 1 or 2, made minor changes to scenario 3, added lots of macro code and done stuff in the later...
I am trying to create a custom race for an era that I am making. The main purpose is to have a names list separate from wesnoth core, that might be found in another nation. However, units that I assign this race to always show up in miscellaneous.
Is there a way to see the value of this variable during the gaming process? Something like 'print()' in python.
Or there is no way to do it, and I should use a Lua method instead (and how)
I have recently ran into some problems with coding, the first one is rather straight forward, I am trying to get the total number of sides in the current game. and not sure what's the code for it, tried num_sides, sides, etc... the example below I am using teams, but doesn't work either....
Here you can give me, Pipapopinguin, feedback about my add-on Breeze/Wind Modfication. I know that it currently just works on normal grass tiles. You can also give suggestions on where to bring this add-on next, but keep mind that I'll hve to programm and paint that stuff myself.
I have a unit I would like to transform back and forth with another when you right click on him and select the button on the context menu. Unfortunately, I have no idea how to do this, which is why I am asking for ideas. Any response would be appreciated.
I want all units to deal half their usual damage when they miss and full damage when they hit
damage can be inflicted with but need to know how much to inflict, taking into account all applicable abilities, weapon specials, traits, resistances etc
doing it manually is very error-prone
one possible...
I have a few questions about the codes which I am stuck on.
1) (resolved) How do I go about stopping a faction from being selected if a player select random factions? I tried the 'random_faction', 'choices' and 'except' but I am not achieving the results that I want. The reason I am...
Hi all,
Beginning to wish I'd never started a quick, simple campaign as a side project - it's taking ages and is throwing up all sorts of unexpected issues :(
Latest is very odd behaviour regarding unit description.
Everything works fine in the sidebar (screen grab below):
Sidebar.png
Hi all !
In former versions (at least in 1.12) it was possible to add extra keys in unit_type, say something like capacity=12 and this extra key was added to the unit created after this definition.
It's still possible to add extra keys in unit_type block, but it seems to me they're no more reported...
Hello,
I'm playtesting a scenario and decided to slightly modify the defense of a couple of unittypes by adding a defense cap.
No issue there; it all worked fine.
However I'm having difficulty adding a to an existing unittype.
Can this be done?
Here's the relevant code (trimmed for brevity):...
I am finishing with a MP era I have been working on for the past week, just have 2 special units I wanted to add, each with it's own respective challenge which I have not been able to overcome. Both of which should have been quite simple.
Okay, so I have made a habit of getting ideas for abilities from other developers, and I often try to reuse the abilities, or modify them to my needs. However, I have never been able to reuse abilities that have been split into multiple parts. Anyway, I would like some solutions if you have any,...
Hi everyone !
When tuning long and complex scenarios, I would find very handy to replace an event (subroutine) with a new version without restarting the scenario from beginning. Suppose we have an event whose id is LSB_EnableUnitMenu.
I execute first the following code:
Hi, I started learning WML few months back and I have been experimenting with it some time now. I hit a wall trying to figure out why I can't get my unit which has a role to say anything in messages.
Here in prestart I gave the role
And in here I gave him something to say but for some reason the...
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