Rcfile shenanigans


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

Slime Squisher

Posts: 344

Joined: Tuesday, 14th April 2015, 19:56

Location: France

Post Monday, 23rd October 2017, 18:55

Rcfile shenanigans

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 ?
3 runes : MiMo^Ru, HOFi^Beogh, TrMo^Yredelemnul, GrFi^Ru, FoFi^Gozag, MiGl^Okawaru
4 runes : DDFi^Makhleb
5 runes : GrEE^Vehumet
15 runes : MiFi^Ru, NaWz^Sif Muna, GrWz^Sif Muna
I mostly play offline or online on CXC

Swamp Slogger

Posts: 152

Joined: Tuesday, 19th May 2015, 09:51

Post Tuesday, 24th October 2017, 06:56

Re: Rcfile shenanigans

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.

For this message the author emikaela has received thanks:
Fingolfin

Slime Squisher

Posts: 344

Joined: Tuesday, 14th April 2015, 19:56

Location: France

Post Friday, 24th November 2017, 11:54

Re: Rcfile shenanigans

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 ?
3 runes : MiMo^Ru, HOFi^Beogh, TrMo^Yredelemnul, GrFi^Ru, FoFi^Gozag, MiGl^Okawaru
4 runes : DDFi^Makhleb
5 runes : GrEE^Vehumet
15 runes : MiFi^Ru, NaWz^Sif Muna, GrWz^Sif Muna
I mostly play offline or online on CXC

Return to Crazy Yiuf's Corner

Who is online

Users browsing this forum: No registered users and 33 guests

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