Search found 710 matches
- 53 minutes ago
- Forum: Technical Support
- Topic: [Bug] Prince of Wesnoth freezes
- Replies: 1
- Views: 37
Re: [Bug] Prince of Wesnoth freezes
I can reproduce it, although if I wait about a minute or so, eventually the scenario does continue. Very strange.
- Yesterday, 11:18 pm
- Forum: WML Workshop
- Topic: negative ai aggression
- Replies: 2
- Views: 82
Re: negative ai aggression
I think there are other AI parameters which affect this, too. (e.g., passive_leader)white_haired_uncle wrote: ↑Yesterday, 9:02 pm I'm tired of standing in an enemy keep, pounding away at the leader and never being attacked in return.
- April 20th, 2024, 7:21 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: 403
Re: where I can use [lua] and it's return value, what I can do in modify_unit
I've noticed that it seems I can't do much inside [modify_unit]. For example, I have tried an failed to print/save the value of $this_unit in various ways, but whatever I try seems to be silently ignored. Can I use [lua] there? Is there a list of places where [lua] is acceptable? Is there a list of...
- April 17th, 2024, 7:09 am
- Forum: Coder’s Corner
- Topic: Seeking tricky WML examples
- Replies: 15
- Views: 3077
Re: Seeking tricky WML examples
#define MY_FORMULA "(if(a = b, 12, 22 ))"#enddef formula = "(base_value + {MY_FORMULA})" Wouldn't it be better to come up with a more minimalistic test case than that? There's so many things going on in that example it's hard to isolate where the issue actually is. #define MY_FO...
- April 16th, 2024, 6:15 pm
- Forum: WML Workshop
- Topic: Filter weapon special in attack_anim
- Replies: 1
- Views: 109
Re: Filter weapon special in attack_anim
thunderstick-miss.ogg?white_haired_uncle wrote: ↑April 16th, 2024, 4:22 pm Bonus question: I'm looking for "explosion-miss.ogg", the sound of an explosive attack failing to ignite. It might be called fizzle.ogg. Anyone have anything FOSS?
- April 14th, 2024, 5:12 pm
- Forum: WML Workshop
- Topic: [solved] [have_unit], count, recall list, WFL syntax and wildcards
- Replies: 4
- Views: 328
Re: [have_unit], count, recall list, WFL syntax and wildcards
Don't you need a search_recall_list there?
- April 11th, 2024, 11:38 pm
- Forum: WML Workshop
- Topic: Now THIS is funny
- Replies: 9
- Views: 494
Re: Now THIS is funny
Do you have an actual space in your folder name? I.e., 3rd Army ? You should rename it and replace the space with an underscore, i.e., 3rd_Army . One wonders why campaign .cfgs that contain all those understrokes I removed work just fine, though. The underscore character should work fine, but spaces...
- April 11th, 2024, 10:16 pm
- Forum: Lua Labs
- Topic: Working lua need advice deciding which method is best
- Replies: 34
- Views: 1702
Re: Working lua need advice deciding which method is best
Are you sure that's not supposed to be
wml.tag.variable
?- April 11th, 2024, 6:17 pm
- Forum: Scenario & Campaign Development
- Topic: Legend of the Invincibles
- Replies: 8125
- Views: 2151940
Re: Legend of the Invincibles
Just installed 1.18 BfW from Steam. Campaign originally played on 1.16. If you want to continue from your save file, you may just want to install version 1.16, because 1.18 is not 100% compatible with 1.16 (and there's no guarantee it will work with save files from 1.16). If you install 1.16 you sh...
- April 11th, 2024, 3:02 pm
- Forum: Lua Labs
- Topic: Working lua need advice deciding which method is best
- Replies: 34
- Views: 1702
Re: Working lua need advice deciding which method is best
I'm not sure I understand what you have in
It might help if you posted the WML code.
unit_filter
.I'm still not clear on whatSpannerbag wrote: ↑April 11th, 2024, 2:04 pm theunit_filter
string (which is the contents of a[filter]
)
unit_filter
is expected to contain.It might help if you posted the WML code.
- April 11th, 2024, 12:16 pm
- Forum: Lua Labs
- Topic: Working lua need advice deciding which method is best
- Replies: 34
- Views: 1702
Re: Working lua need advice deciding which method is best
_G is about Lua variables, [set_global_variable] is about WML variables which are stored in file. Yep, got that - and I think you've answered my question but, to be crystal clear, if something is created by [set_global_variable] , that variable/data will not automagically appear in _G ? That is, th...
- April 11th, 2024, 4:44 am
- Forum: Lua Labs
- Topic: Working lua need advice deciding which method is best
- Replies: 34
- Views: 1702
Re: Working lua need advice deciding which method is best
_("There is a $color $species.") I only speak American, not even English, but that looks like a pain for translators. Would they re-order $color and $species as necessary (in which case this appears to be a preferable alternative to string.format, which I find much more readable)? What ab...
- April 11th, 2024, 3:49 am
- Forum: WML Workshop
- Topic: Okay, what's up with the macros
- Replies: 19
- Views: 1202
Re: Okay, what's up with the macros
I see quite a lot of errors in the code pasted above: The _main.cfg file refers to {~add-ons/my_first_campaign/scenarios} instead of {~add-ons/3rd_army/scenarios} . The scenario .cfg file doesn't have a closing [/scenario] tag. The scenario .cfg file refers to a macro TRAIT_LEADER which doesn't actu...
- April 11th, 2024, 2:31 am
- Forum: Lua Labs
- Topic: Working lua need advice deciding which method is best
- Replies: 34
- Views: 1702
Re: Working lua need advice deciding which method is best
_("There is a $color $species.") I only speak American, not even English, but that looks like a pain for translators. Would they re-order $color and $species as necessary (in which case this appears to be a preferable alternative to string.format, which I find much more readable)? Yes, th...
- April 10th, 2024, 9:10 pm
- Forum: Lua Labs
- Topic: Working lua need advice deciding which method is best
- Replies: 34
- Views: 1702
Re: Working lua need advice deciding which method is best
If you used global variables then stringx.vformat(_("There is a $color $species."), _G) something of this idea will work. _G is table of global variables. The stringx.vformat documentation also suggests using WML variables - then this should work: stringx.vformat(_("There is a $color...