enderalse/source/scripts/_00e_fs_wsr_buttonwolfscr.psc

44 lines
1.2 KiB
Plaintext

Scriptname _00E_FS_WSR_ButtonWolfScr extends ObjectReference
Import Utility
GlobalVariable Property _00E_FS_WSR_TiereVar Auto
ObjectReference Property _00E_FS_CthartepRiddleDoor2 Auto
ObjectReference Property _00E_FS_FireMotte Auto
ObjectReference Property _00E_FS_FireWolf Auto
ObjectReference Property _00E_FS_FireSchlange Auto
ObjectReference Property _00E_FS_FireEule Auto
Sound Property DRSDwemerLarge01Open Auto
Sound Property MAGDestructionFireballExplosionM Auto
Sound Property FXFireOut Auto
Actor Property PlayerREF Auto
Event OnActivate(ObjectReference akActionRef)
if(akActionRef == PlayerREF && _00E_FS_WSR_TiereVar.GetValue() == 3)
MAGDestructionFireballExplosionM.Play(PlayerREF)
_00E_FS_FireWolf.enable()
_00E_FS_WSR_TiereVar.SetValue(4)
wait(1)
DRSDwemerLarge01Open.Play(PlayerREF)
wait(1)
_00E_FS_CthartepRiddleDoor2.SetOpen()
_00E_FS_CthartepRiddleDoor2.lock(false)
elseif (akActionRef == PlayerREF && _00E_FS_WSR_TiereVar.GetValue() == 4)
;donothing
elseif (akActionRef == PlayerREF && _00E_FS_WSR_TiereVar.GetValue() == 0)
;donothing
else
_00E_FS_WSR_TiereVar.SetValue(0)
FXFireOut.Play(PlayerREF)
_00E_FS_FireMotte.disable()
_00E_FS_FireWolf.disable()
_00E_FS_FireSchlange.disable()
_00E_FS_FireEule.disable()
endif
EndEvent