Search found 1223 matches

by Celtic_Minstrel
October 14th, 2018, 1:30 pm
Forum: Ideas
Topic: Building an alternative to ActionWML
Replies: 42
Views: 1128

Re: Building an alternative to ActionWML

I think "some of" is pretty similar to "not all of", though I suppose not exactly the same. The direct generalization of "xor" to higher arity actually gives "odd number of" which would not be very useful, but I agree that "one of" could be very useful. I don't think "xnor" or its generalization to ...
by Celtic_Minstrel
October 13th, 2018, 11:38 pm
Forum: Ideas
Topic: Building an alternative to ActionWML
Replies: 42
Views: 1128

Re: Building an alternative to ActionWML

That's my point – they are well-defined, yes, but their meaning is not necessarily obvious to someone not already familiar with the math, and I'm actually not certain gfgtdf even used them correctly. I know I've gotten confused about them in the past. I think this is a good way to think about it tho...
by Celtic_Minstrel
October 13th, 2018, 12:40 am
Forum: Ideas
Topic: Building an alternative to ActionWML
Replies: 42
Views: 1128

Re: Building an alternative to ActionWML

Well, "nand" and "nor" are fine as long as "nand" means "not all" and "nor" means "not any", but I find these terms can actually be confusing. I'll also point out that "none" means "not any", so that could be an alternative to "nor". You could rename "nand" to "some", which is functionally similar t...
by Celtic_Minstrel
October 12th, 2018, 2:57 am
Forum: Ideas
Topic: Building an alternative to ActionWML
Replies: 42
Views: 1128

Re: Building an alternative to ActionWML

The [not] tag doesn't make sense extended to higher arities – its underlying operation is "but not", also called material nonimplication, and it's not commutative. However, I think it would make sense to have a "none" option - it's true if all its children are false. If used with only a single child...
by Celtic_Minstrel
October 12th, 2018, 12:15 am
Forum: Ideas
Topic: Building an alternative to ActionWML
Replies: 42
Views: 1128

Re: Building an alternative to ActionWML

The biggest problem I can see with that is that you seem to be using all global functions. I don't think we should be polluting the global namespace with lots of functions like that. I also think the order of arguments is wrong – for the simple case where you want to transform only exactly matching ...
by Celtic_Minstrel
October 6th, 2018, 1:27 am
Forum: Ideas
Topic: Building an alternative to ActionWML
Replies: 42
Views: 1128

Re: Building an alternative to ActionWML

I imagine the implications of attempting to rid the world of ActionWML entirely include positive premises such as changing the standard format for scenario, era, ability & all things WML to such that you'd be writing somesort of lua equivalent datastructures instead of WML datastructures. For an ex...
by Celtic_Minstrel
October 4th, 2018, 11:58 pm
Forum: Ideas
Topic: [engine] alternate meta-condition behavior
Replies: 20
Views: 575

Re: [engine] alternate meta-condition behavior

Which definitely smells of a hack though...
by Celtic_Minstrel
October 4th, 2018, 1:01 am
Forum: Ideas
Topic: [engine] alternate meta-condition behavior
Replies: 20
Views: 575

Re: [engine] alternate meta-condition behavior

It can be made unambiguous, but currently the ActionWML engine only ignores tags that begin with "filter", so it would try to execute the [any_of] . You could of course add additional exceptions in the ActionWML engine if you wanted to, and I guess that could even allow you to do things like this: [...
by Celtic_Minstrel
October 3rd, 2018, 1:57 am
Forum: Ideas
Topic: [engine] alternate meta-condition behavior
Replies: 20
Views: 575

Re: [engine] alternate meta-condition behavior

As it currently stands that syntax would result in the [any_of] tag being taken as ActionWMl rather than a filter; but if wrapped in a [filter] tag I suppose it could work. Not fond of the extra indentation level though. Maybe take any direct keys in [any_of] as belonging to an implicit [filter] chi...
by Celtic_Minstrel
October 1st, 2018, 1:54 am
Forum: Ideas
Topic: [engine] alternate meta-condition behavior
Replies: 20
Views: 575

Re: [engine] alternate meta-condition behavior

To elaborate on that, [not] [x] [y] [z] [/not] means "not (x and y and z)", while [none_of] [x] [y] [z] [/none_of] would mean "not(x) and not(y) and not(z)". Which, for those who've forgotten DeMorgan's law, means [not] [x] [y] [z] [/not] in fact gives "not(x) or not(y) or not(z)" - in other words,...
by Celtic_Minstrel
September 30th, 2018, 8:24 pm
Forum: Ideas
Topic: [engine] alternate meta-condition behavior
Replies: 20
Views: 575

Re: [engine] alternate meta-condition behavior

As I noted in my post, [all_of] appears to be the exact same behavior as [and]. I just picked one of the three at random as an example. In fact I meant to write code for any_of, but after looking at the code I actually wrote, I realized it was all_of, so I changed the tag name. I'm not sure how it'...
by Celtic_Minstrel
September 29th, 2018, 11:01 pm
Forum: Ideas
Topic: [engine] alternate meta-condition behavior
Replies: 20
Views: 575

Re: [engine] alternate meta-condition behavior

I'm not sure, but it might have been done this way to match with how filters work, where you can't get around the need for more than one [and] tag in some situations. That said, I wouldn't be opposed to adding tags like [any_of] , [all_of] , or [none_of] . These could probably even be implemented in...
by Celtic_Minstrel
September 29th, 2018, 10:56 pm
Forum: Lua Labs
Topic: Lua & WML, when to use what?
Replies: 4
Views: 225

Re: Lua & WML, when to use what?

It's possible that ActionWML (the scripting portion of WML) will become deprecated in favour of Lua in a future release. It's far less likely that other uses of WML will be deprecated though.
by Celtic_Minstrel
September 29th, 2018, 10:53 pm
Forum: WML Workshop
Topic: Custom attack special doesn't do anything
Replies: 3
Views: 145

Re: Custom attack special doesn't do anything

you can count the mumber of adjacent unit with that weapon special with a formula [damage] cumulative=yes add = "(size(filter(filter(locations_in_radius(loc, 1), 'loc', unit_at(loc) != null()), 'loc', size(filter(unit_at(loc).attacks, 'att', size(filter(att.specials, 'sp', sp = 'agk_state_attack'))...
by Celtic_Minstrel
September 29th, 2018, 1:55 am
Forum: Ideas
Topic: Building an alternative to ActionWML
Replies: 42
Views: 1128

Re: Building an alternative to ActionWML

Both of those things are probably fixable by representing WML tables (and, perhaps even the attribute values) as userdata instead of raw Lua values. Whether that's actually worth it, I'm not sure (it might have other downsides).