RCFile for Travel Speed WRT Allies [Ctrl][e]


If it doesn't fit anywhere else, it belongs here. Also, come here if you just need to get hammered.

Tartarus Sorceror

Posts: 1822

Joined: Thursday, 31st May 2012, 15:45

Post Tuesday, 20th February 2018, 18:47

RCFile for Travel Speed WRT Allies [Ctrl][e]

Is there an option setting for "you travel at the pace of your slowest ally" / "you travel at normal speed"? I looked for one in the docs and didn't find one.
Won (52). Remaining (15): 5 species: Ba, Fe, Mu, Na, Op; 5 Backgrounds: AM, Wr, Su, AE, Ar; 5 gods: Jiyv, newNem, WJC, newSif, newFedh

Slime Squisher

Posts: 368

Joined: Thursday, 11th April 2013, 21:07

Post Tuesday, 20th February 2018, 23:54

Re: RCFile for Travel Speed WRT Allies [Ctrl][e]

As far as I can tell through a couple of quick greps, there is no rcfile option to automatically enable this setting.

However, the setting does marshall and unmarshall with your character when you save/load, so you should only have to set it once per game. You cannot do this with setopt since the option doesn't exist, and you.travel_ally_pace is not exposed through Lua so you can't directly* check if it's already been set. What you can do is just invoke the command with crawl.process_keys() once per game, as needed.

*(You could possibly indirectly check if it's been set by invoking the command, then parsing the combat log to see what text was spit out?)

Below is some Lua that automagically invokes ^e on turn 0, copy-paste it into your rcfile:

(Credit for the control() function here to the authors of elliptic's qw.rc)
  Code:
{
local t_zero_initialized = false

function control(c)
  return string.char(string.byte(c) - string.byte('a') + 1)
end

function ready()
  if you.turns() == 0 and not t_zero_initialized then
    crawl.process_keys(control('e'))
    t_zero_initialized = true
  end
end
}

You could modify the above code to only activate when you convert to Yred or something if you wanted to bother.

Return to Crazy Yiuf's Corner

Who is online

Users browsing this forum: No registered users and 25 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.