Search found 738 matches

by WhiteWolf
January 14th, 2021, 11:48 am
Forum: Ideas
Topic: [engine] Stop when attacked
Replies: 7
Views: 1870

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

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: 11
Views: 641

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. :(
by WhiteWolf
January 8th, 2021, 8:53 pm
Forum: WML Workshop
Topic: WFL and damage special
Replies: 11
Views: 641

Re: WFL and damage special

Hmm, banner at the top: "Formula AI is still functional for the time being, but it is not maintained any more. That applies to both the code and these wiki pages. " :hmm: I'm guessing it wasn't updated to the 1.15 feature of self, student, attacker, defender, other . EDIT: Btw, since 1.15....
by WhiteWolf
January 8th, 2021, 8:41 pm
Forum: WML Workshop
Topic: WFL and damage special
Replies: 11
Views: 641

Re: WFL and damage special

I'm not a WFL expert, but why do you need to use an external variable? Wouldn't just multiply="(0.01 * defense_on( unit_at(other.loc), other.loc ))" work? Just an idea though. I also didn't find defense_on and unit_at among wiki wfl functions, so I'm guessing they are your custom ones - if...
by WhiteWolf
January 6th, 2021, 11:56 pm
Forum: Scenario & Campaign Development
Topic: The Pool of Ek [SP Campaign] v1.15
Replies: 12
Views: 830

Re: The Pool of Ek [SP Campaign] v1.15

A bug I noticed on the first scenario: on easy mode, if you skip the intro dialogue, then Boolzak only gets a loyal crown overlay, instead of the silver hero crown. If I don't skip the dialogue he gets the correct one though. (Yeah, I'm playing on easy now. I tried on normal initially but gave up af...
by WhiteWolf
January 5th, 2021, 4:15 pm
Forum: Scenario & Campaign Development
Topic: The Pool of Ek [SP Campaign] v1.15
Replies: 12
Views: 830

Re: The Pool of Ek [SP Campaign] v1.15

It looks very promising, congrats on the publishing :) I'll provide feedback to your questions when I find some time to play. For now, a few first-minute observations: after installation the add-on is 100 MB in size - that's huge for a small campaign. I had to check what's making it this big - and i...
by WhiteWolf
January 3rd, 2021, 9:46 am
Forum: WML Workshop
Topic: 3 questions: to_location; chaining events ; store_unit
Replies: 21
Views: 576

Re: 3 questions: to_location; chaining events ; store_unit

So I made two versions of corruption, one for modify_unit and one for modifications . That helped a lot, but it was still flawed when it came to hitpoints. I'll do what you suggested and just use modify_unit for all the corruptions. If you want to stick to your current layout with the macros, it's ...
by WhiteWolf
January 2nd, 2021, 10:41 pm
Forum: WML Workshop
Topic: 3 questions: to_location; chaining events ; store_unit
Replies: 21
Views: 576

Re: 3 questions: to_location; chaining events ; store_unit

I spoke too soon. Evidently I still don't 'get' have_unit . A unit (id=ShroomkinLeader) is injured. When he is fully healed (61 hitpoints) he will speak a message. The code does not work. The message fires the first turn, even though he has fewer than 61 hitpoints. Standard Unit Filter has no hitpo...
by WhiteWolf
January 2nd, 2021, 9:49 pm
Forum: WML Workshop
Topic: 3 questions: to_location; chaining events ; store_unit
Replies: 21
Views: 576

Re: 3 questions: to_location; chaining events ; store_unit

I finally 'get' have_unit . Thanks. For future reference, it also has an option to search on a recall lists as well, and you can even specify the count for the number of units that must match the filter. Neat tools to use. level=0,1 works. Yay. Thanks. Thanks, I added the info that it accepts comma...
by WhiteWolf
January 2nd, 2021, 5:24 pm
Forum: WML Workshop
Topic: 3 questions: to_location; chaining events ; store_unit
Replies: 21
Views: 576

Re: 3 questions: to_location; chaining events ; store_unit

As beetlenaut says, so the standard unit filter keys are recognized. There is a level key, but I don't know if would accept a comma separated list of level=0,1 . (You could test it so that the wiki can be amended with the result info). Otherwise you could just use a formula for this. [have_unit] id=...
by WhiteWolf
January 2nd, 2021, 2:40 pm
Forum: WML Workshop
Topic: "Alert" unit immune to backstab
Replies: 24
Views: 616

Re: "Alert" unit immune to backstab

Also the damage is not doubling and the attack name is not changing from "sting" to "precision sting." [effect] apply_to=attack name=precision sting increase_damage=100% [/effect] I think here's the problem: name in an attack effect is a filter for which attack to modify, and it...
by WhiteWolf
December 31st, 2020, 11:41 am
Forum: WML Workshop
Topic: 3 questions: to_location; chaining events ; store_unit
Replies: 21
Views: 576

Re: 3 questions: to_location; chaining events ; store_unit

No worries, trial and error is probably the best way to learn :) I wonder how much of my code is not exactly logical and proper? It all seems to work, though. You may not realize that now, but this is actually a very good approach. You can always optimize your code later . It's a good mindset to fir...
by WhiteWolf
December 30th, 2020, 2:08 pm
Forum: WML Workshop
Topic: 3 questions: to_location; chaining events ; store_unit
Replies: 21
Views: 576

Re: 3 questions: to_location; chaining events ; store_unit

But this is not how the + syntax is supposed to be used. It doesn't "link" tags as you previously put it - it appends to the end of it. So stuff [/tag] [+tag] other stuff [/tag] Is equivalent to stuff other stuff [/tag] Therefore this question: Does the +tag work with events that have mult...
by WhiteWolf
December 29th, 2020, 8:18 pm
Forum: WML Workshop
Topic: 3 questions: to_location; chaining events ; store_unit
Replies: 21
Views: 576

Re: 3 questions: to_location; chaining events ; store_unit

I thought it would be a good idea to link event s like this... (I was afraid maybe they would not fire in the right order, otherwise). I don't think there's a single "correct" way, it entirely depends on what you want to achieve exactly. :) The +tag way appends the previous matching tag, ...