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.
36 lines
852 B
36 lines
852 B
Scriptname _00E_MQ01_MushroomsFound extends ObjectReference
|
|
|
|
|
|
|
|
|
|
Event OnActivate(ObjectReference akActionRef)
|
|
|
|
if doOnce == 0 && !(MQ01_UnchartedLand.IsObjectiveCompleted(12))
|
|
_00E_MQ01_MushroomFound.SetValue(_00E_MQ01_MushroomFound.GetValue() + 1)
|
|
MQ01_UnchartedLand.UpdateCurrentInstanceGlobal(_00E_MQ01_MushroomFound)
|
|
int CurrentCount = _00E_MQ01_MushroomFound.GetValueInt()
|
|
|
|
if CurrentCount >= 3
|
|
MQ01_UnchartedLand.SetObjectiveCompleted(12,1)
|
|
Levelsystem.GiveEP(50)
|
|
ElseIf CurrentCount < 3
|
|
MQ01_UnchartedLand.SetObjectiveCompleted(12,0)
|
|
MQ01_UnchartedLand.SetObjectiveDisplayed(12, True, True)
|
|
doOnce = 1
|
|
EndIf
|
|
|
|
ElseIf doOnce == 1
|
|
Return
|
|
EndIf
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
|
|
Quest Property MQ01_UnchartedLand Auto
|
|
GlobalVariable Property _00E_MQ01_MushroomFound Auto
|
|
import math
|
|
_00E_QuestFunctions Property Levelsystem Auto
|
|
int doOnce
|
|
int done |