public int ReadScript(String name) {
		FileReader Reader = new FileReader(name);
		reader = Reader;
		try {
			OpenValueTable();
			String str;
			while ((str = reader.GetString()) != null) {
				ParserString(str);
			}
			CommandBuffer.WriteCommand(ScriptType.END_CMD, command_buffer);
			LabelCheck();
			if (nerror != 0) {
				Notice("I have " + nerror + " error" + (nerror == 1? "": "s") + " found.");
			}
			if (nerror == 0 && add_value) {
				CloseValueTable();
			}
		} catch (Exception e) {
			FatalError(e.getMessage());
			e.printStackTrace();
		}
		return nerror;
	}