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...
First my add-on was working then I changed the containing folder names to match the add-on better which broke the add-on, at which point i changed just the folder name and it started again. So are there any rules for naming the folder.
For the records the names were Advancment_Test then...
I've been working on making damage events where if someone is standing in a particular place at a particular time, they become liable targets to said damage. I have come over a couple of road bumps though. Firstly, I do not see a way to randomly hit one unit and not another in the defined...
Hello again, I'm having problems understanding variable even after reading the wiki.
My objective is to store the turn at the certain moveto event and three turns later it should fire a new event but I really can't figure this one out so any help is appreciated.
I am working on terrain-related add-ons and I've found code in a water-macro from the dev-team:
And the interesting part is:
is_water isn't documented on the TerrainGraphicsWML , so my question is, what exactly does it do and how does it function? Are there any other key words I can put in into...
Hello everyone, i'm trying to write dialogue and i want any unit from the given side to speak EXCEPT for the leaders.
The scenario has 2 player controlled sides so i want units from both side 1 and side 2 to be able to trigger the dialogue. However i don't want the leaders to speak, for exemple :...
Hey, it's me again. I tried new things and well... At least the scenario starts ? lol.
More seriously, i don't really know why this happens (as i have no error message at all) but at the beginning of my third scenario my 2 player controlles sides do not spawn their leaders (nor the 2 units i want...
Hello everyone, i tried before and here i am trying gain with 0 computer experience whatsoever. I want to make my own campaign.
Looke dup the guide and everything and managed to do my first scenario without any trouble. So naturally i go forward and try to make a second one. Code looks good...
well, one of my persistent problems is droppable items so I appreciate any help here.
i want to create an items where any dying can leave behind an item so create this code (for testing so rand=1, one item with simple name...)
the problem with that code is that the item is always dropped on the...
Hello. I want to create custom economy for my add-on. There should be gold coins, silver coins, magic ore and many more. Is there any way to export these custom variables into ThemeWML or I have to change game's source code?
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.
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....
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...
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