Scripts

TR_m4_TJ_llathsa_scr

TR_Mainland.esm
Variables 2
Local Variables
doOnce
control
Source
1begin TR_m4_TJ_llathsa_scr 2 3short doOnce 4short control 5 6if ( MenuMode ) 7 return 8endif 9 10if ( OnDeath ) 11 if ( GetJournalIndex "TR_m7_HH_GM_4b" >= 10 ) 12 if ( GetJournalIndex "TR_m7_HH_GM_4b" < 50 ) 13 Journal TR_m7_HH_GM_4b 45 14 endif 15 endif 16endif 17 18if ( GetJournalIndex "TR_m7_HH_GM_4b" == 50 ) 19 sethealth 0 20endif 21 22if ( control == 0 ) 23 if ( GetJournalIndex "TR_m7_HH_GM_4b" >= 10 ) 24 set control to 1 25 setfight 30 26 stopcombat 27 elseif ( player->GetPCRank "T_Mw_HouseIndoril" >= 0 ) 28 set control to 1 29 setfight 30 30 stopcombat 31 elseif ( TR_m3_TT_SpeakerState == 1 ) 32 set control to 1 33 setfight 30 34 stopcombat 35 endif 36endif 37 38end