TR_m3_NPC_MamaeaBanapli
TR_Mainland.esm
Variables
6
Local Variables
TR_Map
control
controlQ
T_Local_NPC
NoLore
eec
Source
1Begin TR_m3_NPC_MamaeaBanapli
2
3; Mamaea Banapli is a Velothi traveling merchant.
4; By default, she is disabled.
5; She enables in OE EEC Q4 on the Almas Thirr docks so you can meet her there. (Handled by this local script.)
6; She then disables and then (if you haven't needlessly murdered her) reappears near Roa Dyr for OE EEC Q6.
7; (Handled by dialogue results.)
8
9; This script mainly exists to ensure that she is disabled by default, second to define some local variables for dialog.
10
11short TR_Map
12short control
13short controlQ ;unique dialogue the first time you run back into her near Roa Dyr, also guides the placing of a coda flower at her husband's funeral shrine
14short T_Local_NPC
15short NoLore
16
17; quest 4 variables
18short eec ; set in dialogue
19
20if ( MenuMode )
21 return
22endif
23
24if ( OnDeath )
25 ; Killing Mamaea Banapli is absolutely unnecessary for Q4 but a possible solution to Q6.
26 ; hence no death check for Q4 but for Q6
27 if ( GetJournalIndex "TR_m3_EEC_Cano6" > 0 )
28 if ( GetJournalIndex "TR_m3_EEC_Cano6" < 200 )
29 Journal "TR_m3_EEC_Cano6_a" 300
30 endif
31 endif
32endif
33
34; In Quest 6, you meet her near a Velothi gourd which plays a loud, distracting sound.
35; If you talk to her, she will suggest moving to a quieter place.
36if ( GetSoundPlaying "T_SndObj_VelothGourd" )
37 set controlQ to 1 ;"let us talk where it is quieter"
38else
39 set controlQ to 0
40endif
41
42; In Quest 6, if you give her a coda flower, she'll place it at the funeral shrine in front of her when you aren't near.
43if ( CellChanged )
44 if ( GetItemCount "ingred_bc_coda_flower" > 0 )
45 if ( controlQ )
46 RemoveItem "ingred_bc_coda_flower" 1
47 PlaceItem "ingred_bc_coda_flower" 78243.27 -208652.73 316.48 1.25
48 endif
49 endif
50endif
51
52if ( TR_Map == 3 )
53 return
54endif
55
56set TR_Map to 3
57if ( GetJournalIndex "TR_m3_EEC_Cano4" == 0 )
58 disable
59endif
60
61End