Scripts

TR_m4_NPC_Kalmaron2

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_Kalmaron2 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_Kalmaron > 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_Kalmaron->SetHealth, 0 33 Set TR_m4_Kalmaron.noHit to 0 34 Set TR_m4_Om_ReRe_KillCount to ( TR_m4_Om_ReRe_KillCount + 1 ) 35endif 36 37if ( TR_Map == 4 ) 38 return 39endif 40set TR_Map to 4 41 42End