Quantcast
Channel: forum.freeciv.org
Viewing all articles
Browse latest Browse all 358

Rulesets and modpacks • Checking if an resource is available on any road connected city

$
0
0
Hello. I'm trying to simulate the civ3 or civ4 "if the resource is present on any one of my cities connected by a road to city X, then city X also have that resource available". I don't seem to find that it is possible on effects.ruleset.

I checked https://freeciv.fandom.com/wiki/Editing_Effects and https://freeciv.fandom.com/wiki/Requirements.

Would something like this be possible without using lua? I'm against using it, since the AI probably couldn't handle that properly.

If not, something like this would be great to have
"Extra", "Stone", "ConnectedPath"

Example:

[unit_chariot]
name = _("Chariot")
class = "Big Land"
reqs= {
"type","name","range"
"Tech","The Wheel","Player"
"Extra", "Horse", "ConnectedPath", TRUE
}
...

Of course, currently we have Traderoute, but that would mean that i would have to create a domestic traderoute every time i want to get access to a certain resource that is outside the city.

Thank you in advance.

Statistics: Posted by arj.smn.cnt — Thu Dec 26, 2024 12:04 pm



Viewing all articles
Browse latest Browse all 358

Trending Articles