Enderal SE https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
933 B
28 lines
933 B
3 years ago
|
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
|