100 lines
2.2 KiB
Plaintext
100 lines
2.2 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
|
|
_00E_EPHandler.GiveEP(__Config_RewardEXP)
|
|
ElseIf iRecommendationsCollected ==3
|
|
_00E_EPHandler.GiveEP(__Config_RewardEXP + __Config_BonusEXP)
|
|
EndIf
|
|
|
|
NQ_G_02.SetCurrentStageID(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)
|
|
|
|
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
|
|
|
|
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
|