Search found 3006 matches
- Today, 3:55 pm
- Forum: WML Workshop
- Topic: [solved] comma = or syntax
- Replies: 4
- Views: 104
- Today, 2:38 pm
- Forum: WML Workshop
- Topic: [solved] comma = or syntax
- Replies: 4
- Views: 104
Re: comma = or syntax
For multiple assignements on one line you can do equals,name=3,unit.level. If values to be split themselves contain comma you can probably do something with quotes, but not sure. For single key like type=Ghost,Wraith,Shadow it is only supported in keys where such support was intentionally added. I d...
- April 22nd, 2024, 1:19 pm
- Forum: WML Workshop
- Topic: [solved] where I can use [lua] and it's return value, what I can do in modify_unit
- Replies: 12
- Views: 388
Re: [solved] where I can use [lua] and it's return value, what I can do in modify_unit
If you give array to insert_tag it inserts multiple tags.
https://github.com/ProditorMagnus/Hide_ ... /_main.cfg
https://github.com/ProditorMagnus/Hide_ ... /_main.cfg
- April 20th, 2024, 7:32 pm
- Forum: WML Workshop
- Topic: [solved] where I can use [lua] and it's return value, what I can do in modify_unit
- Replies: 12
- Views: 388
Re: where I can use [lua] and it's return value, what I can do in modify_unit
[lua] as actionWML is wesnoth.wml_actions.lua, while [lua] in [if] is wesnoth.wml_conditionals.lua. From wml point of view both are [lua], but behaviour is different. There are similar examples for example [object] as actionWML is different from [object] in tags such as [modify_unit].
- April 20th, 2024, 6:54 pm
- Forum: WML Workshop
- Topic: [solved] where I can use [lua] and it's return value, what I can do in modify_unit
- Replies: 12
- Views: 388
Re: where I can use [lua] and it's return value, what I can do in modify_unit
You can do [modify_unit] part also in Lua https://wiki.wesnoth.org/LuaAPI/wesnoth/units#wesnoth.units.add_modification Example https://github.com/ProditorMagnus/OrociaRandomMod/blob/master/lua/spawn_functions.lua#L93 where effect definition is in https://github.com/ProditorMagnus/OrociaRandomMod/blo...
- April 20th, 2024, 11:54 am
- Forum: Scenario & Campaign Development
- Topic: No Randomness Mod Released
- Replies: 56
- Views: 29550
Re: No Randomness Mod Released
1.18 wesnoth.deepcopy() does not work on wml tables, better use wml.clone for them.
- April 19th, 2024, 5:02 pm
- Forum: Lua Labs
- Topic: [closed] Custom dialog placement
- Replies: 18
- Views: 468
Re: Custom dialog placement
https://wiki.wesnoth.org/index.php?search= first, when that does not give anything then https://github.com/search?q=repo%3Awesn ... &type=code
- April 19th, 2024, 4:03 pm
- Forum: Lua Labs
- Topic: [closed] Custom dialog placement
- Replies: 18
- Views: 468
Re: Custom dialog placement
Search finds where it is published.
- April 18th, 2024, 6:44 pm
- Forum: WML Workshop
- Topic: [anitmation] conditionals
- Replies: 5
- Views: 206
- April 18th, 2024, 6:41 pm
- Forum: Lua Labs
- Topic: glitchy add_hex_overlay animation
- Replies: 7
- Views: 217
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: 200
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: 15
- Views: 3045
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: 393
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: 135
Re: Twitch integrations?
Just use :gold then.
- April 16th, 2024, 2:28 pm
- Forum: WML Workshop
- Topic: traits
- Replies: 15
- Views: 393
Re: traits
From code review, unit should be hidden during night on specific terrain. You did not say what situations you tested.