Search found 719 matches
- May 14th, 2024, 2:36 pm
- Forum: WML Workshop
- Topic: WFL conditionals and variable substitution
- Replies: 9
- Views: 306
Re: WFL conditionals and variable substitution
[if] [variable] name=quests.lilith_deaths greater_than=0 # I wish I could actually test for null ... I think you could replace that with this: [if] [variable] name=quests.lilith_deaths equals="" ... Of course, you would have to switch the [then] and [else] code.
- May 14th, 2024, 1:58 pm
- Forum: WML Workshop
- Topic: [heal_unit] and status=unhealable
- Replies: 15
- Views: 528
Re: [heal_unit] and status=unhealable
Yeah, I saw that somewhere after posting. But from what I've read about [filter_wml] it sounds like there's no penalty for using it where it is not necessary, and that way you don't need to remember if you need it or not in cases you don't deal with regularly. ? The documentation for [filter_wml] s...
- May 14th, 2024, 9:33 am
- Forum: WML Workshop
- Topic: [heal_unit] and status=unhealable
- Replies: 15
- Views: 528
Re: [heal_unit] and status=unhealable
No need for [filter_wml] - just [filter][not]status=unhealable should work (status is part of the StandardUnitFilter).white_haired_uncle wrote: ↑May 13th, 2024, 10:50 pm Or is that just [filter_wml][not]status=unhealable ?
- May 13th, 2024, 6:24 am
- Forum: WML Workshop
- Topic: [heal_unit] and status=unhealable
- Replies: 15
- Views: 528
Re: [heal_unit] and status=unhealable
> N_("This unit is unhealable. It cannot be healed by healers or villages and doesn’t benefit from resting.")); [heal_unit] is not one of conditions mentioned. Exactly. The statement "this unit is unhealable" by its nature covers all conditions. Unhealable is binary, you either ...
- May 12th, 2024, 10:04 pm
- Forum: WML Workshop
- Topic: [heal_unit] and status=unhealable
- Replies: 15
- Views: 528
Re: [heal_unit] and status=unhealable
I don't understand - isn't it just a matter of adding one more filter condition for the status? It seems like it should be pretty trivial to get it working, unless I'm misunderstanding what you're trying to do.white_haired_uncle wrote: ↑May 12th, 2024, 6:22 pm I would if unhealable worked properly, but since it doesn't it's of no use to me here
- May 12th, 2024, 4:08 pm
- Forum: WML Workshop
- Topic: [heal_unit] and status=unhealable
- Replies: 15
- Views: 528
Re: [heal_unit] and status=unhealable
Then they (temporarily) clear the unhealable status, Well, that might work, but: It's a lot of additional code the developer would have to write. It seems like it could have additional side effects; suppose that the unhealable status has some indicator or icon in the user interface. Would clearing ...
- May 12th, 2024, 2:53 pm
- Forum: WML Workshop
- Topic: [heal_unit] and status=unhealable
- Replies: 15
- Views: 528
Re: [heal_unit] and status=unhealable
If it's unhealable, it shouldn't heal IMO. But what if the developer really does want to heal the unit? I think the rationale for this is that the status sets the default healing behavior, but it's not intended to prevent developers from healing the unit programmatically if that's what they want.
- May 7th, 2024, 11:47 am
- Forum: Scenario & Campaign Development
- Topic: WML Guide: feedback requested
- Replies: 42
- Views: 10365
Re: WML Guide: feedback requested
Could you please give me the icon from yours _server.pbl, because icon="story/landscape-bridge.jpg~CROP(0, 0, 72, 72)~BLIT(portraits/humans/mage-arch.png~CROP(54,101,240,260)~SCALE(70,70)~CS(10,10,10)~BG(0, 0, 0), 1, 1)" Shows the icon but doesn't let me publish because of "Invalid i...
- April 26th, 2024, 11:04 am
- Forum: Technical Support
- Topic: [Bug] Prince of Wesnoth freezes
- Replies: 4
- Views: 494
Re: [Bug] Prince of Wesnoth freezes
Could it just call
LuaAPI/wesnoth/units#wesnoth.units.advance
units[i]:advance(false)
instead of units[i]:advance( )
?LuaAPI/wesnoth/units#wesnoth.units.advance
- April 25th, 2024, 3:37 pm
- Forum: Technical Support
- Topic: [Bug] Prince of Wesnoth freezes
- Replies: 4
- Views: 494
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.
- April 24th, 2024, 11:18 pm
- Forum: WML Workshop
- Topic: negative ai aggression
- Replies: 2
- Views: 365
Re: negative ai aggression
I think there are other AI parameters which affect this, too. (e.g., passive_leader)white_haired_uncle wrote: ↑April 24th, 2024, 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: 686
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: 4168
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: 328
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: 495
Re: [have_unit], count, recall list, WFL syntax and wildcards
Don't you need a search_recall_list there?