enderalse/scripts/source/_00e_complexstartscenescript.psc

32 lines
787 B
Plaintext
Raw Normal View History

Scriptname _00E_ComplexStartSceneScript extends ObjectReference
{Place this triggerbox to start a simple quest scene
}
Event OnTriggerEnter(ObjectReference akActionRef)
if (akActionRef == Game.GetPlayer()) && (ParentQuest.GetStage() == 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?}