ScriptName SE10DeadSeducerScript
;
short dead
short pray
short shader
Begin OnActivate
;keep player from activating when "dead"
if ( Dead == 1 )
if ( IsActionRef Player == 1 )
return
else
Activate
endif
else
Activate
endif
End
Begin GameMode
;kill ref and start shader effect
if ( shader == 0 )
PlayMagicShaderVisuals SE10DeadWarriorShader
set shader to 1
endif
if ( dead == 0 )
kill
set dead to 1
endif
;resurrect when wellspring is restored (several blocks based on quest stage)
if ( GetStageDone SE10 49 == 1 )
if ( dead == 1 )
Resurrect 1
StopMagicShaderVisuals SE10DeadWarriorShader
set dead to -1
endif
endif
if ( GetStageDone SE10 50 == 1 )
if ( dead == 1 )
Resurrect 1
StopMagicShaderVisuals SE10DeadWarriorShader
set dead to -1
endif
endif
if ( GetStageDone SE10 54 == 1 )
if ( dead == 1 )
Resurrect 1
StopMagicShaderVisuals SE10DeadWarriorShader
set dead to -1
endif
endif
if ( GetStageDone SE10 55 == 1 )
if ( dead == 1 )
Resurrect 1
StopMagicShaderVisuals SE10DeadWarriorShader
set dead to -1
endif
endif
;scripting for idle animations
if ( GetInCell XPBrellach05 == 1 )
if ( pray == 0 )
set pray to 1
elseif ( Pray == 1 )
if ( GetCurrentAIPackage == SE10GoldenSaintPray2x12 )
if ( GetDistance SE10BrellachFountainRef <= 350 )
pickidle
set Pray to 2
endif
endif
elseif ( Pray == 2 )
if ( GetCurrentAIPackage != SE10GoldenSaintPray2x12 )
set Pray to 1
elseif ( GetDistance SE10BrellachFountainRef <= 350 )
set Pray to 1
endif
endif
endif
End |