The only downside of the travel command is that it's easily interrupted.
While this probably isn't an issue if you play the graphical version,
it's a pain in the posterior otherwise. Stopping to kill the odd balrog
here and there, no problems. But it also stops for traps, most of which
are harmless after a certain point in the game. Friendlies that get in
the way are also rather irritating.
So how about having the travel command cache its last target, accessible
through, say, hitting the travel command twice or something similar?
-- A.
Oh, My, Word.
Just discovered it, and yes, it's wonderful.
> The only downside of the travel command is that it's easily interrupted.
[...]
> Friendlies that get in
> the way are also rather irritating.
Like overly affectionate pets, yes.
> So how about having the travel command cache its last target, accessible
> through, say, hitting the travel command twice or something similar?
Sounds great to me.
Can you code? I can't...
The travel command can be aptly described as "sex on a stick" for that
part of the game.
> > The only downside of the travel command is that it's easily interrupted.
[...]
> > So how about having the travel command cache its last target, accessible
> > through, say, hitting the travel command twice or something similar?
> Sounds great to me.
>
> Can you code? I can't...
Hey! The I in YANI was "Idea" not "Implementation". I was even kind
enough to point out a possible way of writing it. The cheek!
But yeah, I'll add it to my "to do" list. :)
-- A.
> The travel command can be aptly described as "sex on a stick" for that
> part of the game.
You've been reading the Internet Oracle, haven't you...
>>>So how about having the travel command cache its last target, accessible
>>>through, say, hitting the travel command twice or something similar?
>>
>
>>Sounds great to me.
>>
>>Can you code? I can't...
>
>
> Hey! The I in YANI was "Idea" not "Implementation". I was even kind
> enough to point out a possible way of writing it. The cheek!
I have 4 ;)
> But yeah, I'll add it to my "to do" list. :)
<evil titter>
<rubs hands together>
It worked, my precious!
IT WORKED!!!
-adrian-
Not just reading it. <g>
[of amending it to cache the previous position]
> <evil titter>
>
> <rubs hands together>
>
> It worked, my precious!
>
> IT WORKED!!!
Yeah.
Well.
The change is so small, I may as well just post it here. Hacky? Oh
yes, definitely. Since it's just a trivial hack and primarily for my
own use, I'm not going to sweat it.
It caches off the last position of the 'travel' cursor, and clears this
cache when a travel seems to succeed. I really should also have cleared
out the cache when you navigate between levels, but didn't.
I've only lightly tested this. Worst that could happen is that the
travel cursor does not appear where you expect it to.
-- A.
src\cmd.c
147a148
> coord cctravel = {-1, -1};
2146,2147c2147,2155
< cc.x = u.ux;
< cc.y = u.uy;
---
> cc.x = cctravel.x;
> cc.y = cctravel.y;
> if (cc.x == -1 && cc.y == -1)
> {
> /* Last travel attempt was successful,
> start attempt from current position */
> cc.x = u.ux;
> cc.y = u.uy;
> }
2153,2154c2161,2162
< u.tx = cc.x;
< u.ty = cc.y;
---
> cctravel.x = u.tx = cc.x;
> cctravel.y = u.ty = cc.y;
src\hack.c
6a7,8
> extern coord cctravel;
>
718a721
> cctravel.x = cctravel.y = -1;
Hitting _ twice will make you travel to an altar. Hitting _<Enter>
might be a better idea.
Although <Enter> used to move you south...
Dion
Yeah, you're quite right. But I ended up not doing it quite that way:
my patchette just sets the initial position of the travel "pick a
destination" cursor to be the destination of the last failed travel
attempt.
So you end up going _>. followed by repeated uses of _. (kill kill kill)
_. (push Fluffy out of the way) _. until you finally get to your
destination.
Only saves you a single keypress for each attempt in that case, though.
Would probably be better to have a dedicated single "repeat last travel
attempt" key (perhaps CTRL+_, to be similar to CTRL+A to repeat the last
command?).
-- A.
> So how about having the travel command cache its last target, accessible
> through, say, hitting the travel command twice or something similar?
>
> -- A.
Can't you just hit ^A ?
No, because whatever stops you needs to be dealt with (usually with a
wallop), and CTRL-A will just repeat that last action rather than
resuming travel.
-- A.
[travel command improvment, to resume travel after interruption]
> So you end up going _>. followed by repeated uses of _. (kill
> kill kill) _. (push Fluffy out of the way) _. until you
> finally get to your destination.
>
> Only saves you a single keypress for each attempt in that
> case, though. Would probably be better to have a dedicated
> single "repeat last travel attempt" key (perhaps CTRL+_, to be
> similar to CTRL+A to repeat the last command?).
Um, please think of different keyboard layouts. Here, I'd have to
press shift and '-' to get '_' anyway, adding another key would
rather make it even more awkward.
Ctrl plus an unused letter would be a better solution, IMO.
--
Bye
Tina
Multiple exclamation marks are a sure sign of an insane mind!!!!
(Apologies to Terry Pratchett.)
[Ctrl-_ for repeated travel]
> Um, please think of different keyboard layouts. Here, I'd have to
> press shift and '-' to get '_' anyway, adding another key would
> rather make it even more awkward.
>
> Ctrl plus an unused letter would be a better solution, IMO.
Ha. Go on, name an unused letter.
(Note that ^M (carriage return) is mapped by some terminals to ^J
(linefeed); ^Q and ^S are used for flow control, so you can't rely on
their reaching the game; ^C and ^Z for terminating and suspending
processes respectively.)
--
: Dylan O'Donnell http://www.spod-central.org/~psmith/ :
: "Let us grasp the situation, / Solve the complicated plot -- :
: Quiet, calm deliberation / Disentangles every knot." :
: -- W.S. Gilbert, "The Gondoliers" :
For Ctrl I get (trying in wizardmode): u, h, k, y, b, n, leaving
out those you mentioned to already have a special meaning.
--
Tina
(insufficiently chaotic): Level 10 HP 61(63) AC 10, confused.
Control-H is a backspace (hence the long-running ^H joke). I'm not sure about
the rest, but I wouldn't count on them not being assigned to something
already.
--
r@,,+2 'a,kd"
There aren't enough to be movement keys, whatever's missing for
the weird keys is already in use for something with Ctrl, just
like just 'k' without Ctrl for example does a kick, not movement,
with the numberpad. Might as well expand on that for the travel
command.