Disable autoattack warning?


Ask fellow adventurers how to stay alive in the deep, dark, dangerous dungeon below, or share your own accumulated wisdom.

Lair Larrikin

Posts: 15

Joined: Wednesday, 3rd August 2011, 07:40

Post Friday, 28th April 2017, 02:17

Disable autoattack warning?

Is there any way to disable the autoattack warning about attacking with stones equipped or barehanded?

Slime Squisher

Posts: 368

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

Post Friday, 28th April 2017, 21:58

Re: Disable autoattack warning?

Add this to your rcfile:
  Code:
{
function c_answer_prompt(prompt)
    if prompt:find("Really attack while wielding") and prompt:find("stone") then
        return true
    end
    if prompt:find("Really attack barehanded") then
        return true
    end
end
}

This code will automagically answer yes, and prevent the confirmation prompt from ever being displayed, while attacking unarmed or with wielded stones. If you want to disable the prompt for all awkward wielding instead of just stones, simply remove the "and prompt:find("stone")" bit.

Side note: The c_answer_prompt() Lua hook is _completely_ undocumented beyond its original commit message and an inaccurate one-line comment. It's possible that future development may break or change this functionality. As far as I can tell, this hook's existence is entirely a convenience to get qw's Lua to play more nicely with the c++ function yesno(), because there's no fucking way that any player would know it's available to be used.

@devteam, @elliptic: Any kind of documentation of Stone Soup's Lua hooks would sure be nice, if they are intended to be player-facing. Maybe a writeup as another section in options_guide.txt?

For this message the author Implojin has received thanks:
Leszczynek

Return to Dungeon Crawling Advice

Who is online

Users browsing this forum: No registered users and 37 guests

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