I was going to post that getting user-defined ascension-relevant semi-rares was outside the scope of CounterChecker.ash. Making a counterScript that grabs a few user-defined SRs would be a lot simpler.I may even allow the user to define a list of semi-rares that he wants to get in hardcore so that the script can just get the next one on the list.
Also, if all the other locations are being added, does that mean CanAdv is being added, or just left to user's discression? The one issue I've found with CanAdv is regarding (generally the first semirare) pre-unlocking guild... it tries to unlock the guild, which uses adventures, and then the semirare adventure is lost, but the script isn't aware of it having happened. I may throw in an adventure check to see if the count is the same before and after the CanAdv($location, true) call.
I was going to post that getting user-defined ascension-relevant semi-rares was outside the scope of CounterChecker.ash. Making a counterScript that grabs a few user-defined SRs would be a lot simpler.
But if Bale decides to include this (along with a nifty user interface for the configuration, of course, since we now expect no less), people wouldn't need to give up the other awesome features, such as automatic absinth-levelling!
Hmm... Okay, adding in the HiddenCity script to my version so it can do its get_first("e") check if it's going for a shrinking powder.
int get_first_e() {
string prop = get_property("hiddenCityLayout");
for i from 1 to length(prop)
if (substring(prop,i-1,i) == "E") return i;
return 0;
}
It's a pretty short function, so I'm gonna simply copy it (thanks zarqon). After all, it's annoying to the user to make them download a variety of unassociated scripts.
PHP:int get_first_e() { string prop = get_property("hiddenCityLayout"); for i from 1 to length(prop) if (substring(prop,i-1,i) == "E") return i; return 0; }
Hrm? Isn't there an index_of() function? (am slightly confused, please clarify.)
int get_first_e() {
return index_of(get_property("hiddenCityLayout"), "E");
}
I appreciate the compliment, but I'm not sure that I really want the trouble of making a UI for it. If people want the feature they can just set it as a zlib variable containing a list of locations.
Do people really think that there should be a relay script to configure CounterChecker? So you can have a checklist of semi-rares?
Not editing zlib... using zlib to set variables. Editing the variables in the script only helps if it's the first time you're running the script, else it's too late...
As for interface, as soon as we can get items/monster dropdowns working...
Also, what you describe as a weakness is intentional for a universally importable script.