2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_ComplexStartSceneScript extends ObjectReference
|
|
|
|
{Place this triggerbox to start a simple quest scene
|
|
|
|
}
|
|
|
|
|
|
|
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
|
|
|
|
2024-01-10 14:08:24 +00:00
|
|
|
if (akActionRef == Game.GetPlayer()) && (ParentQuest.GetCurrentStageID() == StageRequiredToStartScene)
|
2021-10-05 22:15:58 +00:00
|
|
|
if Repeatable == False
|
|
|
|
if Done == False
|
|
|
|
SceneToStart.ForceStart()
|
|
|
|
Done = True
|
|
|
|
EndIf
|
|
|
|
ElseIf Repeatable == True
|
|
|
|
SceneToStart.ForceStart()
|
|
|
|
Endif
|
|
|
|
EndIf
|
|
|
|
|
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
bool Done = False
|
|
|
|
|
|
|
|
Scene Property SceneToStart Auto
|
|
|
|
{Which scene do we want to start?}
|
|
|
|
Quest Property ParentQuest Auto
|
|
|
|
{Which quest does the scene belong to?}
|
|
|
|
float Property StageRequiredToStartScene Auto
|
|
|
|
{Which stage is required for the triggerbox to start the quest scene?}
|
|
|
|
Bool Property Repeatable = False Auto
|
|
|
|
{Is this scene repeatable?}
|
|
|
|
|