slyz said:
I guess you're talking about stinkycheese.ash, but maybe giving us more details would help. Maybe a CLI output?
For the gear changing, yeah. Here's what it puts out:
Code:
checking for goodies...
sniffing the cheese...
Taking off stinky cheese wheel...
Equipment changed.
Taking off stinky cheese sword...
Equipment changed.
Using 1 stinky cheese wheel...
You lose 14 hit points
You acquire an item: stinky cheese eye
Finished using 1 stinky cheese wheel.
Putting on stinky cheese eye...
Equipment changed.
Using 1 stinky cheese sword...
You lose 14 hit points
You acquire an item: stinky cheese diaper
Finished using 1 stinky cheese sword.
Using 1 stinky cheese diaper...
You lose 14 hit points
You acquire an item: stinky cheese wheel
Finished using 1 stinky cheese diaper.
Using 1 stinky cheese wheel...
You lose 14 hit points
You acquire an item: stinky cheese eye
Finished using 1 stinky cheese wheel.
Putting on stinky cheese eye...
Equipment changed.
You have no weapon! Rethink your strategy please! (Note: Right here is where the abort kicks in)
Calling Universal Recovery for type=HP, amount=0
You need 1 more stinky cheese sword to continue.
You need 1 more stinky cheese wheel to continue.
Putting on Order of the Silver Wossname...
Equipment changed.
Putting on pulled porquoise pendant...
Equipment changed.
And it puts on the equipment that I had on before making the eyes. It's not that big a deal as I can just re-equip them, but I'd like to know what I'm doing wrong.
heeheehee said:
While we're on the topic of stinkycheese.ash, why use modifier_eval() (in prop_count())? to_int() works just as well (and is fewer characters to type!).
Huh. I wasn't aware of that. Some of the functions listed in the wiki were a tad confusing. Just one long list @_@... Would I be correct in guessing all to_xxx functions convert data from one type to another (i.e. string to integer)?
heeheehee said:
Also, functions like check_eq_sword() could be written, simply:
Gah! Case of overthinking :/ For the eyes, the slots that they're in doesn't matter so much as just having 2 equipped
heeheehee said:
For conjuregoodies.ash, it doesn't take into account having the Sauceror accessory (which requires the character to be a Sauceror).
Haven't gotten that far yet. Heck, I haven't even done a run as a Sauceror yet ^^
heeheehee said:
Also, I don't get why you have an else statement for tome summons if both parts do the same thing. =P
Legit question. I wanted the code in place in case I ever do get another tome and want to use that either in my run or aftercore.
Bale said:
I'm afraid that script can be replaced with a single line:
Wow. Very simple. I don't think I'd have guessed that one for quite some time. Question: With that, I don't even really need a separate test, I could just do this directly in the script, right?
PHP:
if (get_property("kingLiberated").to_boolean()) {
funky_chicken(); }
Although, in all honesty, I think I might keep in_aftercore() because it is so much nicer to read.