Search results

  1. S

    Breakfast Script needs tweaking help.

    My mistake. You'll have to do: int last_run_phase = get_property(property).string_to_int();
  2. S

    Breakfast Script needs tweaking help.

    The mushroom planting scripts use a user setting that stores the moon phase. I would think something like this would be usable: string property = "myScriptMoonPhase"; int current_phase = moon_phase(); int last_run_phase = get_property(property); if (last_run_phase == current_phase) { print(...
  3. S

    Modified mushroom script to produce 3rd +4th gen crop

    @ snooty: I don't mind at all; it certainly explains the number of notifications I've been getting recently! Of course, if random meat donations were to be given to Sandiman, who would I be to complain, right? ;) @ everyone: I had a hiccup with my file server over the weekend and was unable to...
  4. S

    Can I sort an array? Can I call a method if given a reference?

    Exactly. In my example, I was trying to use maps as I've seen them in the tutorials, in case people looking for more info stumbled across this thread. I've actually used the sort-by-creating-records method in some scripts I've written. I can understand the hesitance in opening up ASH to runtime...
  5. S

    Can I sort an array? Can I call a method if given a reference?

    Makes perfect sense. It's always nice to know things were done on purpose -- I get that feeling a lot with KoLmafia, which is probably why I enjoy it so much. Thanks for all the work, it's a great program.
  6. S

    Can I sort an array? Can I call a method if given a reference?

    After thinking about this for a while, I've come to the conclusion that ASH "arrays" are really hash tables -- a "foreach" loop is going to access items as if they were inherently sorted, based on the value of the first key in the map on which we're looping. As such, the only way to sort them...
  7. S

    Summon Party Favors

    Please copy/paste the following lines from your user preferences file: currentMood manaBurningThreshold Then copy/paste your moods file. That should give us a better idea of what kolmafia thinks is going on.
  8. S

    Summon Party Favors

    Check your preferences under the General tab. There's an entry that says "Cast buffs not defined in moods during buff balancing." My guess is that's checked, so it'll cast any buffs not defined in your moods whenever it has the mana.
  9. S

    Modified mushroom script to produce 3rd +4th gen crop

    Actually, the script failed yesterday, too. It was supposed to plant mushrooms to start the second 3rd-generation cycle, and it failed to do so. For those of you wanting a learning experience, take a look at line 53 of the original script. Incorrect (and current) code: int offsetDate = index +...
  10. S

    need help: consult script to cast leash if mp is high enough

    If I recall, consult scripts only function when called as the first action. If that's the case, you'll need to make attacking part of your consult script.
  11. S

    Max food/booze adventures from storage items

    I recently a run, and I would like to get out of Ronin as quickly as possible (shocking, I know). To that end, I want to consume food and booze every day that gives me the greatest number of additional adventures. Because I don't feel like clicking eight hundred links every time I want to check...
  12. S

    Modified mushroom script to produce 3rd +4th gen crop

    Is the MaxShrooms.ash file in the "planting" directory, or did you download it somewhere else?
  13. S

    Is is possible to fully parse internal data files?

    Beautiful! This will definitely help me make better scripts in the future. Thanks.
  14. S

    Is is possible to fully parse internal data files?

    I've been trying to load the KoLMafia data files into maps. Specifically, I'm interested in the data in fullness.txt and inebriety.txt. I can get a record of the items with the following code: item[item] fullnessMap; fullnessMap = file_to_map("fullness.txt", fullnessMap); "fullnessMap" then...
  15. S

    Can I sort an array? Can I call a method if given a reference?

    Couple of questions here, I'm hoping someone will know the answer to one or both. 1. Is there built-in functionality to sort an ASH array? 2. Is there a way to call a method if given a reference to the method? The only reference I can think of in ASH is the method's name. The code I'm looking...
  16. S

    Request: Sewer Tunnel Info Script

    Here you go. This only checks the user's inventory directly, it doesn't check things like closet or clan stash.
  17. S

    Mana Burning

    I'm completely lost. There's nothing in your moods setup about summoning hearts. The only things in there are the anti-anti-antidote, tiny house, funky dried mushroom, and leash of linguini. I don't know where summoning hearts should be happening, but it's certainly not in the moods you have.
  18. S

    Mana Burning

    Yep, there we go. It's only set to cast leash of linguini when the buff runs out. You might want to edit your mood to have an unconditional trigger, or "when I run low" rather than when you lose the effect. Hope that helps.
  19. S

    Mana Burning

    Please copy/paste the following lines from your user preferences file: currentMood manaBurningThreshold Then copy/paste your moods file. That should give us a better idea of what kolmafia thinks is going on.
  20. S

    Mana Burning

    My moods correctly burned mana earlier today (I'm using 12.5, not a daily build). Could you be more specific about your setup?
Back
Top