It’s possible to lock and unlock models of a selfmade mod when you select a certain Kingdom?
For example:
I have a desk out of wood an the same model but made out of clay. The clay table will be a sostitute of the wood model when you play with the Rayya Kingdom.
It’s something like this possible? If yes, how i can add this function to the mod?
This should be possible my settlement decor mod does something similar except it unlocks recipes based on the biome selected. If you create a campaign that only triggers when a certain kingdom is selected and the campaign simply iterates through and unlocks the recipes you want while keeping the recipes for the other kingdom locked, that should do it. For example …
Something to note is that the current recipe unlock encounter will create a bulletin every time a recipe is unlocked, which will spam the player if you do this for multiple recipes, so I suggest creating a modified version of that encounter that does not create a bulletin and use that instead. I did the same thing in my mod, so use that if you want SettlementDecor
Or you could take the same approach the Rayya mod takes. Makes a client file that runs only when Rayya is selected, and make that load a “sub” mod that changes your recipes, adding for Rayya and removing from Ascendancy.
Will it be the same item for the same crafter, changing only the ingredients?
If so, yeah, a simple override would be enough.
If it will be crafted by different crafters (carpenter in As and potter in Ra for example), I guess the easiest way is to make the item in your main mod as usual, but both recipes would be in their own sub mods. One for each kingdom.
The fisher talisman is almost like this. I had it for both classes, but for Rayya it is locked (like the fountains and monuments). When the players chooses Rayya as the kingdom, it loads their manifest which unlocks that potter recipe, but it will also lock the carpenter recipe.
There is a “manual_unlock” key you can add to their recipe .json that locks/unlocks recipes. So in one manifest you set it as true and in the other you set it as false.