Search results

  1. T

    Ascnesion break-down

    I've been poking my head back into this thread from time to time since it was written, and I really think that it is impressive how much KoLmafia has grown since April. Here's itamaram's original list: Here are my impressions, based mostly on softcore ascensions (which are now three days long...
  2. T

    ASH Maps question.

    Thanks, Veracity. I guess I was too lazy last night to properly debug Presto Ragu's script, and should have been more honest about the fact that it's usually quicker to write a ten-line function than to debug someone else's ten-line function. So I took another look after a good night's sleep...
  3. T

    ASH Maps question.

    The first problem is that your data structure is not conducive to maps at the moment. For simplicity's sake, I got rid of the function in the middle just to test your assignment. item [int, stat, int, int] FoodItem; FoodItem [6, $stat[muscle], 21, 29] = $item[spaghetti with skullheads]...
  4. T

    scripting the microbrewery

    I guess you're right. Oh well, guess we have to hit this fly with a sledgehammer. cli_execute("drink 6 infinitessimal IPA"); Like I say, I don't have access to the microbrewery, but this gives every indication of working as expected in the restaurant.
  5. T

    scripting the microbrewery

    I don't have any muscle sign characters at the moment, but have you tried this? drink (6, $item[Infinitesimal IPA]);
  6. T

    ASH Function Reference Manual

    Yes, I noticed those three additions. I literally went through the KoLmafia source code and pulled out every function that was referenced there. So the sorts of things that I added were weapon_hands(), ranged_weapon(), have_familiar(), wait(), the rounding functions, and the monster data...
  7. T

    ASH Function Reference Manual

    As of this moment, the Wiki copy of the manual is a full acounting of ASH's functions. Phew! I had no idea there was so much stuff there, I've evidently been overusing CLI. There are also five code samples to demonstrate how the functions work together and how to write pleasing syntax; that...
  8. T

    ASH Maps question.

    Yup, I was just writing what Nightmist just said, that two maps seems like it would be the best way to do that. Assuming we're understanding your MP restorer question correctly. As far as figuring out how to use maps, I've started working them into my scripts, so maybe seeing them being used in...
  9. T

    Live with what you have...

    :o I couldn't imagine writing these scripts with only one character. I've got five. My opinion is that if you don't like maps, then you should learn to like them. :P It makes KoLmafia run more efficiently than large blocks of if-then-return statements. Plus, design-wise, it decouples your data...
  10. T

    Re: Welcome Tirian!

    Re: Welcome Tirian! I keep thinking that it's easy to see all of my scripts since they have the yellow folders on the left-hand side. But then I realize that you probably would need my password to really take advantage of that. :D But, sure, what are we going to do with this shiny new wiki? I...
  11. T

    ASH Function Reference Manual

    Part 4 - Skills and Effects Just a few buffs and then we're ready to face the world! boolean have_skill (skill sk) Tells you if you have the indicated skill in this current ascension. See: Friars int have_effect (effect ef) Returns the number of adventures remaining of the given effect, or 0...
  12. T

    ASH Function Reference Manual

    Part 2 - Item management Now we'll expand our focus to include some of your special "me-places" in the Kingdom and how to play with them int item_amount (item it) int closet_amount (item it) int museum_amount (item it) int shop_amount (item it) int storage_amount (item it) int stash_amount...
  13. T

    ASH Function Reference Manual

    ASH Function Reference Manual version 0.1 July 19, 2006 by Tirian (mostly) Part 1 - Elementary knowledge about your character We'll start with a long look in the mirror. Here's how to tell about you. string my_name() Returns your character's name string my_turncount() Returns the number of...
  14. T

    ASH Function Reference Manual

    Introduction post Holatuwol challenged us to pick up the gauntlet of ASH training, and I think that he is right to have done so. Not simply because we are all a bunch of overdependent do-nothings, but also because the developers have been too busy with new and fabulous features to keep the...
  15. T

    Deep Fat Friar's quest

    Here's a script that manages the Deep Fat Friar's quest. It's a little more sophisticated than the ones that have been uploaded up to this point, having greater support for hardcore characters and picking up the Hey Deze map at the end. People who are new to ASH scripting might want to look...
  16. T

    errors

    The syntax error in your script is that you are trying to use // to start a comment instead of #. My constructive suggestion about this script is that you don't run it ever.
  17. T

    kolmafia's built in Sorceress's Lair Scripts.

    Those scripts are untweakable. Best you can do is to report problems as bugs. For the first problem, put on your best HP clothes yourself before starting the chamber script, as KoLmafia doesn't ever choose your clothes unless there is a very specific outfit required for a task. Veracity...
  18. T

    ASH Maps question.

    This must be why non-OO languages don't use maps. :D I think I prefer the look of the way Perl does this, which would translate to ASH as "old = delete foo[5];" So that it looks to the human like a value, but the language has to do a little extra work to detach the key from the map (which might...
  19. T

    ASH Maps question.

    Ooh, neat. I've got a few things of my own that I'd love to have clarified. Currently, to the best of my investigation, if you query a map with a key that is not defined, it returns the most "zero-ish" member of the codomain. Is this something we can count on? Also, will the "foreach" iterator...
  20. T

    Silly mistakes?

    Golly, ASH conditionals can do even neater things than that. Here's a quiz to take before reading the rest of my post: look over the following code and guess what will get printed, and then copy it into an ASH script and execute it to see if you're right. boolean first() { print("George")...
Back
Top