Scripts

TR_m4_TJ_SuroA_sc

TR_Mainland.esm
Variables 5
Local Variables
control
controlQ
delay
killed
doOnce
Source
1Begin TR_m4_TJ_SuroA_sc 2 3short control 4short controlQ 5short delay 6short killed 7short doOnce 8 9if ( MenuMode ) 10 Return 11endif 12 13if ( OnDeath ) 14 set TR_m4_TJ_IndSpiritKill to ( TR_m4_TJ_IndSpiritKill + 1 ) 15endif 16 17if ( CellChanged ) 18 Return 19endif 20 21if ( GetJournalIndex "TR_m7_HH_GM_4b" == 50 ) 22 sethealth 0 23endif 24 25if ( control == 0 ) 26 if ( player->GetPCRank "T_Mw_HouseIndoril" >= 0 ) 27 set control to 1 28 setfight 30 29 stopcombat 30 elseif ( TR_m3_TT_SpeakerState == 1 ) 31 set control to 1 32 setfight 30 33 stopcombat 34 endif 35endif 36 37if ( delay == 0 ) 38 if ( GetDistance player < 1000 ) 39 set delay to 1 40 ForceGreeting 41 return 42 endif 43endif 44 45End