I am currently in the process of scripting supply ships to allow for faster deep space expansion.
1)
It seems though that I misunderstood how scope works.
The following ship part should be unloaded if the ship is in a system with a planet with the BLD_UNLOAD_SUPPLY building.
The scope in the code below should only consist of that single planet. It seems though that currently the effect is triggered on all planets which contain the BLD_UNLOAD_SUPPLY building.
Freeorion version is 0.4.5+ from June 6th
Code: Select all
//... ship part CO_SUPPLIES_030...
effectsgroups = [
EffectsGroup
scope = And [
Planet
InSystem id = Source.SystemID
Contains Building name = "BLD_UNLOAD_SUPPLY"
Not HasSpecial name = "UNLOADING_SUPPLIES_SPECIAL"
OwnedBy empire = Source.Owner
]
effects = [
2) Also is there a way to access the value of the capacity? E.g. via something like Source.Capacity or similar?
Thanks in advance