Search found 753 matches

by WhiteWolf
July 19th, 2021, 9:54 am
Forum: WML Workshop
Topic: Help needed with a "saviour" ability
Replies: 11
Views: 322

Re: Help needed with a "saviour" ability

Well, I was quoting the note at this section , and I remember it not working for me at filtering time. That was a long time ago, it may have been changed since :) I think I recall a similar issue where hitpoints weren't tracked "live" during these events, and if it got below zero, the atta...
by WhiteWolf
July 18th, 2021, 10:28 pm
Forum: WML Workshop
Topic: Help needed with a "saviour" ability
Replies: 11
Views: 322

Re: Help needed with a "saviour" ability

The second_unit variable is not stored at the time of event filters, so you can't use it in [filter_condition]. Automatically stored variables such as this are stored at the time they are first accessed inside the event (so not yet at filtering-time). To get an "attack hits" event, you nee...
by WhiteWolf
June 23rd, 2021, 4:56 pm
Forum: WML Workshop
Topic: Problem with [set_extra_recruit]
Replies: 1
Views: 96

Re: Problem with [set_extra_recruit]

Don't use an explicit [filter] tag inside [set_extra_recruit]. It takes the standard unit filter keys directly as arguments. https://wiki.wesnoth.org/DirectActionsW ... recruit.5D
by WhiteWolf
June 8th, 2021, 9:14 am
Forum: WML Workshop
Topic: Help needed for "name=attacker hits" event
Replies: 2
Views: 155

Re: Help needed for "name=attacker hits" event

To be honest, I find it strange that this even starts with the game. :) Opening and closing tags don't match: you close [specials], leaving it currently in an [attack], putting an event there (which won't work in an [attack] tag), and then you open a [+abilities] tag, that's getting closed by [/spec...
by WhiteWolf
June 7th, 2021, 8:35 am
Forum: WML Workshop
Topic: [event] and [message]
Replies: 2
Views: 174

Re: [event] and [message]

You can use radius with [filter_location] : [filter] side = 1 [filter_location] x,y=9,29 radius=1 [/filter_location] [/filter] [message] takes no explicit [filter] tag, you can put the filter keys directly into it instead: [message] type = Peasant message= _ "..." [/message] Keep in mind, ...
by WhiteWolf
May 28th, 2021, 5:15 pm
Forum: WML Workshop
Topic: How to use extra animations in an event
Replies: 3
Views: 287

Re: How to use extra animations in an event

[animation] is not action WML, you're probably looking for [animate_unit].
by WhiteWolf
May 21st, 2021, 11:15 pm
Forum: Art Contributions
Topic: missing portraits
Replies: 7
Views: 744

Re: missing portraits

Neat looking fire guardian! I really like the overall approach and the smoke, great job. :D If you're looking for some feedback on improvements: I think the flames look a bit strange at places, especially the contour on the right-side arm (left arm in his perspective). I don't know I'm not an artist...
by WhiteWolf
May 16th, 2021, 12:01 pm
Forum: WML Workshop
Topic: Is it possible to remove effects from Objects using [remove_object]?
Replies: 2
Views: 234

Re: Is it possible to remove effects from Objects using [remove_object]?

Moved to WML Workshop. This code looks good to me, unless I too am missing something, it should work like this. [remove_object] indeed takes no [filter] tag, so this event should remove the objectone object from every unit that has the oneability at the time when the event fires. If it doesn't work...
by WhiteWolf
May 14th, 2021, 8:24 am
Forum: WML Workshop
Topic: [1.14.16] unstore_unit with fire_event=no
Replies: 10
Views: 577

Re: [1.14.16] unstore_unit with fire_event=no

Until someone can clarify what's going on with the changes between versions, you could try a cheap workaround: Add a condition to your post advance event: [filter_condition] [variable] name=temp_disable_event not_equals=yes [/variable] [/filter_condition] Then before you'd unstore the unit just crea...
by WhiteWolf
April 17th, 2021, 8:45 am
Forum: WML Workshop
Topic: [portrait] What on earth is this?
Replies: 3
Views: 898

Re: [portrait] What on earth is this?

As far as I remember it was used to set some properties like "always on the right" in case of a few select units, and things like that. These seem to be done by IPF now, probably that's why the tag got deprecated somewhere.
by WhiteWolf
April 11th, 2021, 9:01 am
Forum: Forum Games
Topic: Puzzle challenges!
Replies: 231
Views: 83462

Re: Puzzle challenges!

The solution I know for this is encoding the next box info with "black, white, black box, white box" (except I know the riddle told with hats, but its the same), that way you don't have to twist the pronunciation. ;)
by WhiteWolf
March 2nd, 2021, 9:38 pm
Forum: WML Workshop
Topic: Escape commas
Replies: 4
Views: 712

Re: Escape commas

Maybe there's a way to escape them inline, I don't know about that, but otherwise you can just do this: {RANDOM 0..3} [switch] variable=random [case] value = 0 {VARIABLE insult ("Have at you!")} [/case] [case] value = 1 {VARIABLE insult ("Come on then, you walking sack of meat!")...
by WhiteWolf
February 26th, 2021, 1:23 pm
Forum: WML Workshop
Topic: A couple of questions about WML events
Replies: 4
Views: 433

Re: A couple of questions about WML events

Yes that's right, it would only be applied to code that you write. So player actions or additional code loaded by other mods won't be subject to this. I'm moderately certain that in lua it's possible to somehow hook into the core implementation of the tags and set your triggers there, so that it wou...
by WhiteWolf
February 26th, 2021, 11:52 am
Forum: WML Workshop
Topic: A couple of questions about WML events
Replies: 4
Views: 433

Re: A couple of questions about WML events

I doubt that predefined events exist for 1-3). The workaround I'd use is the same for all of them: define my own methods of performing these tasks (either by a WML macro, or the nicer way is probably to define your own tags in Lua) and adding a fire_event call to a custom named event. So for example...
by WhiteWolf
February 7th, 2021, 6:19 am
Forum: WML Workshop
Topic: canrecruit=yes as an AMLA option
Replies: 9
Views: 609

Re: canrecruit=yes as an AMLA option

You could alternatively just give a dummy placeholder ability with the AMLA, and then use a global "post advance" event to filter for units with this ability, give them actual canrecruit, and remove the dummy ability.