M&B: Bannerlord 1.2.12
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.CampaignSystem.CharacterObject Class Referencesealed

Inherits TaleWorlds.Core.BasicCharacterObject, and TaleWorlds.Core.ICharacterData.

Public Member Functions

override string ToString ()
 
override int MaxHitPoints ()
 
 CharacterObject ()
 Initializes a new instance of the CharacterObject class.
 
override void AfterRegister ()
 
override BodyProperties GetBodyPropertiesMin (bool returnBaseValue=false)
 Gets or sets this character's face and body keys.
 
override BodyProperties GetBodyPropertiesMax ()
 
override void UpdatePlayerCharacterBodyProperties (BodyProperties properties, int race, bool isFemale)
 
Occupation GetDefaultOccupation ()
 
bool HasThrowingWeapon ()
 
int GetUpgradeXpCost (PartyBase party, int index)
 
int GetUpgradeGoldCost (PartyBase party, int index)
 
void InitializeHeroCharacterOnAfterLoad ()
 
override void Deserialize (MBObjectManager objectManager, XmlNode node)
 De-serializes the object from an XmlNode.
 
override float GetPower ()
 
override float GetBattlePower ()
 
override float GetMoraleResistance ()
 
void GetSimulationAttackPower (out float attackPoints, out float defencePoints, Equipment equipment=null)
 
float GetHeadArmorSum (bool civilianEquipment=false)
 
float GetBodyArmorSum (bool civilianEquipment=false)
 
float GetLegArmorSum (bool civilianEquipment=false)
 
float GetArmArmorSum (bool civilianEquipment=false)
 
float GetHorseArmorSum (bool civilianEquipment=false)
 
float GetTotalArmorSum (bool civilianEquipment=false)
 
override BodyProperties GetBodyProperties (Equipment equipment, int seed=-1)
 
void SetTransferableInPartyScreen (bool isTransferable)
 Locks character object in the party screen.
 
void SetTransferableInHideouts (bool isTransferable)
 Locks character object in the hideout management screen.
 
void ClearAttributes ()
 
int GetTraitLevel (TraitObject trait)
 
bool GetPerkValue (PerkObject perk)
 
override int GetSkillValue (SkillObject skill)
 
TraitObject GetPersona ()
 
override int GetMountKeySeed ()
 
override FormationClass GetFormationClass ()
 
- Public Member Functions inherited from TaleWorlds.Core.BasicCharacterObject
override TextObject GetName ()
 This function is not same with get property of Name. It overrides the function in MBObjectBase class. It is used in encyclopedia etc.
 
override string ToString ()
 
void InitializeEquipmentsOnLoad (BasicCharacterObject character)
 
Equipment GetFirstEquipment (bool civilianSet)
 
 BasicCharacterObject ()
 
int GetDefaultFaceSeed (int rank)
 
float GetStepSize ()
 
bool HasMount ()
 
virtual int GetBattleTier ()
 
- Public Member Functions inherited from TaleWorlds.ObjectSystem.MBObjectBase
 MBObjectBase ()
 
 MBObjectBase (MBObjectBase other)
 
 MBObjectBase (string stringId)
 
void AfterInitialized ()
 
virtual void Initialize ()
 
override int GetHashCode ()
 
void PreAfterLoadInternal ()
 
void AfterLoadInternal ()
 
void OnRegistered ()
 
void OnUnregistered ()
 

Static Public Member Functions

static CharacterObject CreateFrom (CharacterObject character)
 
static CharacterObject Find (string idString)
 
static CharacterObject FindFirst (Predicate< CharacterObject > predicate)
 
static IEnumerable< CharacterObjectFindAll (Predicate< CharacterObject > predicate)
 

Properties

override TextObject Name [get]
 
string EncyclopediaLink [get]
 
TextObject EncyclopediaLinkWithName [get]
 
bool HiddenInEncylopedia [get, set]
 
bool IsNotTransferableInPartyScreen [get]
 
bool IsNotTransferableInHideouts [get]
 
CharacterObject OriginalCharacter [get]
 
bool IsOriginalCharacter [get]
 
Hero HeroObject [get]
 
override MBReadOnlyList< EquipmentAllEquipments [get]
 
override Equipment Equipment [get]
 
IEnumerable< EquipmentBattleEquipments [get]
 
IEnumerable< EquipmentCivilianEquipments [get]
 
Equipment FirstBattleEquipment [get]
 
Equipment FirstCivilianEquipment [get]
 
Equipment RandomBattleEquipment [get]
 
Equipment RandomCivilianEquipment [get]
 
override int HitPoints [get]
 
override string HairTags [get]
 
override string BeardTags [get]
 
override string TattooTags [get]
 
ExplainedNumber MaxHitPointsExplanation [get]
 
override int Level [get]
 
static CharacterObject PlayerCharacter [get]
 
static CharacterObject OneToOneConversationCharacter [get]
 
static IEnumerable< CharacterObjectConversationCharacters [get]
 
new CultureObject Culture [get, set]
 
override bool IsFemale [get]
 
bool IsBasicTroop [get, set]
 
bool IsTemplate [get]
 
bool IsChildTemplate [get]
 
override bool IsPlayerCharacter [get]
 
override bool IsHero [get]
 Gets or sets a value indicating whether the NPC is hero.
 
bool IsRegular [get]
 
Occupation Occupation [get]
 
override float Age [get]
 
int ConformityNeededToRecruitPrisoner [get]
 
CharacterObject[] UpgradeTargets = new CharacterObject[0] [get]
 
ItemCategory UpgradeRequiresItemFromCategory [get]
 
override bool IsMounted [get]
 
override bool IsRanged [get]
 
int TroopWage [get]
 
int Tier [get]
 
static MBReadOnlyList< CharacterObjectAll [get]
 
- Properties inherited from TaleWorlds.Core.BasicCharacterObject
virtual TextObject Name [get]
 
virtual MBBodyProperty BodyPropertyRange [get, protected set]
 
int DefaultFormationGroup [get, set]
 
FormationClass DefaultFormationClass [get, protected set]
 
float KnockbackResistance [get]
 
float KnockdownResistance [get]
 
float DismountResistance [get]
 
FormationPositionPreference FormationPositionPreference [get, protected set]
 
bool IsInfantry [get]
 
virtual bool IsMounted [get]
 
virtual bool IsRanged [get]
 
int Race [get, set]
 
virtual bool IsFemale [get, set]
 
bool FaceMeshCache [get]
 
virtual MBReadOnlyList< EquipmentAllEquipments [get]
 
virtual Equipment Equipment [get]
 
bool IsObsolete [get]
 
virtual int Level [get, set]
 Gets or sets the Level.
 
BasicCultureObject Culture [get, set]
 Gets or sets the culture of this character.
 
virtual bool IsPlayerCharacter [get]
 
virtual float Age [get, set]
 
virtual int HitPoints [get]
 
float FaceDirtAmount [get, set]
 
virtual string HairTags = "" [get, set]
 
virtual string BeardTags = "" [get, set]
 
virtual string TattooTags = "" [get, set]
 
virtual bool IsHero [get]
 
bool IsSoldier [get]
 
- Properties inherited from TaleWorlds.ObjectSystem.MBObjectBase
string StringId [get, set]
 
MBGUID Id [get, set]
 
bool IsInitialized [get]
 
bool IsReady [get, set]
 

Additional Inherited Members

- Static Public Attributes inherited from TaleWorlds.Core.BasicCharacterObject
const float DefaultKnockbackResistance = 25f
 
const float DefaultKnockdownResistance = 50f
 
const float DefaultDismountResistance = 50f
 
- Protected Member Functions inherited from TaleWorlds.Core.BasicCharacterObject
void FillFrom (BasicCharacterObject character)
 
void InitializeHeroBasicCharacterOnAfterLoad (BasicCharacterObject originCharacter)
 
int FetchDefaultFormationGroup (string innerText)
 
- Protected Member Functions inherited from TaleWorlds.ObjectSystem.MBObjectBase
virtual void OnBeforeLoad ()
 
virtual void PreAfterLoad ()
 
virtual void AfterLoad ()
 
- Protected Attributes inherited from TaleWorlds.Core.BasicCharacterObject
TextObject _basicName
 
MBCharacterSkills DefaultCharacterSkills
 

Constructor & Destructor Documentation

◆ CharacterObject()

TaleWorlds.CampaignSystem.CharacterObject.CharacterObject ( )

Member Function Documentation

◆ ToString()

override string TaleWorlds.CampaignSystem.CharacterObject.ToString ( )

◆ MaxHitPoints()

override int TaleWorlds.CampaignSystem.CharacterObject.MaxHitPoints ( )
virtual

◆ CreateFrom()

static CharacterObject TaleWorlds.CampaignSystem.CharacterObject.CreateFrom ( CharacterObject character)
static

◆ AfterRegister()

override void TaleWorlds.CampaignSystem.CharacterObject.AfterRegister ( )
virtual

◆ GetBodyPropertiesMin()

override BodyProperties TaleWorlds.CampaignSystem.CharacterObject.GetBodyPropertiesMin ( bool returnBaseValue = false)
virtual

◆ GetBodyPropertiesMax()

override BodyProperties TaleWorlds.CampaignSystem.CharacterObject.GetBodyPropertiesMax ( )
virtual

◆ UpdatePlayerCharacterBodyProperties()

override void TaleWorlds.CampaignSystem.CharacterObject.UpdatePlayerCharacterBodyProperties ( BodyProperties properties,
int race,
bool isFemale )
virtual

◆ GetDefaultOccupation()

Occupation TaleWorlds.CampaignSystem.CharacterObject.GetDefaultOccupation ( )

◆ HasThrowingWeapon()

bool TaleWorlds.CampaignSystem.CharacterObject.HasThrowingWeapon ( )

◆ GetUpgradeXpCost()

int TaleWorlds.CampaignSystem.CharacterObject.GetUpgradeXpCost ( PartyBase party,
int index )

◆ GetUpgradeGoldCost()

int TaleWorlds.CampaignSystem.CharacterObject.GetUpgradeGoldCost ( PartyBase party,
int index )

◆ InitializeHeroCharacterOnAfterLoad()

void TaleWorlds.CampaignSystem.CharacterObject.InitializeHeroCharacterOnAfterLoad ( )

◆ Deserialize()

override void TaleWorlds.CampaignSystem.CharacterObject.Deserialize ( MBObjectManager objectManager,
XmlNode node )
virtual
Parameters
nodeXmlNode to be de-serialized from.

Reimplemented from TaleWorlds.Core.BasicCharacterObject.

◆ GetPower()

override float TaleWorlds.CampaignSystem.CharacterObject.GetPower ( )
virtual

◆ GetBattlePower()

override float TaleWorlds.CampaignSystem.CharacterObject.GetBattlePower ( )
virtual

◆ GetMoraleResistance()

override float TaleWorlds.CampaignSystem.CharacterObject.GetMoraleResistance ( )
virtual

◆ GetSimulationAttackPower()

void TaleWorlds.CampaignSystem.CharacterObject.GetSimulationAttackPower ( out float attackPoints,
out float defencePoints,
Equipment equipment = null )

◆ GetHeadArmorSum()

float TaleWorlds.CampaignSystem.CharacterObject.GetHeadArmorSum ( bool civilianEquipment = false)

◆ GetBodyArmorSum()

float TaleWorlds.CampaignSystem.CharacterObject.GetBodyArmorSum ( bool civilianEquipment = false)

◆ GetLegArmorSum()

float TaleWorlds.CampaignSystem.CharacterObject.GetLegArmorSum ( bool civilianEquipment = false)

◆ GetArmArmorSum()

float TaleWorlds.CampaignSystem.CharacterObject.GetArmArmorSum ( bool civilianEquipment = false)

◆ GetHorseArmorSum()

float TaleWorlds.CampaignSystem.CharacterObject.GetHorseArmorSum ( bool civilianEquipment = false)

◆ GetTotalArmorSum()

float TaleWorlds.CampaignSystem.CharacterObject.GetTotalArmorSum ( bool civilianEquipment = false)

◆ GetBodyProperties()

override BodyProperties TaleWorlds.CampaignSystem.CharacterObject.GetBodyProperties ( Equipment equipment,
int seed = -1 )
virtual

◆ SetTransferableInPartyScreen()

void TaleWorlds.CampaignSystem.CharacterObject.SetTransferableInPartyScreen ( bool isTransferable)
Parameters
isTransferable

◆ SetTransferableInHideouts()

void TaleWorlds.CampaignSystem.CharacterObject.SetTransferableInHideouts ( bool isTransferable)
Parameters
isTransferable

◆ ClearAttributes()

void TaleWorlds.CampaignSystem.CharacterObject.ClearAttributes ( )

◆ GetTraitLevel()

int TaleWorlds.CampaignSystem.CharacterObject.GetTraitLevel ( TraitObject trait)

◆ GetPerkValue()

bool TaleWorlds.CampaignSystem.CharacterObject.GetPerkValue ( PerkObject perk)

◆ GetSkillValue()

override int TaleWorlds.CampaignSystem.CharacterObject.GetSkillValue ( SkillObject skill)
virtual

◆ GetPersona()

TraitObject TaleWorlds.CampaignSystem.CharacterObject.GetPersona ( )

◆ GetMountKeySeed()

override int TaleWorlds.CampaignSystem.CharacterObject.GetMountKeySeed ( )
virtual

◆ GetFormationClass()

override FormationClass TaleWorlds.CampaignSystem.CharacterObject.GetFormationClass ( )
virtual

◆ Find()

static CharacterObject TaleWorlds.CampaignSystem.CharacterObject.Find ( string idString)
static

◆ FindFirst()

static CharacterObject TaleWorlds.CampaignSystem.CharacterObject.FindFirst ( Predicate< CharacterObject > predicate)
static

◆ FindAll()

static IEnumerable< CharacterObject > TaleWorlds.CampaignSystem.CharacterObject.FindAll ( Predicate< CharacterObject > predicate)
static

Property Documentation

◆ Name

override TextObject TaleWorlds.CampaignSystem.CharacterObject.Name
get

◆ EncyclopediaLink

string TaleWorlds.CampaignSystem.CharacterObject.EncyclopediaLink
get

◆ EncyclopediaLinkWithName

TextObject TaleWorlds.CampaignSystem.CharacterObject.EncyclopediaLinkWithName
get

◆ HiddenInEncylopedia

bool TaleWorlds.CampaignSystem.CharacterObject.HiddenInEncylopedia
getset

◆ IsNotTransferableInPartyScreen

bool TaleWorlds.CampaignSystem.CharacterObject.IsNotTransferableInPartyScreen
get

◆ IsNotTransferableInHideouts

bool TaleWorlds.CampaignSystem.CharacterObject.IsNotTransferableInHideouts
get

◆ OriginalCharacter

CharacterObject TaleWorlds.CampaignSystem.CharacterObject.OriginalCharacter
get

◆ IsOriginalCharacter

bool TaleWorlds.CampaignSystem.CharacterObject.IsOriginalCharacter
get

◆ HeroObject

Hero TaleWorlds.CampaignSystem.CharacterObject.HeroObject
get

◆ AllEquipments

override MBReadOnlyList<Equipment> TaleWorlds.CampaignSystem.CharacterObject.AllEquipments
get

◆ Equipment

override Equipment TaleWorlds.CampaignSystem.CharacterObject.Equipment
get

◆ BattleEquipments

IEnumerable<Equipment> TaleWorlds.CampaignSystem.CharacterObject.BattleEquipments
get

◆ CivilianEquipments

IEnumerable<Equipment> TaleWorlds.CampaignSystem.CharacterObject.CivilianEquipments
get

◆ FirstBattleEquipment

Equipment TaleWorlds.CampaignSystem.CharacterObject.FirstBattleEquipment
get

◆ FirstCivilianEquipment

Equipment TaleWorlds.CampaignSystem.CharacterObject.FirstCivilianEquipment
get

◆ RandomBattleEquipment

Equipment TaleWorlds.CampaignSystem.CharacterObject.RandomBattleEquipment
get

◆ RandomCivilianEquipment

Equipment TaleWorlds.CampaignSystem.CharacterObject.RandomCivilianEquipment
get

◆ HitPoints

override int TaleWorlds.CampaignSystem.CharacterObject.HitPoints
get

◆ HairTags

override string TaleWorlds.CampaignSystem.CharacterObject.HairTags
get

◆ BeardTags

override string TaleWorlds.CampaignSystem.CharacterObject.BeardTags
get

◆ TattooTags

override string TaleWorlds.CampaignSystem.CharacterObject.TattooTags
get

◆ MaxHitPointsExplanation

ExplainedNumber TaleWorlds.CampaignSystem.CharacterObject.MaxHitPointsExplanation
get

◆ Level

override int TaleWorlds.CampaignSystem.CharacterObject.Level
get

◆ PlayerCharacter

CharacterObject TaleWorlds.CampaignSystem.CharacterObject.PlayerCharacter
staticget

◆ OneToOneConversationCharacter

CharacterObject TaleWorlds.CampaignSystem.CharacterObject.OneToOneConversationCharacter
staticget

◆ ConversationCharacters

IEnumerable<CharacterObject> TaleWorlds.CampaignSystem.CharacterObject.ConversationCharacters
staticget

◆ Culture

new CultureObject TaleWorlds.CampaignSystem.CharacterObject.Culture
getset

◆ IsFemale

override bool TaleWorlds.CampaignSystem.CharacterObject.IsFemale
get

◆ IsBasicTroop

bool TaleWorlds.CampaignSystem.CharacterObject.IsBasicTroop
getset

◆ IsTemplate

bool TaleWorlds.CampaignSystem.CharacterObject.IsTemplate
get

◆ IsChildTemplate

bool TaleWorlds.CampaignSystem.CharacterObject.IsChildTemplate
get

◆ IsPlayerCharacter

override bool TaleWorlds.CampaignSystem.CharacterObject.IsPlayerCharacter
get

◆ IsHero

override bool TaleWorlds.CampaignSystem.CharacterObject.IsHero
get

◆ IsRegular

bool TaleWorlds.CampaignSystem.CharacterObject.IsRegular
get

◆ Occupation

Occupation TaleWorlds.CampaignSystem.CharacterObject.Occupation
get

◆ Age

override float TaleWorlds.CampaignSystem.CharacterObject.Age
get

◆ ConformityNeededToRecruitPrisoner

int TaleWorlds.CampaignSystem.CharacterObject.ConformityNeededToRecruitPrisoner
get

◆ UpgradeTargets

CharacterObject [] TaleWorlds.CampaignSystem.CharacterObject.UpgradeTargets = new CharacterObject[0]
get

◆ UpgradeRequiresItemFromCategory

ItemCategory TaleWorlds.CampaignSystem.CharacterObject.UpgradeRequiresItemFromCategory
get

◆ IsMounted

override bool TaleWorlds.CampaignSystem.CharacterObject.IsMounted
get

◆ IsRanged

override bool TaleWorlds.CampaignSystem.CharacterObject.IsRanged
get

◆ TroopWage

int TaleWorlds.CampaignSystem.CharacterObject.TroopWage
get

◆ Tier

int TaleWorlds.CampaignSystem.CharacterObject.Tier
get

◆ All

MBReadOnlyList<CharacterObject> TaleWorlds.CampaignSystem.CharacterObject.All
staticget