I'd like to add a new unit ability for unit of dragons to burn the city. What do we need? Dragons, obviously!
But!
There's no way to limit this ability to dragons unit:
[some unit] = {
any_sub_unit = {
owning_unit = {
oh, we're back to the unit
}
}
}
We have no has_sub_unit, everything we have is only for full units.
My idea: Make trade_good "dragons_dragons" and "dragons". There will be no "dragons_dragons" ont he map but some "dragons". When the country have a "dragons" it cant spawn a unit by decision. The decision will set variable "dragonised_country" for the country. And in unit_abilities there ability to dracaryse the city will be limited by this variable.
Have anyone something more simpe?
But!
There's no way to limit this ability to dragons unit:
[some unit] = {
any_sub_unit = {
owning_unit = {
oh, we're back to the unit
}
}
}
We have no has_sub_unit, everything we have is only for full units.
My idea: Make trade_good "dragons_dragons" and "dragons". There will be no "dragons_dragons" ont he map but some "dragons". When the country have a "dragons" it cant spawn a unit by decision. The decision will set variable "dragonised_country" for the country. And in unit_abilities there ability to dracaryse the city will be limited by this variable.
Have anyone something more simpe?