Scripts

TR_m7_Oth_BugTest3_sc

TR_Mainland.esm
Variables 2
Local Variables
state
OnPCHitMe
Source
1begin TR_m7_Oth_BugTest3_sc 2 3short state 4short OnPCHitMe 5 6if ( state == 0 ) 7 disable 8 set state to 1 9elseif ( state == 1 ) 10 if ( GetInterior == 0 ) 11 AITravel 40921 -314228 600 ; TR_m7_MARK_Oth_BugTest3 12 set state to 2 13 endif 14elseif ( state == 2 ) 15 if ( GetDistance TR_m7_Oth_BugTest3_act1 < 300 ) 16 AITravel 44620 -313872 600 ; TR_m7_MARK_Oth_BugTest3 17 set state to 3 18 endif 19elseif ( state == 3 ) 20 if ( GetDistance TR_m7_Oth_BugTest3_act2 < 300 ) 21 AITravel 49083 -314330 600 ; TR_m7_MARK_Oth_BugTest3 22 set state to 4 23 endif 24elseif ( state == 4 ) 25 if ( GetDistance TR_m7_Oth_BugTest3_act3 < 300 ) 26 AITravel 52150 -314923 600 ; TR_m7_MARK_Oth_BugTest3 27 set state to 5 28 endif 29elseif ( state == 5 ) 30 if ( GetDistance TR_m7_Oth_BugTest3_act4 < 300 ) 31 AITravel 55282 -315651 540 ; TR_m7_MARK_Oth_BugTest3 32 set state to 6 33 endif 34elseif ( state == 6 ) 35 if ( GetDistance TR_m7_Oth_BugTest3_act5 < 300 ) 36 Journal TR_m7_Oth_Bugtracker 40 37 set state to 7 38 endif 39endif 40 41if ( GetInterior == 1 ) 42 if ( OnPCHitMe == 1 ) 43 "TR_m7_Bera Famori"->startcombat player 44 set OnPCHitMe to 0 45 if ( GetJournalIndex TR_m7_Oth_Bugtracker < 150 ) 46 Journal TR_m7_Oth_Bugtracker 150 47 endif 48 endif 49endif 50 51end