Search found 2998 matches
- Yesterday, 6:44 pm
- Forum: WML Workshop
- Topic: [anitmation] conditionals
- Replies: 5
- Views: 143
- Yesterday, 6:41 pm
- Forum: Lua Labs
- Topic: glitchy add_hex_overlay animation
- Replies: 7
- Views: 164
Re: glitchy add_hex_overlay animation
I ran multiple lua wesnoth.interface.add_hex_overlay(42, 23, {halo="projectiles/fireball-impact-[1~16].png~SCALE(200,300):[60*16]"}) over time on same hex and I still dont see anything glitchy.
- April 17th, 2024, 3:29 pm
- Forum: WML Workshop
- Topic: [solved] result of conditional with invalid qualifier
- Replies: 4
- Views: 131
Re: result of conditional with invalid qualifier
You could make https://github.com/wesnoth/wesnoth/blob ... ls.lua#L25 wml.error if none of comparisons is provided.
- April 16th, 2024, 11:38 pm
- Forum: Coder’s Corner
- Topic: Seeking tricky WML examples
- Replies: 14
- Views: 2910
Re: Seeking tricky WML examples
There is no general way to escape quote, without using << >> as outer quotes instead. Normally to escape quote you need to double it.
- April 16th, 2024, 11:32 pm
- Forum: WML Workshop
- Topic: traits
- Replies: 15
- Views: 348
Re: traits
All abilities that are "somehow linked" rely on [event] or their Lua equivalent. You need to locate where they are, and bring them over to your addon. Search by ability id help to find them.
- April 16th, 2024, 2:30 pm
- Forum: Ideas
- Topic: Twitch integrations?
- Replies: 2
- Views: 103
Re: Twitch integrations?
Just use :gold then.
- April 16th, 2024, 2:28 pm
- Forum: WML Workshop
- Topic: traits
- Replies: 15
- Views: 348
Re: traits
From code review, unit should be hidden during night on specific terrain. You did not say what situations you tested.
- April 15th, 2024, 11:30 pm
- Forum: WML Workshop
- Topic: traits
- Replies: 15
- Views: 348
Re: traits
You should clarify what you mean by doesnt work.
- April 15th, 2024, 9:30 am
- Forum: WML Workshop
- Topic: Let the gold rain down!
- Replies: 13
- Views: 484
Re: Let the gold rain down!
Spaces in event names can be interchanged with underscores (for example, name=new turn and name=new_turn are equivalent).
- April 15th, 2024, 7:59 am
- Forum: WML Workshop
- Topic: Let the gold rain down!
- Replies: 13
- Views: 484
Re: Let the gold rain down!
Looks correct name.
- April 14th, 2024, 11:57 pm
- Forum: WML Workshop
- Topic: Setting multiple objectives
- Replies: 5
- Views: 141
Re: Setting multiple objectives
Check all of these conditions before using [endlevel].
- April 13th, 2024, 5:59 pm
- Forum: Lua Labs
- Topic: [closed] remove unit from array
- Replies: 11
- Views: 423
Re: remove unit from array
Because u.id is empty.
- April 13th, 2024, 5:56 pm
- Forum: WML Workshop
- Topic: variable expansion
- Replies: 4
- Views: 305
Re: variable expansion
It is possible to make it shorter but I think it is not worth the effort yet. Your first example looks similar to orocia upgrades before I rewrote them in Lua.
If you want to try then yes, [insert_tag] will solve your use case.
If you want to try then yes, [insert_tag] will solve your use case.
- April 13th, 2024, 9:41 am
- Forum: Lua Labs
- Topic: [closed] remove unit from array
- Replies: 11
- Views: 423
Re: remove unit from array
wml.find_child also gives you index, if u_table only contains tag of that name just use table.remove with that index.
And your version doesnt work because you havent read wml.remove_children documentation.
And your version doesnt work because you havent read wml.remove_children documentation.
- April 11th, 2024, 10:19 pm
- Forum: WML Workshop
- Topic: Now THIS is funny
- Replies: 9
- Views: 463
Re: Now THIS is funny
Once wesnoth knows your addon is invalid it does not bother looking again. You can use f5 to let it try again. Some kinds of errors also require manually deleting cache files.