TR_m3_FG_OE7_Amulet_sc
TR_Mainland.esm
Variables
4
Local Variables
OnPCEquip
PCSkipEquip
control
button
Source
1Begin TR_m3_FG_OE7_Amulet_sc
2
3short OnPCEquip
4short PCSkipEquip
5short control
6short button
7
8if ( "TR_m3_FG_OE8_FightState" == 0 )
9 if ( PCSkipEquip == 0 )
10 set PCSkipEquip to 1
11 endif
12elseif ( PCSkipEquip )
13 set PCSkipEquip to 0
14endif
15
16if ( OnPCEquip == 1 )
17 if ( PCSkipEquip == 1 )
18 set OnPCEquip to 0
19 MessageBox "Do what with the amulet?" "Equip" "Release Galmyne's soul"
20 set control to 1
21 endif
22endif
23
24if ( control == 1 )
25 set button to GetButtonPressed
26 if ( button == 0 )
27 set control to 0
28 set PCSkipEquip to 0
29 "player"->Equip "TR_m3_FG_OE7_Amulet"
30 set OnPCEquip to 0
31 elseif ( button == 1 )
32 set control to 0
33 if ( GetPCCell "Dobar Ancestral Tomb" == 0 )
34 MessageBox "You must be in the Dobar Ancestral Tomb to do this."
35 elseif ( "player"->getpos z > 14600 )
36 MessageBox "This is not the deepest chamber of the tomb."
37 else
38 PlaySound "mysticism hit"
39 MessageBox "You feel a massive force pull on the amulet."
40 set "TR_m3_FG_OE8_FightState" to 1
41 endif
42 endif
43endif
44
45End