abebaalSlaves
Morrowind.esm
Variables
3
Local Variables
slaveStatus
doOnce
NoLore
Source
1Begin abebaalSlaves
2
3;Slave Status... each slave has a status as follows
4;0 = Owned ( default state... does not indicate who they are owned by )
5;1 = For Sale ( someone in the game can "sell" this slave via dialogue )
6;2 = Owned By the Player ( the player has purchased this slave and the slave follows the player )
7;3 = Freed ( the player has freed this slave, the slave eventually disables himself)
8;dead = not in slave status, but a state one should check for
9
10;special conditions for slaves in Abebaal, see HT_SlaveRebellion
11
12short slaveStatus
13short doOnce
14short NoLore
15
16if ( CellChanged == 0 )
17 return
18endif
19
20if ( GetJournalIndex HT_SlaveRebellion >= 50 )
21
22 if ( GetItemCount Slave_Bracer_Left > 0 )
23 Drop Slave_Bracer_Left 1
24 endif
25
26 if ( GetItemCount Slave_Bracer_Right > 0 )
27 Drop Slave_Bracer_Right 1
28 endif
29
30endif
31
32if ( GetJournalIndex HT_SlaveRebellion >= 100 )
33 Disable
34endif
35
36End