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.
32 lines
787 B
32 lines
787 B
3 years ago
|
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?}
|
||
|
|