Scripts

TR_m3_TT_Dis_spiritpauper_scr

TR_Mainland.esm
Variables 7
Local Variables
enabled
nolore
stage
doOnce
T_Local_NPC
T_Local_NoLore
TR_Map
Source
1begin TR_m3_TT_Dis_spiritpauper_scr 2 3short enabled 4short nolore 5short stage 6short doOnce 7short T_Local_NPC 8short T_Local_NoLore 9short TR_Map 10 11if ( TR_Map != 3 ) 12 set TR_Map to 3 13endif 14 15if ( GetJournalIndex TR_m3_TT_Disembodied >= 70 ) 16 if ( GetJournalIndex TR_m3_TT_Disembodied < 90 ) 17 if ( GetDisabled ) 18 return 19 else 20 disable 21 endif 22 endif 23 if ( CellChanged ) 24 if ( doOnce == 0 ) 25 set doOnce to 1 26 "TR_m3_LirielleOthreleth"->PositionCell, 450, 1738, -625, 166, "Roa Dyr, Ilvi House: Statesmen's Hall" 27 "TR_m3_LirielleOthreleth"->AIWander, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 28 endif 29 endif 30endif 31 32if ( stage == 0 ) 33 If ( GetHealth < 1 ) 34 sethealth 0 35 set stage to 1 36 If ( GetFatigue <= 0 ) 37 PlaceAtMe "T_Glb_Var_GhostDeathFX1" 1 0 0 38 else 39 PlaceAtMe "T_Glb_Var_GhostDeathFX2" 1 0 0 40 endif 41 endif 42endif 43 44if ( OnDeath ) 45 set stage to 2 46 if ( GetJournalIndex TR_m3_TT_Disembodied < 90 ) 47 Journal TR_m3_TT_Disembodied 90 48 endif 49endif 50 51if ( stage == 2 ) 52 if ( MenuMode ) 53 return 54 endif 55 56 if ( GetDisabled == 0 ) 57 Disable 58 endif 59endif 60 61if ( enabled ) 62 return 63endif 64 65if ( GetJournalIndex TR_m3_TT_disembodied >= 10 ) 66 enable 67 set enabled to 1 68endif 69 70if ( GetDisabled ) 71 return 72endif 73 74if ( GetJournalIndex TR_m3_TT_disembodied < 10 ) 75 disable 76endif 77 78end