TR_m7_Passwall_Amulet_sc
TR_Mainland.esm
Variables
3
Local Variables
OnPcEquip
button
MessageOn
Source
1begin TR_m7_Passwall_Amulet_sc
2
3short OnPcEquip
4short button
5short MessageOn
6
7if ( OnPCEquip == 1 )
8 if ( getpccell "Alta Vathor" )
9 if ( getjournalindex TR_m7_Ns_MG_Arch03 == 10 )
10 set OnPCEquip to 0
11 MessageBox "Cast Passwall?" "Yes" "No"
12 set messageOn to 1
13 endif
14 endif
15endif
16
17if ( MessageOn == 1 )
18 set button to getbuttonpressed
19 if ( button >= 0 )
20 set messageOn to 0
21 endif
22 if ( button == 0 )
23 if ( player->getitemcount TR_m7_MG_Mhas_Scroll == 0 )
24 player->additem TR_m7_MG_Mhas_Scroll 1
25 messagebox "Lord Mhas Vathor: Buffoonish mortal. For your own sake, do not lose this a second time."
26 endif
27 messagebox "The Amulet of Passwall shatters around your neck."
28 playsound "Mysticism Hit"
29 player->positioncell 3604 7434 12689 0 "The Space Gone Missing, Outer Caverns" ; TR_m7_MARK_Ns_MG_player
30 player->removeitem TR_m7_Passwall_Amulet 1
31 player->additem TR_m0_Passwall_Amulet_Inert 1
32 elseif ( button == 1 )
33 return
34 endif
35endif
36
37end