AardCrowley / Search-and-Destroy

Safe, Legal Search and Destroy
10 stars 14 forks source link

Add the special argument start to the xrun command, which will run to the start of the current area. #112

Closed joshgarnett closed 2 months ago

joshgarnett commented 2 months ago

Example usage in lemdagor

The Storm Cruiser, Tempest
  The entrance to the Tempest is messed up completely.  The gangways
are destroyed, and there seems to be no way out.  What is going on?
All around you, the din of exotic weapon blasts, men and women
screaming in pain, tell of a sudden attack by Lem Dagor pirates.

[ Exits: east ]

Details about this room:
+---------------------------+
Name: The Storm Cruiser, Tempest
ID: 2009
Area: lemdagor
Terrain: inside
Info: 
Notes: 
Flags:
Exits: 
"e"="2008"
Exit locks: 
"e"="0"
Ignore exits mismatch: false
+---------------------------+
xrun start
X-runto: lemdagor, room ID: 1966 (default)

Going to: The Storm Cruiser, Tempest
run e2swsne2nw

... bunch of text ...

The Storm Cruiser, Tempest
  Yes indeed, you are now experiencing one of the many great adventures of the 
Storm Ships of Lem-Dagor. Of course this is the famous cruiser, Tempest, 
where your voyage begins. Look around, look at everything for a clue. There 
is a big sign for you to read.

[ Exits: east west ]

Details about this room:
+---------------------------+
Name: The Storm Cruiser, Tempest
ID: 1966
Area: lemdagor
Terrain: inside
Info: 
Notes: 
Flags:
Exits: 
"w"="3357"
"enter gangway"="2064"
"e"="1967"
Exit locks: 
"w"="0"
"enter gangway"="0"
"e"="0"
Ignore exits mismatch: false
+---------------------------+
AardCrowley commented 2 months ago

Nice addition! I've merged it. I'll update the beta version so that people can update it, too. Thanks!