[Quick Question] Tree-changing upgrades?

Users who are viewing this thread

Is it possible to upgrade a troop into another troop-tree?

And is it possible to make conditions for upgrades? Quite sure it´s not via XML.
I would like to test something along the lines of More T1 upgrade paths - suggestion.
Also we have the issue with 2 upgrades only....
 
Dynamically changing the upgrade paths available is definitely very doable via C#, it's just a matter of updating the UpgradeTargets property of the CharacterObject class. Adding more than 2 would be a lot more complex because you'd have to update the party screen to accommodate that.

Edit: I would suggest that you:
1. Expand the UpgradeTargets of your chosen characters to include all the possible upgrade paths you want.
2. Create your own PartyTroopUpgradeModel implementation that determines which paths are available via the CanPartyUpgradeTroopToTarget method.
3. To get around not being able to have more than 2 upgrades in the party screen, have some code (that runs upon opening the party screen or something) that sorts UpgradeTargets such that available upgrade paths are at the front of the array and thus actually show up in the party screen.

You could have any number of potential upgrade paths, just so long as there's never more than 2 actually available to the player. If you want more than 2 available then you're out of luck unless you want to get into editing the party screen, which is no small feat.
 
Last edited:
Thanks alot @MitchPTI! Very good leeds. I´m aware that I will need make changes to the screen, and I might have an idea of how it could work, that might cause a small amount of changes to the party screen(radiobutton-list for each target tree. Default top-choise is hardcoded. Step 2 is re-evaluated when changing selection in the list, and if not already, they are changed to take a target tree or something along the lines).

I will try to get into the code-work again. The tuturials I have tried so far has not worked for me. I have developed in C# but the Bannerlord environment is all new to me.
 
Back
Top Bottom