About this mod
The mod holds the common code and helpers used in other Kaoses mods
- Requirements
- Permissions and credits
- Changelogs
- Donations
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
- MessageModLoaded
- MessageHarmonyLoadError
- MessageModInfo
- MessageError
- MessageDebug
- ShowMessageBox
Logging:
see online documentation for full api lists
- Lm
- LmException
- ModInfoDebug
- ModDebugLoadedModsInfo
Helpers: Faction:
see online documentation for full api lists
- 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
- IsPlayer(Hero hero)
- IsPlayerLord(Hero hero)
- IsLord(Hero hero)
Helpers: Party:
see online documentation for full api lists
- 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
- 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
- KaosesPartyFiller(ref MobileParty mobileParty, PartyTemplateObject pt, int troopNumberLimit = -1)
Kaoses:
see online documentation for full api lists
- 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: