Scripts

TR_m7_Oth_BugTest2_sc

TR_Mainland.esm
Variables 3
Local Variables
state
OnPCHitMe
timer
Source
1begin TR_m7_Oth_BugTest2_sc 2 3short state 4short OnPCHitMe 5float timer 6 7if ( MenuMode == 1 ) 8 return 9endif 10 11if ( state == 0 ) 12 disable 13 set state to 1 14elseif ( state == 1 ) 15 if ( GetInterior == 0 ) 16 set timer to ( timer + GetSecondsPassed ) 17 if ( timer >= 25 ) 18 sethealth 0 19 journal TR_m7_Oth_Bugtracker 30 20 set state to 2 21 elseif ( OnDeath ) 22 set state to 2 23 endif 24 endif 25elseif ( state == 2 ) 26 TR_m7_Oth_BugTest3->Enable 27 TR_m7_Oth_BugTestDis->Disable 28 set state to 3 29endif 30 31if ( GetInterior == 1 ) 32 if ( OnPCHitMe == 1 ) 33 "TR_m7_Bera Famori"->startcombat player 34 set OnPCHitMe to 0 35 if ( GetJournalIndex TR_m7_Oth_Bugtracker < 150 ) 36 Journal TR_m7_Oth_Bugtracker 150 37 endif 38 endif 39endif 40 41end