Search found 114 matches

by Pilauli
October 29th, 2020, 3:14 am
Forum: WML Workshop
Topic: Problem with filtering unit movement points
Replies: 3
Views: 381

Re: Problem with filtering unit movement points

moves= doesn't actually seem to be a valid key in the standard unit filter. (https://wiki.wesnoth.org/StandardUnitFilter - [have_unit] uses the standard unit filter, and returns true if there is a unit that matches it, so I'm going to be talking about filters through most of this post.) You know ho...
by Pilauli
October 28th, 2020, 4:32 pm
Forum: Art Contributions
Topic: Grand Portrait List - 2020 update
Replies: 58
Views: 78307

Re: Grand Portrait List - 2020 update

Quibbles: - There is too a Elvish Druid portrait. https://units.wesnoth.org/1.15/mainline/en_US/Elvish%20Druid.html - There isn't a female lich sprite, so if you want to be really consistent with the naginis you mentioned earlier, you ought to write "Female Lich (sprite too)". My first rea...
by Pilauli
October 27th, 2020, 8:16 pm
Forum: WML Workshop
Topic: [store_unit_defense]
Replies: 6
Views: 629

Re: [store_unit_defense]

Are you trying to check the unit's defense on a particular tile, or are you trying to check its defense on a particular terrain type? I had some ideas, and I've now actually written up some little code samples, so you don't have to answer that question after all. Except inside your own head. Inside...
by Pilauli
October 21st, 2020, 4:48 pm
Forum: WML Workshop
Topic: Gaining XP whenever a unit is killed by plague
Replies: 28
Views: 1550

Re: Gaining XP whenever a unit is killed by plague

it seems like a weird undocumented feature, which also means there's no guarantee that it will continue to work in later versions. Matching the id with special= is actually documented, although deprecated in recent development versions. From the wiki: special: filter on the attack's special power, ...
by Pilauli
October 21st, 2020, 5:17 am
Forum: WML Workshop
Topic: Gaining XP whenever a unit is killed by plague
Replies: 28
Views: 1550

Re: Gaining XP whenever a unit is killed by plague

Yes, argh. My preliminary results are as follows: I stripped out all of the "optional" stuff, added an indicator, and set up a very simple test scenario. It seems to work so far... [event] name=die first_time_only=no [filter_second_attack] special=plague [/filter_second_attack] [message] s...
by Pilauli
October 21st, 2020, 4:58 am
Forum: WML Workshop
Topic: Gaining XP whenever a unit is killed by plague
Replies: 28
Views: 1550

Re: Gaining XP whenever a unit is killed by plague

This masks the problem a little bit, but doesn't solve it. The trouble is that Wesnoth isn't seeing the filter for the special properly. And, er, I'm not sure why. So now I should probably either go to sleep (it's late where I am) or else try random things until I can get it to work. Which one sound...
by Pilauli
October 21st, 2020, 4:39 am
Forum: WML Workshop
Topic: Gaining XP whenever a unit is killed by plague
Replies: 28
Views: 1550

Re: Gaining XP whenever a unit is killed by plague

AAAAAAAAAGH FILTERS LOL

Put "fungal plague" into quotes or parentheses, just to make sure that Wesnoth processes it as a whole word.

Try commenting out the killer-is-not-Moho part, temporarily, to see if that works.

If neither of those work, I'll have to think about it some more.
by Pilauli
October 21st, 2020, 4:11 am
Forum: WML Workshop
Topic: Gaining XP whenever a unit is killed by plague
Replies: 28
Views: 1550

Re: Gaining XP whenever a unit is killed by plague

Hah, okay, well, I just edited my last post (because I didn't see you post), so you can try what I wrote in there. Does fungal plague itself work? As in, does it properly make a fungus zombie or whatever it's supposed to make, when a unit with a fungal plague attack kills another unit? If so, I don'...
by Pilauli
October 21st, 2020, 3:54 am
Forum: WML Workshop
Topic: Gaining XP whenever a unit is killed by plague
Replies: 28
Views: 1550

Re: Gaining XP whenever a unit is killed by plague

I suspect that the special=fungal plague part isn't working right. I'm going to do research on the wiki, but if you see this before I finish my research, then you can test the following to see if I'm on the right track: Have one unit (which is not Moho and does not have the special attack) kill anot...
by Pilauli
October 21st, 2020, 3:13 am
Forum: Multiplayer Development
Topic: What do you think about the looks of new mushroom grove terrain in 1.15 Wesnoth?
Replies: 17
Views: 2662

Re: What do you think about the looks of new mushroom grove terrain in 1.15 Wesnoth?

On the example above [fungus over water], if we'd use the hold-shift option, the terrain wouldn't fulfill it's intended purpose anymore (slowing down fishes) Technically, it would slow down fishes. Fungus takes better defense and worse movement. They could defend it just fine, but it would definite...
by Pilauli
October 21st, 2020, 1:57 am
Forum: WML Workshop
Topic: Gaining XP whenever a unit is killed by plague
Replies: 28
Views: 1550

Re: Gaining XP whenever a unit is killed by plague

[event] name=last_breath [filter] race=elf [/filter] [filter_second] race=orc [/filter_second] [message] speaker=unit message= _ "I am a lovely elf, but a vicious orc killed me!" [/message] [message] speaker=second_unit message= _ "I am a strong orc, and I just killed one of those an...
by Pilauli
October 20th, 2020, 10:15 pm
Forum: WML Workshop
Topic: Gaining XP whenever a unit is killed by plague
Replies: 28
Views: 1550

Re: Gaining XP whenever a unit is killed by plague

In last breath, you're filtering based on the dying unit's side. It says "I am a side 2 unit". Let me write you another example: [event] name=last_breath [filter_second] side=1 [/filter_second] [message] speaker=unit message= _ "I don't know what side I am on, but I do know that I am ...
by Pilauli
October 20th, 2020, 4:02 pm
Forum: WML Workshop
Topic: Gaining XP whenever a unit is killed by plague
Replies: 28
Views: 1550

Re: Gaining XP whenever a unit is killed by plague

In a die event, [filter] generally filters the unit that just died. Try changing [filter] to [filter_second] to filter the "second unit" that killed the recently-deceased unit, while sticking with the die event. If that doesn't work, I'll try to research it later when I have more time.
by Pilauli
October 20th, 2020, 2:53 pm
Forum: Art Workshop
Topic: A quick question regarding Unit art...
Replies: 3
Views: 1088

Re: A quick question regarding Unit art...

If you do that, your add-on won't match the rest of the Wesnoth style very well. It will, however, be more consistent with any other add-on that goes for multiple soldiers per unit. I don't have strong opinions either way, but I lean in the direction of consistency and often like to pretend that ind...
by Pilauli
October 19th, 2020, 9:31 pm
Forum: WML Workshop
Topic: How to add custom terrains
Replies: 4
Views: 818

Re: How to add custom terrains

Okay, I've tested some things, and it looks like you can use any terrain that you include in an #ifdef MULTIPLAYER section in any multiplayer game. (I'm not sure whether that's only required for the host, or whether it's required for everyone playing, but if you are playing a local game, then it won...