TR_m7_Oth_BugTest1_sc
TR_Mainland.esm
Variables
3
Local Variables
state
daggertaken
OnPCHitMe
Source
1begin TR_m7_Oth_BugTest1_sc
2
3short state
4short daggertaken ;set in TR_m7_Oth_BugDagger script
5short OnPCHitMe
6
7if ( state == 0 )
8 if ( GetInterior == 0 )
9 AItravel 38798 -316853 200 ; TR_m7_MARK_Oth_BugTest1
10 set state to 1
11 endif
12elseif ( state == 1 )
13 if ( GetDistance player < 3000 ) ; player should observe it
14 if ( GetDistance TR_m7_Oth_BugTest1_act < 400 )
15 setfight 100
16 startcombat player
17 journal TR_m7_Oth_Bugtracker 20
18 set state to 2
19 endif
20 endif
21elseif ( state == 2 )
22 TR_m7_Oth_BugTest2->enable
23 if ( daggertaken == 0 )
24 TR_m7_tv3shack2_yethbug->disable
25 TR_m7_Oth_BugDagger->disable
26 "TR_m7_Bera Famori"->additem TR_m7_Oth_BugDagger 1
27 endif
28 set state to 3
29endif
30
31if ( GetInterior == 0 )
32 if ( OnDeath )
33 if ( state != 3 )
34 set state to 2
35 endif
36 endif
37elseif ( OnPCHitMe == 1 )
38 "TR_m7_Bera Famori"->startcombat player
39 set OnPCHitMe to 0
40 if ( GetJournalIndex TR_m7_Oth_Bugtracker < 150 )
41 Journal TR_m7_Oth_Bugtracker 150
42 endif
43endif
44
45end