Help needed to implement strategic resources
Posted: Thu Jan 22, 2015 12:26 pm
I want to introduce in my earth scenario the idea of strategic resources, so some units can be cheaper when your city have access to certan resource. For example, knights being cheaper to upgrade or upkeep if there is Iron within the city radius.
There is a new requirement in v2.5 that seems to make it possible:
However, I'm unable to find any effect where this condition actually works. I have tried:
The only effect I found that seems to work is Unit_Upkeep_Free_Per_City, but since it affects only the city where the resource is placed, in practice it is the same as if the Iron simply produces some extra shield.
Any suggestion?
There is a new requirement in v2.5 that seems to make it possible:
Code: Select all
reqs =
{ "type", "name", "range"
"Resource", "Iron", "City"
}
Code: Select all
type = "Upgrade_Unit"
value = 1
reqs =
{ "type", "name", "range"
"Resource", "Iron", "City"
}
type = "Upgrade_Price_Pct"
value = -50
reqs =
{ "type", "name", "range"
"Resource", "Iron", "City"
}
type = "Upkeep_Factor"
value = 1
nreqs =
{ "type", "name", "range"
"Resource", "Iron", "City"
}
Any suggestion?