Switch to edit mode.
Name(s): go_exit1: "Receives an exit number; moves vehicle to destination; returns '1' if successful."
2: if (!this:key())
3: $msg:mtell("no_key")
4: return
5: elseif (!((dest = args[1]) in this.location:exits()))
6: return player:tell("ERROR: ", tostr(dest), " is not a valid exit from here!")
7: endif
8: this:jabber_shout(this:msg_driveout(), this.location, dest.name)
9: dest:move(this)
10: if (this.location != dest.dest && this.location != `dest:real_dest() ! ANY')
11: this:jabber_shout(this:msg_no_drive(), this.location, dest.dest.name)
12: player:tell("You have been denied entry to " + dest.dest:title() + ".")
13: else
14: this:jabber_shout(this:msg_drivein(), this.location, dest.location.name)
15: return 1
16: endif
17: "Last modified by Dax (#789) on Tue Aug 8 16:39:53 2000 MDT."