User:Lostcalpolydude/prefref

From Kolmafia
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 )