Scripts

TR_m3_Tyval_Uvil_b_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_b_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_c" 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 ( CellChanged ) 35 if ( controlQ == 0 ) 36 if ( GetJournalIndex, "TR_m3_TT_GhostTrick" == 60 ) 37 set controlQ to 1 38 if ( GetDeadCount "TR_m3_Nantus Ralam" == 0 ) 39 "TR_m3_Nantus Ralam"->PositionCell -647 121 -35 10800 "Sarnat Ancestral Tomb" 40 "TR_m3_Nantus Ralam"->AiWander 0 0 0 41 endif 42 endif 43 endif 44endif 45 46if ( OnDeath ) 47 set TR_m3_Speaker_Tyval_killed to 1 48endif 49 50if ( TR_Map ) 51 return 52endif 53 54set TR_Map to 3 55 56End