Scripts

TR_m3_NPC_Hengor

TR_Mainland.esm
Variables 7
Local Variables
TR_Map
control
controlQ
NoLore
sneakyboy
T_Local_NPC
T_Local_NoLore
Source
1Begin TR_m3_NPC_Hengor 2 3; Script on NPC TR_m3_Hengor, who ambushes the player when 4; the latter takes his axe from a treestump. 5 6short TR_Map 7short control 8short controlQ 9short NoLore 10short sneakyboy 11short T_Local_NPC 12short T_Local_NoLore 13 14if ( MenuMode == 1 ) 15 return 16endif 17 18if ( sneakyboy == 0 ) 19 ForceSneak 20 set sneakyboy to 1 21 set TR_Map to 3 22endif 23 24if ( sneakyboy == 1 ) 25 if ( GetWeaponDrawn == 1 ) 26 ClearForceSneak 27 set sneakyboy to 2 28 elseif ( GetFight > 90 ) 29 ClearForceSneak 30 set sneakyboy to 2 31 elseif ( GetDistance, player <= 256 ) 32 ClearForceSneak 33 set sneakyboy to 2 34 SetFight 100 35 endif 36endif 37 38End