enderalse/source/scripts/tif__00147098.psc

36 lines
1.0 KiB
Plaintext

;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 2
Scriptname TIF__00147098 Extends TopicInfo Hidden
;BEGIN FRAGMENT Fragment_1
Function Fragment_1(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
_00E_RhetorikCounter.SetValueInt(_00E_RhetorikCounter.GetValueInt()+1)
DepositBox.GetReference().AddItem(Gold001, 1)
HasBankAccount.SetValueInt(1)
;END CODE
EndFunction
;END FRAGMENT
;BEGIN FRAGMENT Fragment_0
Function Fragment_0(ObjectReference akSpeakerRef)
Actor akSpeaker = akSpeakerRef as Actor
;BEGIN CODE
Game.GetPlayer().RemoveItem(Gold001, 100)
Game.GetPlayer().AddItem(Gold001, 99)
Game.GetPlayer().AddItem(_00E_BankKey2112Player, 1)
;END CODE
EndFunction
;END FRAGMENT
;END FRAGMENT CODE - Do not edit anything between this and the begin comment
ReferenceAlias Property DepositBox Auto
MiscObject Property Gold001 Auto
GlobalVariable Property HasBankAccount Auto
Key Property _00E_BankKey2112Player Auto
GlobalVariable Property _00E_RhetorikCounter Auto