Page 177 of 188 FirstFirst ... 77 127 167 175 176 177 178 179 187 ... LastLast
Results 1,761 to 1,770 of 1880

Thread: SmartStasis -- a complex script for a simple CCS

  1. #1761
    Senior Member Crowther's Avatar
    Join Date
    Nov 2006
    Posts
    1,413

    Default

    Is it possible for SmartStasis to detect that there is no longer a reason to extend a combat, once my Bjornified familiar has dropped his item, if that was the reason for stasis-ing? It doesn't seem to do this today.
    Originally Posted by chown View Post
    It's has been working correctly for me. I'm not sure if it was today or yesterday, but I saw a mask drop and then a quick kill.

  2. #1762

    Default

    Huh. Yeah. I just tried it on a different character and it worked fine. I may have a chance to look at it a bit more some time today.

  3. #1763
    Senior Member Crowther's Avatar
    Join Date
    Nov 2006
    Posts
    1,413

    Default

    Huh. Yeah. I just tried it on a different character and it worked fine. I may have a chance to look at it a bit more some time today.
    Originally Posted by chown View Post
    If mafia somehow didn't see the item drop, then SmartStasis will try forever to get one. If you do manage to recreate this, check _grimstoneMaskDropsCrown or _grimFairyTaleDropsCrown. Those are the variable mafia uses to track this and which BatBrain checks.

  4. #1764

    Default

    Uh. The familiar in question is the Gluttonous Green Ghost. I don't think Mafia sets either of those variables when he drops a burrito. Or, am I just confused?

  5. #1765

    Default

    I tried a couple adventures with a BRICKO chick in the Bjorn, and that appears to work fine. Here's a sample fight with the Ghost:

    Code:
    Visit to Dungeon: Video Game Level 1 in progress...
    
    [663413] Video Game Level 1
    Encounter: bulbous gopher fodder
    Strategy: G:\kol\kolmafia\ccs\fight_optimizer.ccs [default]
    Round 0: awk wins initiative!
    WHAM: Running SmartStasis
    Round 1: awk executes a macro!
    Round 1: awk casts CANDYBLAST!
    Round 2: Video Game Minion (weak) takes 38 damage.
    You acquire an item: Daffy Taffy
    Round 2: Video Game Minion (weak) drops 4 attack power.
    Round 2: Video Game Minion (weak) drops 2 defense.
    Round 2: awk executes a macro!
    Round 2: awk casts CANDYBLAST!
    Round 3: Video Game Minion (weak) takes 38 damage.
    Round 3: Gronald takes a burrito out of his Buddy Bjorn and hands it to you. You've never been one to refuse a free burrito, even when it was probably in your best interests.
    You acquire an item: bean burrito
    Round 3: awk executes a macro!
    Round 3: awk casts CANDYBLAST!
    Round 4: Video Game Minion (weak) takes 38 damage.
    Round 4: Video Game Minion (weak) drops 4 attack power.
    Round 4: Video Game Minion (weak) drops 3 defense.
    Round 4: awk executes a macro!
    Round 4: awk casts CANDYBLAST!
    Round 5: Video Game Minion (weak) takes 38 damage.
    Round 5: Video Game Minion (weak) drops 4 attack power.
    Round 5: Video Game Minion (weak) drops 2 defense.
    Round 5: awk executes a macro!
    Round 5: awk casts CANDYBLAST!
    Round 6: Video Game Minion (weak) takes 38 damage.
    Round 6: Video Game Minion (weak) drops 3 attack power.
    Round 6: Video Game Minion (weak) drops 3 defense.
    Round 6: awk executes a macro!
    Round 6: awk casts CANDYBLAST!
    Round 7: Video Game Minion (weak) takes 75 damage.
    Round 7: awk executes a macro!
    Round 7: awk casts CANDYBLAST!
    Round 8: Video Game Minion (weak) takes 38 damage.
    Round 8: awk executes a macro!
    Round 8: awk casts CANDYBLAST!
    Round 9: Video Game Minion (weak) takes 38 damage.
    Round 9: Video Game Minion (weak) drops 2 attack power.
    Round 9: Video Game Minion (weak) drops 3 defense.
    Round 9: awk executes a macro!
    Round 9: awk casts CANDYBLAST!
    Round 10: Video Game Minion (weak) takes 38 damage.
    Round 10: awk executes a macro!
    Round 10: awk casts CANDYBLAST!
    Round 11: Video Game Minion (weak) takes 38 damage.
    Round 11: Video Game Minion (weak) drops 4 attack power.
    Round 11: Video Game Minion (weak) drops 3 defense.
    Round 11: awk executes a macro!
    Round 11: awk casts CANDYBLAST!
    Round 12: Video Game Minion (weak) takes 38 damage.
    Round 12: Video Game Minion (weak) drops 4 attack power.
    Round 12: Video Game Minion (weak) drops 4 defense.
    Round 12: awk executes a macro!
    Round 12: awk casts CANDYBLAST!
    Round 13: Video Game Minion (weak) takes 38 damage.
    Round 13: Video Game Minion (weak) drops 4 attack power.
    Round 13: Video Game Minion (weak) drops 4 defense.
    Round 13: awk executes a macro!
    Round 13: awk casts CANDYBLAST!
    Round 14: Video Game Minion (weak) takes 38 damage.
    Round 14: awk executes a macro!
    Round 14: awk casts CANDYBLAST!
    Round 15: Video Game Minion (weak) takes 38 damage.
    Round 15: Video Game Minion (weak) drops 4 attack power.
    Round 15: Video Game Minion (weak) drops 4 defense.
    Round 15: awk executes a macro!
    Round 15: awk casts CANDYBLAST!
    Round 16: Video Game Minion (weak) takes 38 damage.
    Round 16: awk executes a macro!
    Round 16: awk casts CANDYBLAST!
    Round 17: Video Game Minion (weak) takes 38 damage.
    Round 17: awk executes a macro!
    Round 17: awk casts CANDYBLAST!
    Round 18: Video Game Minion (weak) takes 38 damage.
    Round 18: awk executes a macro!
    Round 18: awk casts CANDYBLAST!
    Round 19: Video Game Minion (weak) takes 38 damage.
    Round 19: Video Game Minion (weak) drops 4 attack power.
    Round 19: Video Game Minion (weak) drops 2 defense.
    Round 19: awk executes a macro!
    Round 19: awk casts CANDYBLAST!
    Round 20: Video Game Minion (weak) takes 38 damage.
    Round 20: awk executes a macro!
    Round 20: awk casts CANDYBLAST!
    Round 21: Video Game Minion (weak) takes 38 damage.
    Round 21: awk executes a macro!
    Round 21: awk casts CANDYBLAST!
    Round 22: Video Game Minion (weak) takes 38 damage.
    Round 22: Video Game Minion (weak) drops 2 attack power.
    Round 22: Video Game Minion (weak) drops 2 defense.
    Round 22: awk executes a macro!
    Round 22: awk casts CANDYBLAST!
    Round 23: Video Game Minion (weak) takes 38 damage.
    Round 23: awk executes a macro!
    Round 23: awk casts CANDYBLAST!
    Round 24: Video Game Minion (weak) takes 38 damage.
    Round 24: Video Game Minion (weak) drops 2 attack power.
    Round 24: Video Game Minion (weak) drops 2 defense.
    Round 24: awk executes a macro!
    Round 24: awk casts CANDYBLAST!
    Round 25: Video Game Minion (weak) takes 38 damage.
    Round 25: Video Game Minion (weak) drops 2 attack power.
    Round 25: Video Game Minion (weak) drops 2 defense.
    Round 25: Video Game Minion (weak) takes 7 damage.
    Round 25: You lose 766 hit points
    WHAM: Starting evaluation and performing of attack
    WHAM: We are going to 2-shot with Stuffed Mortar Shell and Stuffed Mortar Shell.
    Round 25: awk executes a macro!
    Round 25: awk casts STUFFED MORTAR SHELL!
    Round 26: Video Game Minion (weak) drops 4 attack power.
    Round 26: Video Game Minion (weak) drops 2 defense.
    WHAM: Starting evaluation and performing of attack
    WHAM: We are going to 2-shot with Weapon of the Pastalord and Weapon of the Pastalord.
    Round 26: awk executes a macro!
    Round 26: awk casts WEAPON OF THE PASTALORD!
    Round 27: Video Game Minion (weak) takes 5228 damage.
    Round 27: Video Game Minion (weak) takes 5245 damage.
    Round 27: awk wins the fight!
    After Battle: You gain 8 Mana Points
    After Battle: Gronald surveys the scene from your back and sighs.
    After Battle: Tronald says, "the uncontrollable urge to dance is evidence of repressed sexual longing," and does a little soft-shoe.
    After Battle: Flumflem pirouettes in the air, searching for scattered items. Maybe he was a pierougi in a past life.
    After Battle: Tronald does a crazy dance around the Maypole.
    You acquire an item: slice of pizza
    You acquire an item: vial of holy water
    After Battle: You gain 617 Strengthliness
    After Battle: You gain 1625 Wizardliness
    After Battle: You gain 610 Sarcasm
    
    In mallmode, best MP restorative is: magical mystery juice @ 14659.154929577466 meat total.
    In mallmode, best HP restorative is: scroll of drastic healing @ 358.6666666666667 meat total.
    Requests complete.
    Note that Candyblast dropped its candy, as well. (Side-issue: why not switch to a reusable item?) I have an Angry Jung Man for my familiar. I don't think there's a reason to extend combat past round 3, and if I just swap the BRICKO chick for the Ghost, it works as I would like it to.

  6. #1766
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,743

    Default

    You REALLY need a higher verbosity if you want us to have even the slightest guess as to why you're getting the behaviour you do...

  7. #1767
    Senior Member Crowther's Avatar
    Join Date
    Nov 2006
    Posts
    1,413

    Default

    Note that Candyblast dropped its candy, as well. (Side-issue: why not switch to a reusable item?) I have an Angry Jung Man for my familiar. I don't think there's a reason to extend combat past round 3, and if I just swap the BRICKO chick for the Ghost, it works as I would like it to.
    Originally Posted by chown View Post
    Take a look at batfactors.txt. There's a second where every line starts with "crown". Notice that some familiars are marked with "r3". That means they don't do their special action after round three. Notice that BRICJO chick (and ghost) don't say "r3".
    Code:
    crown   123     BRICKO chick    0       0       item BRICKO brick
    Candyblast can be a cheap spell even without the candy drops. As Theraze points out, it takes a lot of verbosity to figure out why a spell is preferred.

  8. #1768

    Default

    It doesn't seem particularly relevant that other familiars don't do anything after round 3 in the crown, since the chick and ghost are apparently the same in that respect. Or, are you responding to my mention of "round 3"? I was just referring to the fact that the burrito had dropped in round 3 of that fight.

    Also, Candyblast is indeed cheap, but since it costs 8 MP, I don't see how it could ever be cheaper than using a dictionary, except when SmartStasis thinks it might get candy. I don't know how to tell if that's the issue, but if so then it seems like it may be similar to the burrito issue.

    Here is an excerpt from some fights with "zlib verbosity = 9". Let me know if there's something more that I can provide. Turn [663689] is a battle with the Ghost in the Bjorn. The burrito dropped in round 4. The previous turn, [663688], shows a fight with the chick in the Bjorn. And, [663690] is just me manually showing one reasonable strategy for defeating my foes. Namely, reusable combat items until the burrito drops, and then attack with weapon. (Note also that in [663688], WHAM decided to use a shard of double-ice. Which is yet another odd thing. The way I did it was clearly better.):

    excerpt.txt

  9. #1769
    Senior Member Crowther's Avatar
    Join Date
    Nov 2006
    Posts
    1,413

    Default

    It doesn't seem particularly relevant that other familiars don't do anything after round 3 in the crown, since the chick and ghost are apparently the same in that respect. Or, are you responding to my mention of "round 3"? I was just referring to the fact that the burrito had dropped in round 3 of that fight.
    Originally Posted by chown View Post
    I didn't see that the item in question actually dropped in round 3 and took it to mean it would never drop after round 3. Stupid coincidence.

  10. #1770
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,594

    Post

    r25 Update

    Happy New Year everyone! My name is SmartStasis and these are my New Year's resolutions.

    This year, I resolve to correctly use any action with the "attract" or "copy" keywords to attract and copy monsters; not only Olfaction, spooky putty, and Rain-doh black boxes, like I used to do back in 2015!

    This year, I resolve to lend a helping hand to Avatars of Sneaky Pete. I resolve to keep them full of Love, but still help them pickpocket for goals. Also, if they've already Thrown a Party, and they have Incite Riot, AND they haven't Incited said Riot yet, then instead of Love I resolve to bring them to maximum Hate as quickly as possible so they can have a most efficacious Riot. I will accomplish this by picking sharks and jumping pockets! Er... you know what I mean.

    I resolve to treat pirate insult books as a custom category rather than specific items!

    I resolve to help those collecting blood for our dear walrus friend Waldorf, by throwing tin snips as I may.

    I resolve to point out in this thread that the recent BatBrain update may help some of the stasis issues reported by making me less picky about which items I look for when considering familiar drops. I want to help!

    I resolve to remember that our dear walrus friend's name is Walford, not Waldorf.

    Here's to a Smart 2016, everyone! I look forward to fulfilling these resolutions alongside each of you that consult me.
    Sig by JakAtk
    My scripts: Prefref Plus | Skillref Plus | One-Click Wossna | Om*****st (??) | Psychose-a-Matic | RandBot
    Combat suite: Best Between Battle | Mercenary Mood | SmartStasis | BatMan | BatMan RE
    For script authors: ASH Wiki | ZLib | BatBrain | CLI Links | Drag-n-Drop Inventories | CanAdv | Script Registry | Map Manager
    If you appreciate my work, help me become BAT KING OF THE WORLD! Thanks to all donators!

Similar Threads

  1. Replies: 4
    Last Post: 09-18-2018, 11:16 PM
  2. Replies: 11
    Last Post: 01-25-2015, 12:27 PM
  3. Run a Complex Script for 'X' Turns - OCW, etc.
    By Raven434 in forum Community Support
    Replies: 5
    Last Post: 01-07-2010, 10:06 PM
  4. Help with Simple Script
    By skateboard34 in forum Community Support
    Replies: 6
    Last Post: 12-25-2008, 01:40 AM
  5. Simple (but trying to make it complex) breakfast script
    By Duffkiligan in forum Scripting Discussion
    Replies: 7
    Last Post: 02-08-2008, 08:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •