BL Coding Help finding party information an respective GUI

正在查看此主题的用户

AshenWaltz

Recruit
Hello everyone,
I am starting to learn how to mod Bannerlord in order to try and build a mod focused on army placement before battles. I've been reading the game's source code but I would like to have some help finding what I need:
- When you encounter an hostile party a GUI appears asking if you want to retreat, start battle or order your troops to attack. Where is this specific GUI stored?
- Where are your parties' troop information stored and managed? I have been reading Taleworlds.core and found little to answer my questions.
- What exactly are missions? I found it in Taleworlds.core and from what I read in MissionMode it seems to reffer to any sort of battle or military engagement. Is this correct?
Thank you in advance!
 
The encounter menu isn't really stored anywhere, it is generated when the game starts in EncounterGameMenuBehavior.AddGameMenus (TaleWorlds.CampaignSystem.dll).

Party information is stored in the MobileParty class, the player party can be accessed with MobileParty.MainParty, it has a property MemberRoster of the type TroopRoster which is where the troop information is stored.

Essentially anytime you are in a scene except the world map you are in a Mission. When you enter a settlement or a conversation it's also a Mission so it's not limited to battles.
 
点赞 0
后退
顶部 底部