Mount & Blade II: Bannerlord
0 of 0

File information

Last updated

Original upload

Created by

Lazeras

Uploaded by

lazeras

Virus scan

Safe to use

Tags for this mod

About this mod

The mod holds the common code and helpers used in other Kaoses mods

Requirements
Permissions and credits
Changelogs
Donations
Overview
This mod holds the common code and utilities used by other Kaoses mods. On its own it does nothing to the game, but helps with maintainability and bug fixes for other Kaoses mods.


Features:
  • Display Messages
  • Debug Messages
  • Logging
  • Name Generator
  • PartyTemplate Parser
  • Party Stack Filler
  • Faction helpers
  • Hero Helpers
  • Party Helpers
  • Party Template Id's as lists



Documentation and API:
For detailed information and API docs visit KaosesCommon Wiki page.



Detailed Features List:

Message Interface:
see online documentation for full api lists
Spoiler:  
Show

  • MessageModLoaded
  • MessageHarmonyLoadError
  • MessageModInfo
  • MessageError
  • MessageDebug
  • ShowMessageBox

 

Logging:
see online documentation for full api lists
Spoiler:  
Show

  • Lm
  • LmException
  • ModInfoDebug
  • ModDebugLoadedModsInfo

 

Helpers: Faction:
see online documentation for full api lists
Spoiler:  
Show

  • IsLooterFaction
  • IsPlayerClan(PartyBase party)
  • IsPlayerClan(Hero hero)
  • IsPlayerClan(MobileParty mobileParty)
  • IsMinorFaction(Clan clan)
  • IsPlayerKingdom(Kingdom kingdom)
  • IsPlayerKingdom(Hero hero)

 

Helpers: Hero:
see online documentation for full api lists
Spoiler:  
Show

  • IsPlayer(Hero hero)
  • IsPlayerLord(Hero hero)
  • IsLord(Hero hero)

 

Helpers: Party:
see online documentation for full api lists
Spoiler:  
Show

  • GetNearestSettlement(MobileParty mobileParty)
  • GetClosestDesertParty(MobileParty party)
  • GetClosestBanditParty(MobileParty party)
  • GetNearestHideout(MobileParty party)
  • CreatePartyTrade(MobileParty banditParty)
  • List<Hideout> GetAllHideoutsList()

 

Helpers: Party String Id's:
see online documentation for full api lists
Spoiler:  
Show

  • NomadList
  • NativeKingdomsList
  • CKEKingdomsList
  • IsNativeKingdom(string stringId)
  • IsCKEKingdom(string stringId)
  • IsBossParty(string StringId)
  • IsElite(string stringId)

 

Party Filler:
allows for filling parties from the partyTemplate that have more than 3 types
Spoiler:  
Show

  • KaosesPartyFiller(ref MobileParty mobileParty, PartyTemplateObject pt, int troopNumberLimit = -1)

 

Kaoses:
see online documentation for full api lists
Spoiler:  
Show

  • Random rand
  • IsMCMLoaded()
  • IsModuleLoaded(string moduleId)
  • IsHarmonyLoaded()

 


Source Code:
The source code for the mod is available here github  contributions are welcome.
Nuget package avilable Nuget Gallery

My Other Mods: