enderalse/scripts/source/_00e_fs_nqr01_enemyarenasc.psc

37 lines
844 B
Plaintext

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