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.
40 lines
1.1 KiB
40 lines
1.1 KiB
Scriptname _00E_NQ13MushroomContainer extends ObjectReference
|
|
|
|
Event OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akDestContainer)
|
|
|
|
if akDestContainer == Game.GetPlayer() && akBaseItem.HasKeyword(NQ13Keyword) == 1
|
|
|
|
if doOnce == 0 && !(NQ13.IsObjectiveCompleted(30))
|
|
_00E_NQ13_MushroomsFound.SetValue(_00E_NQ13_MushroomsFound.GetValue() + 1)
|
|
NQ13.UpdateCurrentInstanceGlobal(_00E_NQ13_MushroomsFound)
|
|
int CurrentCount = _00E_NQ13_MushroomsFound.GetValueInt()
|
|
|
|
if CurrentCount >= 4
|
|
NQ13.SetObjectiveCompleted(30, 1)
|
|
if NQ13.GetStage() < 25
|
|
NQ13.SetStage(25)
|
|
DoOnce = 1
|
|
ElseIf NQ13.GetStage() == 25
|
|
NQ13.SetStage(30)
|
|
DoOnce = 1
|
|
endif
|
|
|
|
ElseIf CurrentCount < 4
|
|
NQ13.SetObjectiveCompleted(30,0)
|
|
NQ13.SetObjectiveDisplayed(30, True, True)
|
|
doOnce = 1
|
|
EndIf
|
|
|
|
ElseIf doOnce == 1
|
|
Return
|
|
EndIf
|
|
|
|
|
|
EndIf
|
|
endEvent
|
|
|
|
MiscObject Property _00E_NQ13Pilzprobe Auto
|
|
Quest Property NQ13 Auto
|
|
GlobalVariable Property _00E_NQ13_MushroomsFound Auto
|
|
Keyword Property NQ13Keyword Auto
|
|
bool DoOnce |