This lists removed WML functionality and helpful hints for avoiding pitfalls.
A similar thread for changes before 1.16 can be found here .
Compatibility breaking (requires updates to work)
no longer sets the heal_amount variable, instead supporting the variable attribute. This variable will be...
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...
As the title says: I'm trying to place a signpost in one of my scenarios to make the player win the level if he moves the leader on that given hex. I already did implement a moveto event (which results in winning the level itself) that works great, but I cannot find a way to place...
My scenario starts off by generating 2700 hexes. This takes less than a minute.
Every turn, I move 2700 hexes and generate 180. This takes a few seconds.
But when I try to individually move 2700 tiles worth of shroud, it takes more than a minute. Why???
Is there a way to change the side of the units (including the leader)?
To be precise, I want a particular side (say side 1) to acquire all the units of another side (for example, side 2), including the leader. I also want that the death of the leader of the acquired side causes the...
I have an event here that recreates a surprise attack on ambushes. It does a fixed damage to the ambushed unit relative to the attacks it could have done by subtracting a percentage equal to the defense of the terrain. After the calculations, and once the corresponding value is obtained, a is...
I'm trying to redo some foreach with macro to accommodate the new tag and avoid deprecated warning messages, and I found this nesting too complex to get right without errors. Could someone help me with adapting this? It will serve for me as a base to do the rest (less complex) without errors.
This...
I suggest that you skip to page 4 and read my post at the top. It has the functional code and an explanation. All the earlier posts are related to debugging.
+++++++++++++++++++++++++++++++++++++++++++++++++++
There are gaps in my knowledge of wml big enough to drive a truck through. So I've...
Hi wesnothians,
after some months awway, it seems that I forget some basics. I want to give a special weapon the ability to attack multiply units ( explosion ).
I tried both LotI code and the wiki code, they didn't work with me (the LotI code contain parts coded in many .cfg and I didn't find the...
How can I insert a section (with my own subsections) at the end of the help manual with an addon? I can't find any usage examples, and the documentation refers to how is built into the main game.
Problems:
- There is no name=ambush or similar that is triggered on ambushes.
- Note that:
ability_type=hides is used to determine if the unit has a hide ability
ability_type_active=hides is used to determine if the unit can hide in the terrain and time of day where it is located (only...
I have a mod that gives their own icon to certain units they can recruit but are NOT the leader.
I'm using this to replace icon on an unit with canrecruit=yes, but doesn't work. Using replace= is the same as add=, both add my custom icon over the gold crown of the new unit that can recruit. How...
I have a custom unit with an ability to make it explode upon death, damaging adjacent units, including allies. I can't get the filter to work properly. I've tried multiple configurations. And I've tried both and .
Usually, the explosion damages every unit on the map, regardless of distance from...
How do you access the terrain code where a unit is standing, so I can input it into set_variable ?
My snow monster has an attack called avalanche . After the attack ends, the terrain under the enemy unit's feet needs to be transformed into its snow or ice variant.
I have a scenario where I want to modify the default AI slightly. I want the AI to target the side 1's enemy leader a little bit more than usual. This is not something that's easy to play-test, so I'd like some input on what number to use.
Also, am I setting up the AI modification correctly?
I have an event on post_advance that calls another custom event. This custom event randomizes a gift, and first checks that the gift can be granted. In this case, I want to check if the unit that just advanced has a melee weapon available. If not, the same event is repeated again until a filter is...
I want a character to recognize a third-party characters variable name, I've tried setting the name to a variable but I don't know how to retrieve that value.
I'm sure it's not even an issue for anyone with experience, I've just been scratchin my noggin over it for more than needed. :doh:
Changing this status to yes makes the unit visible, but it doesn't prevent do ambushes anyway, right? Does anyone know how to avoid that in addition to unhide it, it cannot make ambushes?
Here is an event that increases the level number every time a unit levels up AMLA, not only to keep track of how many times it has leveled up, but also to increase its upkeep cost, leadership skill, and experience enemies receive by attacking or killing him.
I'm working on a scenario with 3 opposing sides and 30 villages. I'd like to change the rules a little so that each of the three opposing leaders can only collect income from a maximum of 10 villages.
Note: there is no limit to the number of villages a side may flag; however, any flagged villages...
I recently uploaded a campaign, written for BfW 1.16. It's called Frogfolk Delivery Service.
Shortly after uploading it, I got feedback about error messages. I solved some of the errors, but not these.
How do I fix them?
Also, how do I view the error log? I'm not seeing an error messages when I...
My hero wanders in and out of a scenario as part of a SP campaign. He alters events and once altered wants to return to the scenario later as it was left. So the events need to know they have been triggered and not reloaded from scratch. Is there a way to save and load a scenario, including...
This question is about the duration of an event id. In the event below I erase it after one use
and the ID is unique because it is once per x,y coord. But that is per scenario. Does this id exist
in the campaign into the next scenario? Do I need to append the scenario name to the id?
Hi. Would somebody show me how to use ?
In my scenario, the player must travel around the map gathering items until they reach a specific amount and win the scenario. I want the player to be able to check on their progress via the objectives window, just in case they lose track of how many items...
I am trying to find out if any unit on side 1 can make a move.
What I want is if all the indicators are red then noone has a move left.
So I tried this, but after killing enemy units it seems to not think all units are moved.
Should this work--is there is mistake in my or formula logic?...
This is more of a bug report than advice on WML, but it straddles the two categories of WMl and technical support. Other people have previously reported this issue, but it's the first time I've seen it myself.
So, in my UMC, if you save and reload, some of the units disappear - but only units...
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