enderalse/source/scripts/_00e_nq_g_01_functions.psc

103 lines
2.3 KiB
Plaintext

Scriptname _00E_NQ_G_01_Functions extends Quest Conditional
;=====================================================================================
; FUNCTIONS
;=====================================================================================
Function SetMiniQuestStage(int iMiniQuest, int iQuestStage)
If iMiniQuest == 1
iMiniQuest01 = iQuestStage
ElseIf iMiniQuest == 2
iMiniQuest02 = iQuestStage
ElseIf iMiniQuest == 3
iMiniQuest03 = iQuestStage
Endif
EndFunction
Function AddRecommendation()
iRecommendationsCollected += 1
EndFunction
Function FinishQuest()
If iRecommendationsCollected == 2
Levelsystem.GiveEP(__Config_RewardEXP)
ElseIf iRecommendationsCollected ==3
Levelsystem.GiveEP(__Config_RewardEXP + __Config_BonusEXP)
EndIf
NQ_G_02.SetStage(5)
Self.CompleteQuest()
EndFunction
Function CheckFailure()
bFailed = false
If iMiniQuest01 == 10
bFailed = true
ElseIf iMiniQuest02 == 10
bFailed = true
ElseIf iMiniQuest03 == 10
bFailed = true
Endif
EndFunction
Function AddVouchers()
_00E_NQ_G_07_GunamREF.RemoveItem(Gueterscheine.GetReference().GetBaseObject(), 1, false, PlayerREF)
_00E_NQ_G_01GunamMessage.Show()
EndFunction
Function RemoveVouchers()
PlayerREF.RemoveItem(Gueterscheine.GetReference().GetBaseObject(), 1)
EndFunction
Function PlaceNecklace()
DoriasNecklace.GetReference().Enable()
EndFunction
Function RemoveNecklace()
PlayerREF.RemoveItem(DoriasNecklace.GetReference().GetBaseObject(), 1)
EndFunction
;=====================================================================================
; PROPERTIES
;=====================================================================================
int Property iMiniQuest01 Auto Conditional Hidden
int Property iMiniQuest02 Auto Conditional Hidden
int Property iMiniQuest03 Auto Conditional Hidden
bool Property bFailed Auto Conditional Hidden
int Property iRecommendationsCollected Auto Conditional Hidden
int Property __Config_RewardEXP Auto
int Property __Config_BonusEXP Auto
_00E_QuestFunctions Property Levelsystem Auto
Actor Property PlayerRef Auto
Actor Property _00E_NQ_G_07_GunamREF Auto
ReferenceAlias Property Gueterscheine Auto
ReferenceAlias Property DoriasNecklace Auto
Quest Property NQ_G_02 Auto
Message Property _00E_NQ_G_01GunamMessage Auto