Assigning Splitting Faction Core Groups


The start of the integration process for decision mods has been more complicated than I could have anticipated. There are a bunch of aspects of the original hardcoded implementation of the split clan decision that I basically ignored when I first designed the mod version, and now those ignored aspects have come back to bite me. One of them is the fact that newly formed factions have to be assigned a core group even before the decision is made. I was hoping to do this in the background for the mod implementation after the decision was already taken, but it turns out that if I do it like that there's a big chance the split operation might fail because there are no cell groups with enough prominence to be assigned the new faction's core role. So, a valid target group has to be found before the decision can take place to make sure it won't have an unexpected null result. 

The implication was that now I had to expose the core group selection process as part of the mod's design. I ended up adding polity entities (which I was planning to add anyway) and a get_random_group method as one of their properties. I also modified the split clan mod entry to receive as a parameter the a target group to be assigned the core role of the new faction. All of this means it will be later possible for modders to pick a core group for a new faction in a way other than by random selection.

Anyway, there's still a lot of work to do. Nevertheless, I'm getting closer to have a fully working decision mod, and I already have begun deprecating the old hardcoded decision. So sooner, rather than later, the replacement will be complete.

Get Worlds - History Simulator

Leave a comment

Log in with itch.io to leave a comment.