[terrain] + area= sanity check
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
- Spannerbag
- Posts: 551
- Joined: December 18th, 2016, 6:14 pm
- Location: Yes
[terrain] + area= sanity check
Hi,
was puzzled why some
I think I understand why but would like to check I can't do what I want before I code a work-around.
I had two
I then wanted to change some terrain in these areas to some other terrain.
So for example if I wanted to add a mushroom farm to all green grass in these areas I could do:
However it didn't work.
Splitting the area= clause (based on my my very brief testing thus far) seemed to fix it.
So this worked:
So I am guessing the engine was looking for an area named "TA1,TA2" rather than locations in both areas.
Is there a simple fix? such as area="TA1","TA2" or is this not supported?
If it isn't supported I can easily wok around by storing both locations into a single variable and using
Cheers,
-- Spannerbag
was puzzled why some
[terrain]
code wasn't working.I think I understand why but would like to check I can't do what I want before I code a work-around.
I had two
[time_area]
s in a scenario, let's call them TA1 and TA2.I then wanted to change some terrain in these areas to some other terrain.
So for example if I wanted to add a mushroom farm to all green grass in these areas I could do:
Code: Select all
[terrain]
area=TA1,TA2
[and]
terrain=Gg
[/and]
terrain=Gg^Emf
[/terrain]
Splitting the area= clause (based on my my very brief testing thus far) seemed to fix it.
So this worked:
Code: Select all
[terrain]
area=TA1
[and]
terrain=Gg
[/and]
terrain=Gg^Emf
[/terrain]
[terrain]
area=TA2
[and]
terrain=Gg
[/and]
terrain=Gg^Emf
[/terrain]
Is there a simple fix? such as area="TA1","TA2" or is this not supported?
If it isn't supported I can easily wok around by storing both locations into a single variable and using
find_in=
instead but if I've done something stupid please let me know!Cheers,
-- Spannerbag
- Celtic_Minstrel
- Developer
- Posts: 2263
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: [terrain] + area= sanity check
It looks like lists in
area=
are indeed not supported. They probably should be, though.- Spannerbag
- Posts: 551
- Joined: December 18th, 2016, 6:14 pm
- Location: Yes
Re: [terrain] + area= sanity check
Thanks for the swift reply, much appreciated!Celtic_Minstrel wrote: ↑August 7th, 2023, 2:04 am It looks like lists inarea=
are indeed not supported. They probably should be, though.
Is it worth submitting a bug report or request for a new feature?
Cheers!
-- Spannerbag
- Celtic_Minstrel
- Developer
- Posts: 2263
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: [terrain] + area= sanity check
You're welcome to submit a feature request.
- Spannerbag
- Posts: 551
- Joined: December 18th, 2016, 6:14 pm
- Location: Yes
Re: [terrain] + area= sanity check
Sorry to be dim, but what's the best way to do that?
The ideas forum? Or somewhere else?
Sadly have to dash off now, so thanks in advance!
Cheers!
-- Spannerbag
- Celtic_Minstrel
- Developer
- Posts: 2263
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: [terrain] + area= sanity check
The best place to submit feature requests is on the bug tracker. I believe the Ideas forum is also a valid place, though.
Re: [terrain] + area= sanity check
You can use [or].
Maintainer of Ageless Era. Ravana's Multiplayer Works
- Spannerbag
- Posts: 551
- Joined: December 18th, 2016, 6:14 pm
- Location: Yes
Re: [terrain] + area= sanity check
Thanks... somehow, hadn't thought of that...
Cheers!
-- Spannerbag
- Spannerbag
- Posts: 551
- Joined: December 18th, 2016, 6:14 pm
- Location: Yes
Re: [terrain] + area= sanity check
Thanks, Ravana posted a useful idea, but I'll probably submit a request anyway.Celtic_Minstrel wrote: ↑August 7th, 2023, 5:52 am The best place to submit feature requests is on the bug tracker. I believe the Ideas forum is also a valid place, though.
Cheers!
-- Spannerbag
- Celtic_Minstrel
- Developer
- Posts: 2263
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: [terrain] + area= sanity check
Well, the thing is, some things in filters support comma-separated lists, and some don't. I just think it would be best if everything that can, does. Sure, you can still use
[or]
to get the same effect, but it's a lot less compact.- Spannerbag
- Posts: 551
- Joined: December 18th, 2016, 6:14 pm
- Location: Yes
Re: [terrain] + area= sanity check
Yep, agreed.Celtic_Minstrel wrote: ↑August 8th, 2023, 2:08 am Well, the thing is, some things in filters support comma-separated lists, and some don't. I just think it would be best if everything that can, does. Sure, you can still use[or]
to get the same effect, but it's a lot less compact.
That said, I understand people donate their time and effort so will tend to work on what interests them.
Fair enough, but as a result I appreciate that at times I'll stumble onto inconsistencies that need work-arounds.
Irritating, but rarely fatal
Trouble is, with a memory as poor as mine, keeping track of these is not easy!
(I'm forever using explicit filters where I shouldn't and vice-versa... ).
Cheers!
-- Spannerbag