enderalse/source/scripts/_00e_complexstartscenescript.psc

32 lines
796 B
Plaintext
Raw Normal View History

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)
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?}