TR_m3_OE_CuriaRealArmisticeSCP
TR_Mainland.esm
Variables
2
Local Variables
button
controlvar
Source
1begin TR_m3_OE_CuriaRealArmisticeSCP
2
3;this is the real Treaty of the Armistice
4;a torn piece of Tiber Septim's cloak
5
6short button
7short controlvar
8
9if ( MenuMode == 1 )
10 return
11endif
12
13if ( OnActivate == 1 )
14 startscript TR_m3_q_guardcall
15 if ( TR_m3_OE_truearmistice == 1 )
16 return
17 endif
18 if ( controlvar == 0 )
19 MessageBox "A piece of cloth cut from the cloak of Tiber Septim himself. There are barely visible markings made with what appears to be darkened blood. This is the real Treaty of the Armistice." "Touch it." "Leave it alone."
20 set controlvar to 1
21 elseif ( controlvar == 2 )
22 Activate
23 endif
24endif
25
26if ( controlvar == 1 )
27 set button to GetButtonPressed
28 if ( button == -1 )
29 return
30 elseif ( button == 0 )
31 ;pick up
32 Messagebox "As your hand approaches the cloth, a strong force pushes back, allowing only the tip of your finger to graze it. As your finger grazes the surface you gain a strange feeling of serenity. The Armistice forces your hand away."
33 player->addspell TR_m3_OE_ArmisticeAbility
34 set TR_m3_OE_truearmistice to 1
35 ;PlaySound "Item Clothes Up"
36 set controlvar to 2
37 elseif ( button == 1 )
38 set controlvar to 0
39 return
40 endif
41endif
42
43
44end