Yes, something like this should be possible and it should be actually within my poor scripting abilities to execute it.
I will definitely have a look into it at some point in the near future.
You know, once I brought this up in the DeI suggestions thread that it would be really nice if a fleet can resupply once it spends one turn in the vicinity of an allied port or an allied settlement. One of the devs replied to it saying that they were contemplating this, but I don't think they have taken it any further since then. I think it would be great to have such a feature and scripting-wise it should be possible to do it, I believe.
----------------------
And what would you say about my edicts,
nikossaiz?
I've been playing myself a bit more lately and I've been thinking that some of the penalties for some of my edicts are perhaps a bit too harsh in relation to the bonuses they provide. Especially, if one uses already other mods such as for example Alternative Economy, which already makes the whole campaign management very tough.
I think, for example, that the Colonization edict should provide more growth to balance it out against those penalties it entails. Furthermore, the Commercial Stimulation should provide bonus to both maritime commerce and local commerce, and not only the local commerce as it does now. Plus the tax rate penalty should be lowered to make sure that this edict will prove beneficial for the majority of provinces with income from commerce.
What do you think? Are there any edicts that you like in particular? Or perhaps some of these edicts you don't use at all as you don't find them useful in any circumstances?