Hello everyone. I wrote a code where we set up our own based on the map as in the Viking dlc. I think it's called a wagon or a citadel. It has a scene. There is a special game menu. I can put soldiers in it's garrison. But the enemy parties do not attack. I added my party under zendar town in module_parties. If I add my party between the town codes, it becomes a town and I have built a city on the map. Or if I add it between the castle codes, it becomes a castle. But I don't want a castle or a town. I want a private region.
I think the problem is because I didn't add the enemies detection of this parties. But I don't know how to add this.
Can you inform me about the movement logic of the parties? Or how do I solve this problem?
The code I inspired:
forums.taleworlds.com
I think the problem is because I didn't add the enemies detection of this parties. But I don't know how to add this.
Can you inform me about the movement logic of the parties? Or how do I solve this problem?
The code I inspired:

[OSP][Kod] Karargah
Bugün istediğimiz zaman askerlerimizi bırakabileceğimiz bir üs yapmayı göstereceğim. Basit bir kod, bugün sırf buna uğraştım. Modül sistemi de kavramaya başladım. İlk önce module_parties'i açalım: ("zendar","Zendar",pf_disabled|icon_town|pf_is_static|pf_always_visible|pf_hide_defenders...

Last edited: