Scripts

TR_m3_Tyval_Uvil_a_sc

TR_Mainland.esm
Variables 8
Local Variables
TR_Map
control
controlQ
NoLore
NoHello
stage
T_Local_NPC
T_Local_NoLore
Source
1begin TR_m3_Tyval_Uvil_a_sc 2 3short TR_Map 4short control 5short controlQ 6short NoLore 7short NoHello 8short stage 9short T_Local_NPC 10short T_Local_NoLore 11 12if ( stage == 2 ) 13 if ( MenuMode ) 14 return 15 endif 16 17 if ( GetDisabled == 0 ) 18 Disable 19 placeatme,"TR_m3_Tyval_Uvil_b" 1,1,1 20 endif 21endif 22 23if ( stage == 0 ) 24 If ( GetHealth < 1 ) 25 set stage to 1 26 If ( GetFatigue <= 0 ) 27 PlaceAtMe "T_Glb_Var_GhostDeathFX1" 1 0 0 28 else 29 PlaceAtMe "T_Glb_Var_GhostDeathFX2" 1 0 0 30 endif 31 endif 32endif 33 34if ( OnDeath ) 35 set TR_m3_Speaker_Tyval_killed to 1 36endif 37 38if ( GetDisabled ) 39 if ( GetJournalIndex, "TR_m3_TT_GhostTrick" == 10 ) 40 enable 41 endif 42endif 43 44if ( TR_Map ) 45 return 46endif 47 48set TR_Map to 3 49disable 50 51End