Scripts

LegionUniform

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