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...
Let's say that I have a unit with a list of custom variables inside modifications.
Now, I need to filter the list of modifications to check if it had a match.
The result will turn false if it had this variables value and true if it hadn't.
If I use tag, the process will be repeated.
For example:...
I am trying to implement some big pieces into my terrain graphics, but the matter is particularly confusing to me. Could you please take a look if there is anything obvious that I am doing wrong?
Some time ago, for my UMC Campaign, I created a Unitmarker system, which lets you label your units, to make it easier to keep track of important ones, that you don't want to lose. (because of a special trait combination, or an item that was given to it for example)
Then I saw, that Admant14...
Hi,
I'm balancing a scenario (v1.16.10 on Windows 11) and would like to tweak the AI recruitment but can't get the exact behaviour I'd like.
I have an AI that has a fairly extensive recuit list but I really want 2 types to be favoured (i.e. have more of them being recruited).
Ok, so maybe the title doesn't really explain perfectly, but I'd like an event where if your unit moves to a cave at 74,28, the unit sees a text like 'gold gold goooold' or something like that.
Then you can choose the give 1 gold, then 2 gold, then 3 gold etc. till 10. As long as you have the gold....
Hello, I am a total beginner in programming, only ever done Scratch, but now I wanted to make a campaign, well firstly a scenario, in Wesnoth. I have some errors in my code that I know of (Like using a variable for the recruit= key), but there is something I don't know why it happens: When I load...
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...
unit's defense depends on terrain it stands on
how to use terrain other than the one unit is currently standing on?
the idea is to use enemy's terrain for determining attacker's defense for close combat encounters, implying that attacking unit has to enter opponent's tile to perform melee attack...
Hi,
Edit: I was doing something stupid; seems I had another instance of BfW running at the same time... :doh:
New PC, very different interface, same dozy user. :augh:
Cheers!
-- Spannerbag
hi everyone! :)
im working on a campaign where i want a couple single units with amlas to change unit type at a certain point of the story regardless of their xp, the changes made from one unit type to another would be minor and wouldnt interfere with amlas.
is this posible? if so how could i do...
I guess this is my first time to get serious with WML and Wesnoth, after all of these years. I tend to make assumptions based upon other languages I've programmed in and that's biting me in the back side! I've searched and read a lot and cannot find a working solution.
Attached is a syntax highlighting definition for TextMate (as far as I know, other there aren't any Mac editor definitions available). Simply uncompress file and double click it.
Requirements:
- TextMate (tested for v1.5.7), shareware version available
Maybe these are more design questions than WML questions, but I feel like I'm missing something, so I'll ask anyway. Is there an easy way to set a side's current gold to a specific value, instead of adding to it? I seem to have figured out how to do it below, but I'm surprised there isn't a more...
I'm playing with Wesband/Weshack and I would like a top-level menu item who's description changes dynamically based upon data about the hex of the mouse-down. I didn't see anything in EventWML and I've seen posts that suggest you can't hook it in lua? Can anybody tell me how I can run some...
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