Hero : MBObjectBase, ITrackableCampaignObject, ITrackableBase
Heroes are all the unique characters in the game. This class contains all the information of these characters and allows you to change them.
Using / Namespaces
Taleworlds.Core
Saveable
System
20204
System.Collections.Generic
System.Linq
System.Xml.Serialization
Heplers
Example of usage
TODO
Variables
Mods
Name
Type
Notes
Value
public const
RelationLimit
int
Max value for relation
100
public const
RelationNeutralLimit
int
Max value for relation with neutral heroes
10
public
LastTimeStampForActivity
int
Last activity timestamp
const
MaximumNumberOfVolunteers
int
TODO
6
public
NumberOfCreatedParties
int
Number of parties
private readonly
_occupiedByAnEvent
List<string>
TODO
private
_passedTimeAtHomeSettlement;
float
Time at home settlement
public
Detected
bool
Have you met with hero
public
DaysLeftToRespawn
int
Days for respawn
private
_charAttributeValues
int[6]
Character attributes points
public
NeverBecomePrisoner
bool
Will never be prisoner?
private
_alwaysUnconscious;
bool
TODO
public
AlwaysDie
bool
Is hero always dir (for what?)
public
LastVisitTimeOfHomeSettlement
float
Last visit home settlement
public
Level
int
Level of hero
const
HeroWoundedHealthLevel
int
Value, below which hero is wounded
20
IsMercenary
IsMercenary
bool
Is hero mercenary
SpcDaysInLocation
SpcDaysInLocation
int
TODO
private
_health
int
Health
private
_power
int
Power
public
SpecialItems
List<
(ItemObject)[]>
TODO
private
_controversy
float
TODO
private
_hasMet
bool
Has hero met
private
_gold
int
Gold
public
RandomValue
int
??
public
RandomValueDeterministic
int
??
public
RandomValueRarelyChanging
int
??
public
IsFertile
bool
Can hero have children
public
IsPregnant
bool
Is hero pregnant now
Properties
internal StaticBodyProperties StaticBodyProperties
{ get; set; }CanHaveRecruits
- A boolean that details if this hero can have recruits. Preachers, Rural Notables, Mercenaries, Gang Leaders, Merchants, and Headmen can have recruits. This property can only be read, not changed.
Functions
Work in progress
struct
HeroLastSeenInformation
struct
HeroLastSeenInformationenum
CharacterStates
enum
CharacterStatesNotSpawned
Active
Fugitive
Prisoner
Released
Dead
Disabled
enum
FactionRank
enum
FactionRankNone = -1
Vassal
Leader
Last updated
Was this helpful?