Scripts

OrdinatorUniform

Morrowind.esm TR_Mainland.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 11 ; TR ADDITION BEGIN 12 if ( player->GetPCRank "T_Mw_Ordinators" >= 0 ) 13 if ( PCExpelled "T_Mw_Ordinators" == 0 ) 14 set WearingOrdinatorUni to 0 15 endif 16 endif 17 ; TR ADDITION END 18endif 19 20;this one has been equipped by PC ast some point, so check for it being unequipped 21 22if ( OnPC == 1 ) 23 24 ;oops, now he took it off 25 if ( OnPCEquip == 0 ) 26 set WearingOrdinatorUni to 0 27 set OnPC to 0 ;start looking again if he has it on 28 endif 29 30endif 31 32end OrdinatorUniform