@verb #7148:":p*ort" this none this rxdo #7951 @program #7148:":p*ort" this none this {p} = args if (this.location:port() == #-1) return p:tell({"", "** There is no port in this sector!"}) endif port = this.location:port() p:tell("") p:tell("(A) Attack this Port") p:tell("(T) Trade at this Port") p:tell("(Q) Quit, nevermind") while (1) resp = $command_utils:y_or_n("Enter your choice", "T", {"A", "T", "Q"}) if (resp == "Q") return elseif (resp == "A") return p:tell("We don't do that yet, sorry...") elseif (resp == "T") p.location = port p:tell(port:description(@args)) port:trade(@args) p:tell("") p:tell("You have " + tostr(p.cash) + " credits and " + tostr(p.current_ship.holds - p.current_ship.ore - p.current_ship.organics - p.current_ship.equipment) + " empty cargo holds.") p:tell("") p.location = p.current_ship p.location:look_self() break endif endwhile .