Scriptname _00E_GenericDialogue_Functions extends Quest ;===================================================================================== ; FUNCTIONS ;===================================================================================== Function GiveBeggarGold(int iAmount) iBenevolenceCounter += iAmount Game.GetPlayer().RemoveItem(Gold001, iAmount) if iBenevolenceCounter >= 100 && !(Game.GetPlayer().HasSpell(_00E_Ab_BenevolentTrait)) Game.GetPlayer().AddSpell(_00E_Ab_BenevolentTrait) EndIf EndFunction ;===================================================================================== ; PROPERTIES ;===================================================================================== int Property iBenevolenceCounter Auto Hidden Spell Property _00E_Ab_BenevolentTrait Auto MiscObject Property Gold001 Auto