Search found 750 matches

by WhiteWolf
June 8th, 2021, 9:14 am
Forum: WML Workshop
Topic: Help needed for "name=attacker hits" event
Replies: 2
Views: 120

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: 145

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: 257

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: 670

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: 190

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: 514

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: 868

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: 82389

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: 689

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: 413

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: 413

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: 590

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.
by WhiteWolf
January 14th, 2021, 11:48 am
Forum: Ideas
Topic: [engine] Stop when attacked
Replies: 8
Views: 2766

Re: [engine] Stop when attacked

cancel auto move orders for units that have _not_ seen a newly discovered unit (one that stops only the first unit to spot it... the following units keep going...). I'm not sure I entirely understand. Wouldn't this just mean cancelling all orders unconditionally? It's been a while since I actually ...
by WhiteWolf
January 9th, 2021, 7:45 pm
Forum: WML Workshop
Topic: formula help for a weapon special needed
Replies: 26
Views: 1611

Re: formula help for a weapon special needed

I think the issue is that damage_inflicted is a WML variable, not a WFL one. When you wrote value=-($damage_inflicted) , because the minus was before the parentheses, I don't think it's evaluated as a formula anymore, that's why it worked - it just substituted the wml variable. I think you don't nee...
by WhiteWolf
January 8th, 2021, 9:23 pm
Forum: WML Workshop
Topic: WFL and damage special
Replies: 12
Views: 1779

Re: WFL and damage special

Ah, so defense is a map object. Well, I have no idea how to get the terrain for it from the defending unit if defender doesn't seem to work properly.
I guess someone with more in-depth knowledge about wfl and the 1.15 stuff should take a look at what's going on. I'm out of ideas. :(