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 |
| 20204 | |
| ||
| ||
| ||
| ||
Example of usage
TODO
Variables
Mods | Name | Type | Notes | Value |
public const | RelationLimit |
| Max value for relation | 100 |
public const | RelationNeutralLimit |
| Max value for relation with neutral heroes | 10 |
public | LastTimeStampForActivity |
| Last activity timestamp | |
const | MaximumNumberOfVolunteers |
| TODO | 6 |
public | VolunteerTypes; | TODO | ||
public | NumberOfCreatedParties |
| Number of parties | |
private readonly | _occupiedByAnEvent |
| TODO | |
private | _passedTimeAtHomeSettlement; |
| Time at home settlement | |
private | _characterObject | Character object info | ||
public | FirstName | First name | ||
public | Name | Name | ||
public | Detected |
| Have you met with hero | |
public | DaysLeftToRespawn |
| Days for respawn | |
private | _heroStates | Hero's state | ||
private | _heroTraits | Hero's traits | ||
private | _heroPerks | Hero's perks | ||
private | _heroSkills | Hero's skills | ||
private | _charAttributeValues |
| Character attributes points | |
public | NeverBecomePrisoner |
| Will never be prisoner? | |
private | _alwaysUnconscious; |
| TODO | |
public | AlwaysDie |
| Is hero always dir (for what?) | |
public | LastVisitTimeOfHomeSettlement |
| Last visit home settlement | |
public | Level |
| Level of hero | |
const | HeroWoundedHealthLevel |
| Value, below which hero is wounded | 20 |
private | _companionOf | Clan that include hero? | ||
private | _cachedLastSeenInformation | Heros's last seen info | ||
IsMercenary | IsMercenary |
| Is hero mercenary | |
SpcDaysInLocation | SpcDaysInLocation |
| TODO | |
private | _health |
| Health | |
private | _birthDay | BearthDay | ||
private | _deathDay | Day of death | ||
private | _power |
| Power | |
public | VisitedSettlements |
| Visited settlements | |
private | _clan | Hero's clan | ||
private | _supporterOf | TODO | ||
private | _governorOf | Governor of | ||
private | _ownedWorkshops |
| Owned workshops | |
private | _ownedCommonAreas |
| Owned areas | |
private | _ownedParties |
| Owned parties | |
public | Culture | Culture | ||
public | _partyBelongedTo | TODO | ||
private | _stayingInSettlementOfNotable | TODO | ||
public | SpecialItems |
| TODO | |
private | _controversy |
| TODO | |
private | _hasMet |
| Has hero met | |
private | _bornSettlement | Born settlement | ||
private | _gold |
| Gold | |
public | RandomValue |
| ?? | |
public | RandomValueDeterministic |
| ?? | |
public | RandomValueRarelyChanging |
| ?? | |
private | _father | Father | ||
private | _mother | Mother | ||
private readonly | _exSpouses |
| ?? | |
public | ExSpouses | Ex. spouses | ||
private | _spouse | Spouse | ||
private readonly | _children |
| Children | |
public | IsFertile | bool | Can hero have children | |
public | IsPregnant | bool | Is hero pregnant now | |
private reeadonly | _heroDeveloper | TODO | ||
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
HeroLastSeenInformationName | Type | Notes |
LastSeenPlace | TODO | |
LastSeenDate | TODO | |
IsNearbySettlement | bool | TODO |
enum
CharacterStates
enum
CharacterStatesNotSpawned
Active
Fugitive
Prisoner
Released
Dead
Disabled
enum
FactionRank
enum
FactionRankNone = -1
Vassal
Leader
Last updated