OrdinatorUniform
Morrowind.esm
Variables
2
Local Variables
OnPCEquip
OnPC
Source
1begin OrdinatorUniform
2
3;script for ordinator armor so people can react to you wearing it
4
5short OnPCEquip
6short OnPC ;this is needed since this script also runs on the armor pieces the NPC wears
7
8if ( OnPCEquip == 1 )
9 set WearingOrdinatorUni to 1
10 set OnPC to 1
11endif
12
13;this one has been equipped by PC ast some point, so check for it being unequipped
14
15if ( OnPC == 1 )
16
17 ;oops, now he took it off
18 if ( OnPCEquip == 0 )
19 set WearingOrdinatorUni to 0
20 set OnPC to 0 ;start looking again if he has it on
21 endif
22
23endif
24
25end OrdinatorUniform