Scripts

TR_m4_NPC_Ibelard2

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
T_Local_NPC
control
controlQ
T_Local_NoLore
NoLore
DoneGreeting
Source
1; Attached to hostile versions of the miners for the Remnants of Resdayn dream sequence 2Begin TR_m4_NPC_Ibelard2 3 4short TR_Map 5short T_Local_NPC 6short control 7short controlQ 8short T_Local_NoLore 9short NoLore 10short DoneGreeting 11 12if ( controlQ == 0 ) 13 if ( GetDeadCount TR_m4_Ibelard > 0 ) 14 set controlQ to -1 15 Disable 16 Return 17 else 18 set controlQ to 1 19 endif 20elseif ( controlQ < 0 ) 21 Return 22endif 23 24if ( DoneGreeting == 0 ) 25 if ( GetDistance, player < 400 ) 26 ForceGreeting 27 Set DoneGreeting to 1 28 endif 29endif 30 31if ( OnDeath ) 32 TR_m4_Ibelard->SetHealth, 0 33 TR_m4_Ibelard->LoopGroup Idle 1 1 34 set TR_m4_Ibelard.noHit to 0 35 Set TR_m4_Om_ReRe_KillCount to ( TR_m4_Om_ReRe_KillCount + 1 ) 36endif 37 38if ( TR_Map == 4 ) 39 return 40endif 41set TR_Map to 4 42 43End