enderalse/source/scripts/_00e_fs_nqr01_playerarenasc.psc

37 lines
948 B
Plaintext

Scriptname _00E_FS_NQR01_PlayerArenaSC extends ReferenceAlias
Event OnUpdate()
bReady = True
EndEvent
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
If _00E_FS_NQR01_CurrentlyInCombat.GetValueInt() == 0 && bReady
if Utility.RandomInt(1, 100 ) >= 50
if _00E_FS_NQR01_IsCommentatorTalking.GetValueInt() == 0
Arena_Battle_Commentator.GetActorReference().Say(FS_NQR01_D07_CommentatorBranchTopic_Hit)
_00E_FS_NQR01_IsCommentatorTalking.SetValueInt(1)
bReady = False
RegisterForSingleUpdate(10)
EndIf
EndIf
EndIf
EndEvent
bool bReady = True
Topic Property FS_NQR01_D07_CommentatorBranchTopic_Hit Auto
GlobalVariable Property _00E_FS_NQR01_IsCommentatorTalking Auto
GlobalVariable Property _00E_FS_NQR01_CurrentlyInCombat Auto
ReferenceAlias Property Arena_Battle_Commentator Auto