Enderal SE https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
844 B
37 lines
844 B
3 years ago
|
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
|