Yeah thanks. The idea of sea battles is really interesting, I think sooner or later it will be possible to do something like that. Be sure to check it out.
About sieges (I think I already answered this message):
I think I understood what you want to do, but I don’t think it makes sense to me to understand how it works in the game’s files and what it is looking for there. Apparently makanyane is very familiar with this, I don’t think that I should go all this way from the very beginning.
Nevertheless, I believe that it is quite possible to carry out the mandatory assault on the gathering of settlements with built walls and I will definitely check this when I deal with settlements in more detail. So far I have been dealing with them only a little, in order to automatically record them in descr_battle.txt, in the end I postponed this matter until later.
Unfortunately, it takes a lot of time to reverse, at the moment I want to spend this time implementing some things that I already know how to implement and really can do it.
Emperor of the Great Unknown offers are quite interesting. Here, similar questions have already been written, having implemented all this, it will be possible to make Crusader Kings 2 from MTW2. The changes to implement these ideas look pretty minor, but before that I will need to spend a lot of time researching the game code. Of course, I will try to implement something similar as soon as I really can do it efficiently and conveniently.
Regarding Jadli's suggestions:
I planned to move away from scripts and try to 100% replace them with something else, but apparently it would take too much time, so yes, I'm going to expand the use of scripts (but do not wait for new commands).
What am I doing for this now:
since for many teams only the name or label of the character is suitable, I decided that I need to be able to give the same label to different characters.
Technically, it looks like this:
according to different criteria (you can see their list in the available features of the program) characters are assigned a label. The condition, label and priority for it are specified in the file. I think you can give the opportunity to set several conditions at once.
When these conditions are true, the character is given this label with a certain number (it’s easier because the game does not like if the labels are the same). But during the label check in a script or any other command, if the checked label = label specified in the configuration file, then its number is discarded and only the main part is compared. That is, this label may not be unique, but at the same time for several characters, while dynamically changing depending on various conditions.
The conditions will be added: the coordinate area defined by points (not necessarily a square) and label.
With this feature, some of your offers are resolved automatically; you can implement this with scripts.