Search found 773 matches

by WhiteWolf
April 11th, 2021, 9:01 am
Forum: Forum Games
Topic: Puzzle challenges!
Replies: 231
Views: 126463

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

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

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

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

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

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

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

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: 12
Views: 2147

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: 12
Views: 2147

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: 28
Views: 5080

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: 28
Views: 5080

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

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

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

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...