@Override
	public void setMiscText(String newMiscText)
	{
		onlyRoomDomains.clear();
		neverRoomDomains.clear();
		skills.clear();
		super.setMiscText(newMiscText);
		this.message=CMParms.getParmStr(newMiscText, "MESSAGE", "You can't do that here.");
		String domains=CMParms.getParmStr(newMiscText, "ONLYROOMS", "");
		List<String> domainList=CMParms.parseCommas(domains, true);
		for(String domain : domainList)
		{
			int x=CMParms.indexOf(Room.DOMAIN_INDOORS_DESCS, domain.toUpperCase().trim());
			if(x>=0)
				onlyRoomDomains.add(Integer.valueOf(Room.INDOORS+x));
			else
			{
				x=CMParms.indexOf(Room.DOMAIN_OUTDOOR_DESCS, domain.toUpperCase().trim());
				if(x>=0)
					onlyRoomDomains.add(Integer.valueOf(x));
			}
		}
		domains=CMParms.getParmStr(newMiscText, "NEVERROOMS", "");
		domainList=CMParms.parseCommas(domains, true);
		for(String domain : domainList)
		{
			int x=CMParms.indexOf(Room.DOMAIN_INDOORS_DESCS, domain.toUpperCase().trim());
			if(x>=0)
				neverRoomDomains.add(Integer.valueOf(Room.INDOORS+x));
			else
			{
				x=CMParms.indexOf(Room.DOMAIN_OUTDOOR_DESCS, domain.toUpperCase().trim());
				if(x>=0)
					neverRoomDomains.add(Integer.valueOf(x));
			}
		}
		
		String skillStr=CMParms.getParmStr(newMiscText, "SKILLS", "");
		List<String> skillList=CMParms.parseCommas(skillStr, true);
		for(String skill : skillList)
		{
			final Ability A=CMClass.getAbility(skill);
			if(A!=null)
			{
				skills.add(A.ID());
			}
		}
		
	}