public boolean initScript() throws Exception { if (!atPrompt(Swath.COMMAND_PROMPT)) return false; m_planet = new Parameter("Grab from planet"); m_planet.setType(Parameter.INTEGER); m_type = new Parameter("Type of product to grab and sell"); m_type.setType(Parameter.CHOICE); m_type.addChoice(Swath.FUEL_ORE, "Fuel Ore"); m_type.addChoice(Swath.ORGANICS, "Organics"); m_type.addChoice(Swath.EQUIPMENT, "Equipment"); m_type.setCurrentChoice(Swath.FUEL_ORE); registerParam(m_planet); registerParam(m_type); return true; }