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...
Apparently, you do this through wml.array_access.set, but it doesn't work, not creating new WML variables and not modifying exiting. What am I missing?
Would anyone here be able to create a teleport code that could teleport more than one unit at the same time? Similar to the tag, where we can animate multiple units at once using .
Units that fly, according to flying = yes , should have a unit.flying variable.
For me, in this circumstance, it does not appear. The code below triggers with gryphons, bats, gliders.
And unit.flying never appears.
wesnoth.game_events.fire(name, [first location, ], )
The most common use of event data is to pass in the weapons for an attack event - to do this, add a primary_attack and secondary_attack tag to the config. Other data used by built-in events includes the damage_inflicted value in an attack hit...
This is my fifth add-on, Gui Debug Tools.
It is written completely in Lua.
Current version is 0.10.5 for the 1.16 & 1.17 series.
First released for BfW 1.13.5.
I have found the tools in this add-on useful in making bug reports and developing add-ons.
This code gets called whenever attack starts (to turn on) and ends (to turn off):
The problem: During the attck, unit will still use their normal accuracy, meaning they miss attacks, AND after the attack it says on their weapon -100% , so they can not hit anything.
The intention is that the code...
I noticed that effect apply_to= attack increase_accuracy=1000 and also set_accuracy=100 both get overwritten by marksman/etc. So they have 60% chance instead of 100%. Is there, a solution?
What is there out there?
At this point, I simply detest trying to get anything to line up nicely in a gui. After countless hours of error and trial, I've come no closer to having even a theory about how this stuff works.
I have two lists of units. In the right column, a header and a list of units on the recall list. It's...
hi,
I am trying to iterate over the modifications of a unit to get a specific modifications (trait) but I got an error except a lua or wml table but get unit .
how to fix that? and if someone can tell why is it wrong?
hi. I am trying to convert my droppable potions system from wml to lua. I used on_event context. I noticed that the items (image + table to store locations) are persistent between turns but disappear when I use reload turn. did someone have a clue about that?
I am surrounding. can someone provide me with a function to check if a unit can advance to another unit or to null?
I tried many different methods but I am stock.
Hi,
In tag I can access current unit and current weapon using WFL, which is great
...
BUT I don't know how to compare those two variables, because weapon object is only accessible in ,
which is the only place where unit object is hidden (overwritten with weapon object)...
Hi,
I'd like to simulate upcoming combat in the attack event.
And the wesnoth.simulate_combat requires attacker_weapon_index.
Any idea how to get it from weapon?
Thanks!
Hi,
I'm trying to make a version of that can accept a list of unit id s to simplify (remove) WML to winnow down choices.
The first unit in the list that exists on the map issues the message then the routine quits.
If no unit is found it does nothing (like normal ).
Hi,
I'd like to give a unit new weapon and the documentation says I need a weapon proxy for that.
However, it doesn't tell how to create a new weapon proxy...
So... do you know, how to create a new weapon proxy?
Hi,
I'm working on ability, that gives unit chance to retreat from combat, instead of receiving lethal damage.
How do I fire an event just before my unit should receive a deathblow?
Why does in start event gamemap_size == screen_size ?
How to repair it so gamemap_size == actual_gamemap_size ?
The green area is on x=0. y=0, w = (gamemap_width) , h = (gamemap_height) (so it should be only above the gamemap)
In start event: (doesn't work) Screenshot_20240516_092501.png
In other...
It looks like wesnoth.units.get(id) will only find units on the map, correct? If this is the intended behaviour I'll add a comment to the wiki.
So I switched to using wesnoth.units.find because I want to look at map and recall. Now when I'm done messing with the unit and I want to put it back , I...
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