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.
33 lines
823 B
33 lines
823 B
3 years ago
|
Scriptname _00E_SetStageOnDeath extends Actor
|
||
|
{Update stage and objective on death}
|
||
|
|
||
|
Quest Property QuestToSet auto
|
||
|
int Property DesiredStage Auto
|
||
|
bool Property UpdateObjective Auto
|
||
|
int Property DesiredObjective Auto
|
||
|
bool Property CompleteObjective Auto
|
||
|
int Property DesiredCompletedOrFailedObjective Auto
|
||
|
bool Property FailObjective Auto
|
||
|
Scene Property SceneToStart Auto
|
||
|
|
||
|
|
||
|
|
||
|
Event OnDeath(Actor akKiller)
|
||
|
|
||
|
if( QuestToSet )
|
||
|
QuestToSet.SetStage(DesiredStage)
|
||
|
;Debug.Notification("Setting stage")
|
||
|
endif
|
||
|
|
||
|
if( SceneToStart )
|
||
|
SceneToStart.Start()
|
||
|
endif
|
||
|
|
||
|
if CompleteObjective == true
|
||
|
QuestToSet.SetObjectiveCompleted(DesiredCompletedOrFailedObjective)
|
||
|
elseif FailObjective == true
|
||
|
QuestToSet.SetObjectiveFailed(DesiredCompletedOrFailedObjective)
|
||
|
endif
|
||
|
|
||
|
endEvent
|