TradeRoute Effect Requirement

Contribute, display and discuss rulesets and modpacks for use in Freeciv here.
drakeraider
Posts: 21
Joined: Sat Feb 03, 2018 11:49 pm

TradeRoute Effect Requirement

Postby drakeraider » Sat Mar 16, 2019 8:29 pm

On the Traderoute Qualification, do the effects check all cities connected on a trade network? Or only on the intimidate other end of trade routes connected to the checking city?

Ignatus
Veteran
Posts: 148
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: TradeRoute Effect Requirement

Postby Ignatus » Sun Mar 17, 2019 3:28 pm

Within this range, the city itself and directly connected cities are checked. If traderoutes are oriented in the ruleset, both "in" and "out" partners are checked without any way to distinguish.

drakeraider
Posts: 21
Joined: Sat Feb 03, 2018 11:49 pm

Re: TradeRoute Effect Requirement

Postby drakeraider » Sun Mar 17, 2019 6:52 pm

So, just to confirm I understood correctly, if you have three cities, and the trade route goes from the first to the second, and then another from the second to the third, with no direct route between the first and third, it will NOT count as a traderoute connection between 1 and 3?

Ignatus
Veteran
Posts: 148
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: TradeRoute Effect Requirement

Postby Ignatus » Mon Mar 18, 2019 2:55 pm

Absolutely correct. If you want to check connectivity to a specific city, you can try to produce some kind of goods in that city and in any city with Traderoute-ranged requirement on the same goods (but I have not tested it).

drakeraider
Posts: 21
Joined: Sat Feb 03, 2018 11:49 pm

Re: TradeRoute Effect Requirement

Postby drakeraider » Wed Mar 20, 2019 10:57 pm

Alright. With that verified I have a workaround I need. I need a destructible building that has a large scale effect. With current structure, Player wide effects can only be bound to buildings of class SmallWonder. But you can't demolish buildings of this class, so I need an alternative.

I was thinking of just using binding it to traderoutes so as I could create eaten a trade network that carried the effect but that may not be possible. So you have any suggestions as to an alternative approach?

Ignatus
Veteran
Posts: 148
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: TradeRoute Effect Requirement

Postby Ignatus » Thu Mar 21, 2019 6:27 am

Binding effectively Player-wide effect to traderoute system seems rather a kludge. Maybe it's possible to replace it with some regular buildings in all affected cities, or with multiplier sliders. Really, we should have player-wide counters for regular buildings, but we'll hardly get them earlier than at fc3.1. Also, Lua API is rather poor for city buildings.