enderalse/source/scripts/_00e_fs_wsr_buttoneulescr.psc

35 lines
1.0 KiB
Plaintext
Raw Normal View History

Scriptname _00E_FS_WSR_ButtonEuleScr extends ObjectReference
GlobalVariable Property _00E_FS_WSR_TiereVar 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 MAGDestructionFireballExplosionM Auto
Sound Property FXFireOut Auto
Actor Property PlayerREF Auto
Event OnActivate(ObjectReference akActionRef)
if(akActionRef == PlayerREF && _00E_FS_WSR_TiereVar.GetValue() == 2)
MAGDestructionFireballExplosionM.Play(PlayerREF)
_00E_FS_FireEule.enable()
_00E_FS_WSR_TiereVar.SetValue(3)
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