-.- I really gotta check the properties more often. Thanks ^^
int choiceAdvNumber = -1;
matcher m = create_matcher("Choice adventure number</a>: </b>(\\d+)", visit_url("http://kol.coldfront.net/thekolwiki/index.php/"+get_property("lastEncounter")));
if(m.find()) choiceAdvNumber = m.group(1).to_int();
JasonHarper has a handy alias for reference checking:
alias prefref => ash 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+")")