Page 185 of 185 FirstFirst ... 85 135 175 183 184 185
Results 1,841 to 1,844 of 1844

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

  1. #1841
    Junior Member
    Join Date
    Feb 2009
    Posts
    26

    Default

    Further testing, using 17496: on a character without pocket crumbs (not wearing Pantsgiving), using the CSS I posted above, a combat looks like this:
    [1187171] Gingerbread Sewers
    Encounter: gingerbread rat
    Round 0: Parco Molo wins initiative!
    Round 1: Parco Molo casts POCKET CRUMBS!
    KoLmafia thinks it is round 2 but KoL thinks it is round 1
    Round 1: Parco Molo casts SUMMON LOVE MOSQUITO!
    Round 2: gingerbread rat takes 75 damage.
    Round 2: You gain 75 hit points
    Round 2: Blopblip shakes loose a considerable quantity of spice. You conjure up a canister and collect it.
    You acquire an item: spices
    Round 2: Parco Molo casts EXTRACT!
    You acquire an item: Source essence (2)
    Round 3: Parco Molo executes a macro!
    Round 3: Parco Molo casts FIRE ORANGE BOTTLE-ROCKET!
    Round 4: Dog pelts it with a snowball. Where it came from, we're not sure, but it takes 22 damage.
    Round 4: gingerbread rat takes 22 damage.
    Round 4: Parco Molo attacks!
    Round 5: gingerbread rat takes 9669 damage.
    Round 5: Parco Molo wins the fight!
    I removed "consult SmartStasis.ash" from the default CSS, then combat looked like this:
    [1187173] Gingerbread Sewers
    Encounter: gingerbread alligator
    Round 0: Parco Molo wins initiative!
    Round 1: Parco Molo executes a macro!
    Round 1: Parco Molo casts SUMMON LOVE MOSQUITO!
    Round 2: gingerbread alligator takes 38 damage.
    Round 2: You gain 38 hit points
    Round 2: Blopblip shakes loose a considerable quantity of spice. You conjure up a canister and collect it.
    You acquire an item: spices
    Round 2: Dog drops a bunch of ice cubes down your opponent's shirt, dealing 14 damage.
    Round 2: gingerbread alligator takes 14 damage.
    Round 2: Parco Molo casts EXTRACT!
    You acquire an item: Source essence
    Round 3: You lose 139 hit points
    Round 3: Parco Molo attacks!
    Round 4: gingerbread alligator takes 4837 damage.
    Round 4: Parco Molo wins the fight!
    The same things happened if I removed the "if hasskill/endif" around "skill pocket crumbs": with consult SmartStasis.ash KoLmafia tries to use the skill, without that line it doesn't. I don't know if the fault here is with SmartStasis or with KoLmafia itself, as I can't understand how a command later in the CSS would affect how an earlier one is treated.

  2. #1842
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    10,532

    Default

    That sounds like this bug report which says that if you have a combat macros preceding a consult script, it screws up the combat macro.

    That happens to be next on my list of bugs to look at.
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  3. #1843
    Junior Member
    Join Date
    Feb 2009
    Posts
    26

    Default

    That's definitely the same behavior I've seen. Tried 17504 and no problems, so 17500 seems to have fixed it for me.

  4. #1844
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,354

    Default

    Tardigrade, a simple fix for you in the meantime -- and one which would reduce the server hits in some of your combats -- would be to add lines to SS to perform those skills.

    Change this bit at the bottom:

    Code:
      // stasis loop
       stasis();
    to this:

    Code:
       enqueue($skill[pocket crumbs]);
       enqueue($skill[summon love mosquito]);
       enqueue($skill[extract]);
      // stasis loop
       stasis();
    This will simply fail to cast the skills if you lack them. Plus, they will will be added to whatever custom actions SS performs and submitted in a single macro (reducing server hits).

    I must admit to some confusion as to why you're explicitly specifying Extract. Is SS's handling of Extract not casting it for you?
    Sig by JakAtk
    My scripts: One-Click Wossname | Om******* (??) | Psychose-a-Matic | RandBot
    Combat suite: Best Between Battle | Me******** (?!) | SmartStasis | BatMan | BatMan RE
    For script authors: ASH Wiki | ZLib | BatBrain | CLI Links | CanAdv | Script Registry | Map Manager | About Bats
    If you appreciate my work, help me become BAT KING OF THE WORLD! Thanks to all donators!

Similar Threads

  1. Replies: 3
    Last Post: 09-15-2015, 05:34 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
  •