M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
|
ChangeRelationAction class handles the relation changes and its after effects. Effective heroes are chosen in DiplomacyModel.GetHeroesForEffectiveRelation(Hero, Hero, out Hero, out Hero) function. will fire CampaignEvents.HeroRelationChanged event. To bypass its after effects, use Hero.SetPersonalRelation(Hero, int) directly.
Public Types | |
enum | ChangeRelationDetail { Default , Emissary } |
Static Public Member Functions | |||||||||
static void | ApplyPlayerRelation (Hero gainedRelationWith, int relation, bool affectRelatives=true, bool showQuickNotification=true) | ||||||||
Handles the relation changes using effective heroes and relation. For base relation change use
. Example Code: | |||||||||
static void | ApplyRelationChangeBetweenHeroes (Hero hero, Hero gainedRelationWith, int relationChange, bool showQuickNotification=true) | ||||||||
Handles the relation changes using effective heroes and relation. For base relation change use
.
| |||||||||
static void | ApplyEmissaryRelation (Hero emissary, Hero gainedRelationWith, int relationChange, bool showQuickNotification=true) | ||||||||
Handles the relation changes using effective heroes and relation. For base relation change use
.
| |||||||||
|
static |
gainedRelationWith | |
relation | |
affectRelatives | |
showQuickNotification |
|
static |