Page 1 of 1

Rcfile shenanigans

PostPosted: Monday, 23rd October 2017, 18:55
by Fingolfin
Hi, I was wondering if it was possible to activate some rcfile options only for some race/background combos, like increase the auto_butcher threshold for trolls, pick up magical staves for casters, don't pick up books for troglodytes... Is it possible to do so with a bit of Lua magic ?

Re: Rcfile shenanigans

PostPosted: Tuesday, 24th October 2017, 06:56
by emikaela
i did:

  Code:
:if you.gourmand() or you.race() == "Felid" or you.race() == "Kobold" or you.race() == "Ghoul" then
auto_butcher = full
:else
auto_butcher = hungry
:end


there is probably a cleaner way to do it, idk. i imagine hooks for background and god are similar.

Re: Rcfile shenanigans

PostPosted: Friday, 24th November 2017, 11:54
by Fingolfin
Thanks ! So now that I know how to change options when I start a game, is there a way to change options when something happens in-game? For example : make auto_butcher change when I put on an amulet of the gourmand, or change my book autopickup settings when I convert to Trog ?