Closed SomeTroglodyte closed 1 month ago
As for MultiFilter - the wiki claim "[non-[{Wounded} {Armor}]] units
will not work" is true, but the reason is not to the point. It is because the applicability test for the and
test is lax. Testing all elements of the syntax actually makes that example work correctly.
I like the idea of tileFilter supporting specific tile locations, has a lot of merit!
I'm all for tile-entering triggers, would be easy to implement as long as we don't mind it triggering multiple times - if we need to keep track that's more complicated
Campaigns - so far we hardly have any real scenarios, so talking about campaigns is very premature
very premature
True, very, but having a vision leaking to the modder community may spark interest in scenario development..
as long as we don't mind it triggering multiple times
Which signposts should normally do. But a repeat control for any type of event is a good to-do anyway, and - isn't there a comment saying so already? Don't we have <once>
already, we'd just have to make it work for events (and choices!)... "Just" - famout last words...
tileFilter supporting specific tile locations
@(x,y)
would be a better syntax than @x,y
- easier, reuse Vector2.toPrettyString
...
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 15 days.
This issue was closed because it has been stalled for 5 days with no activity.
Problem Description
Imagining where support of modding to tell stories could go. Events are a step, Scenarios were a step. Loose collection of ideas... Looking for coder's input.
Related Issue Links
PR #11474
Desired Solution
<when a [mapUnitFilter] unit visits>
or somesuch? That condition could mark the entire Unique as to-be-considered together with TerrainGrantsPromotion in moveThroughTile.if (filter.startsWith("adjacent to [") && filter.endsWith("]")) return isAdjacentTo(filter.removeSurrounding("adjacent to [", "]"))
in Tile.matchesSingleFilter - could already replace Fountain of Youth's TerrainGrantsPromotion - but elsewhere in json. Possibly needing a Comment unique so Tile civilopedia is informative enough...[]
for the non filter will either only work if the outer filter brackets enclose a text ending in]
- or never work in that case but work in all others. Mind-boggling. Still thinking - should I test all cases that I can imagine and fix the wiki, or should I re-urge adoption of the nested-brackets-parser or - is there a kludge somewhere I overlooked that just makes it work regardless?Alternative Approaches
Play some other game - yea that's the ticket. :smiling_imp: