TR_m3_OE_CuriaArmisticeSCP
TR_Mainland.esm
Variables
2
Local Variables
button
controlvar
Source
1begin TR_m3_OE_CuriaArmisticeSCP
2
3;this is the public copy of the armistice
4
5
6short button
7short controlvar
8
9if ( MenuMode == 1 )
10 return
11endif
12
13if ( TR_m3_OE_armisticetheft == 2 )
14 enable
15 set TR_m3_OE_armisticetheft to 0
16 set controlvar to 0
17endif
18
19if ( OnActivate == 1 )
20 if ( TR_m3_OE_armisticetheft == 1 )
21 Activate
22 return
23 endif
24 if ( controlvar == 0 )
25 MessageBox "Signed in the last years of the Second Era, the Treaty of the Armistice details the terms of peace between Morrowind and the Cyrodiilic Empire. The Treaty appears to bear the signatures of both Tiber Septim and Vivec. It looks expensive and surprisingly well preserved." "Take it." "Leave it alone."
26 PlaySound "Item Book Up"
27 set controlvar to 1
28 endif
29endif
30
31if ( controlvar == 1 )
32 set button to GetButtonPressed
33 if ( button == -1 )
34 return
35 elseif ( button == 0 )
36 set TR_m3_OE_armisticetheft to 1
37 MessageBox "The scroll begins to glow in your hands. Your feel as though your body is radiating negative energy."
38 "TR_m3_OE_CuriaVaultMagicRock01"->Cast, "TR_m3_OE_ArmisticeFireTrap", player
39 Player->addspell "TR_m3_OE_ArmisticeThiefMark"
40 set controlvar to 2
41 player->additem "TR_m3_OE_CuriaVaultArmisticeSc" 1
42 disable
43 elseif ( button == 1 )
44 set controlvar to 0
45 PlaySound "Item Book Down"
46 return
47 endif
48endif
49
50
51end