*label smart

*temp number 1
*temp planet_quadrant ""
*temp planet_sector ""
*temp plan_name ""

What quadrant do you want to check?

*temp quadcheck 0

*input_number quadcheck 1 111

*label begin

*if number > 150
	*set number 1
	*goto done

*set planet_quadrant "planet${number}_quadrant"
*set planet_sector "planet${number}_sector"
*set plan_name "planet${number}_name"

*set planet_quadrant {planet_quadrant}
*set planet_sector {planet_sector}
*set plan_name {plan_name}

*if planet_quadrant = quadcheck
	Planet ${number} (${plan_name}) is at quadrant ${planet_quadrant} and sector ${planet_sector}
	
*set number +1

*goto begin

*if planetquad = quadcheck
	Planet ${number} is in quadrant ${quadcheck}
	
*set number +1

*goto begin

*label done

*if number > 11
	*goto done2

*set planet_quadrant "starbase${number}_quadrant"
*set planet_sector "starbase${number}_sector"
*set plan_name "starbase${number}_name"

*set planet_quadrant {planet_quadrant}
*set planet_sector {planet_sector}
*set plan_name {plan_name}

*if planet_quadrant = quadcheck
	Starbase ${number} (${plan_name}) is at quadrant ${planet_quadrant} and sector ${planet_sector}
	
*set number + 1

*goto done

*label done2

*fake_choice
	#Check again
		*goto smart

*ending