User:Lostcalpolydude/prefref

From Kolmafia
Revision as of 12:54, 7 February 2012 by imported>Lostcalpolydude (Created page with "Want an easy way to find mafia properties? Make this alias: <code>alias prefref => ashq record r{string d ; }; r[string,string]m; file_to_map("defaults.txt",m); foreach t,p,d i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Want an easy way to find mafia properties? Make this alias:

alias prefref => ashq record r{string d ; }; r[string,string]m; file_to_map("defaults.txt",m); foreach t,p,d in m if(to_lower_case(p).contains_text(to_lower_case($string[%%]))) print(p+" ("+t+", now '"+get_property(p)+"', default "+d.d+")")

Then you can type something like prefref rave and get
raveCombo1 (user, now '', default )
raveCombo2 (user, now '', default )
raveCombo3 (user, now '', default )
raveCombo4 (user, now '', default )
raveCombo5 (user, now '', default )
raveCombo6 (user, now '', default )