void addCondition(Condition cndStore)
	{
		if (vctConditions.size() == 0)
			engGame.vctCheckConditions.addElement(this);
		else
		{
			Condition cndStore2;
			int i = 0;
			while (i<vctConditions.size())
			{
				cndStore2 = (Condition)vctConditions.elementAt(i);
				if (cndStore2.strName.equalsIgnoreCase(cndStore.strName))
				{
					vctConditions.removeElementAt(i);
					if (cndStore2.strOnEnd != null)
					{
						try
						{
							Script scrStore = new Script("scripts/"+cndStore2.strOnEnd,engGame,false);
							scrStore.varVariables.addVariable("trigger",this);
							scrStore.runScript();
							scrStore.close();
						}catch(Exception e)
						{
							engGame.log.printError("addCondition():While running onEnd script for condition \""+cndStore.strName+"\"", e);
						}
					}
				}else
					i++;
			}
		}
		vctConditions.addElement(cndStore);
		if (cndStore.strOnStart != null)
		{
			try
			{
				Script scrStore = new Script("scripts/"+cndStore.strOnStart,engGame,false);
				scrStore.varVariables.addVariable("trigger",this);
				scrStore.varVariables.addVariable("condition",cndStore.strName);
				scrStore.runScript();
				scrStore.close();
			}catch(Exception e)
			{
				engGame.log.printError("addCondition():While running onStart script for condition \""+cndStore.strName+"\"", e);
			}
		}
		updateStats();
	}