Skip to content

Gold

Hero's gold

Hero.MainHero.Gold

Change gold with notification + sound

GiveGoldAction.ApplyBetweenCharacters(null, Hero.MainHero, -100, false);

Change gold without notification/sound

workshop.ChangeGold(50);
Hero.MainHero.ChangeHeroGold(-price);
Settlement.SettlementComponent.ChangeGold(goldAmount);

GiveGoldAction methods

ApplyForQuestBetweenCharacters(Hero giverHero, Hero recipientHero, int amount, bool disableNotification = false)
ApplyBetweenCharacters(Hero giverHero, Hero recipientHero, int amount, bool disableNotification = false)
ApplyForCharacterToSettlement(Hero giverHero, Settlement settlement, int amount, bool disableNotification = false)
ApplyForSettlementToCharacter(Settlement giverSettlement, Hero recipientHero, int amount, bool disableNotification = false)
ApplyForSettlementToParty(Settlement giverSettlement, PartyBase recipientParty, int amount, bool disableNotification = false)
ApplyForPartyToSettlement(PartyBase giverParty, Settlement settlement, int amount, bool disableNotification = false)
ApplyForPartyToCharacter(PartyBase giverParty, Hero recipientHero, int amount, bool disableNotification = false)
ApplyForCharacterToParty(Hero giverHero, PartyBase receipentParty, int amount, bool disableNotification = false)
ApplyForPartyToParty(PartyBase giverParty, PartyBase receipentParty, int amount, bool disableNotification = false)