enderalse/scripts/source/_00e_genericdialogue_functions.psc

28 lines
933 B
Plaintext
Raw Normal View History

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