Page 3 of 186 FirstFirst 1 2 3 4 5 13 53 103 ... LastLast
Results 21 to 30 of 1852

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

  1. #21
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,359

    Default

    1.3 Updates:

    Okay, I've kind of added ghosts and hobos. I could not check for absense of action, because in certain rounds the familiar may not act, no matter how full (for example, when casting Saucy Salve for the first time).

    So currently SmartStasis simply checks at the beginning to see if your ghost/hobo is completely out of sustenance. This is less than ideal, but it's the best I could manage at the moment. I tested this very briefly using my ghost. It is untested with hobos (anyone want to give me a spirit hobo so I can test?).

    I have one further question before implementing a "real" solution: the ghost's "stomach growls loudly" message and the hobo's "Oh, Helvetica" message appear to happen every time the familiar completely runs out of starfish capability. Is that a correct assumption? If so, it would be easy to add that to the act() function and detect when the ghost/hobo runs out.

    @Bale: "chogochochogo" is Korean and "nantoko kantoko" is Japanese.
    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!

  2. #22
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,061

    Default

    I have one further question before implementing a "real" solution: the ghost's "stomach growls loudly" message and the hobo's "Oh, Helvetica" message appear to happen every time the familiar completely runs out of starfish capability. Is that a correct assumption? If so, it would be easy to add that to the act() function and detect when the ghost/hobo runs out.
    Originally Posted by zarqon View Post
    Oh yeah. That's a good point although I often miss the moment the message happens since it will only occur once. You're just a little wrong. The hobo has two messages that trigger when she runs out of booze. The other is the "millennium hands and shrimp" message. The ghost has a bunch of messages when he runs out of food. Check the wiki for the list.

    If they've run out of stock in a previous round, there is no message at all.
    If people like my scripts, please send me stuffed Hodgmen.
    Universal Recovery, OCD Inventory Control, CounterChecker, newLife, ChIT.


  3. #23
    Senior Member
    Join Date
    Nov 2006
    Posts
    326

    Default

    boohya! Problem fixed!

    Code:
    [1132] Next to that Barrel with Something Burning in it
    Encounter: batwinged gremlin
    Strategy: C:\Documents and Settings\E073933\My Documents\KM\ccs\solomonster.ccs [default]
    Round 0: solomonster wins initiative!
    true
    Round 1: solomonster casts ENTANGLING NOODLES!
    Round 1: Senor Senor ties its shoelaces together. It trips and takes 27 damage as it lands on its face.
    Round 1: batwinged gremlin takes 27 damage.
    Now running round 2
    true
    Round 2: solomonster uses the turtle totem!
    Round 2: batwinged gremlin takes 1 damage.
    Now running round 3
    true
    Round 3: solomonster uses the turtle totem!
    Round 3: batwinged gremlin takes 1 damage.
    You lose 3 hit points
    Now running round 4
    true
    This gremlin does not have a molybdenum item!
    Round 4: solomonster casts SHIELDBUTT!
    Round 4: Senor Senor holds out the plastic pumpkin bucket, hoping for extra goodies.
    Round 4: Senor Senor bends its brim into an approximation of a smile.
    Round 4: batwinged gremlin takes 148 damage.
    You gain 59 Meat
    You gain 27 Strengthliness
    You gain 11 Magicalness
    You gain 18 Sarcasm
    
    Requests complete.

  4. #24
    Senior Member Raven434's Avatar
    Join Date
    May 2007
    Location
    Virginia
    Posts
    460

    Default

    I have looked at the code and don't really see an easy way to set a MIN and MAX % for my MP stasising.

    Meaning I am ok with it bleeding down to say 30% before I would like to stasis it back up to say 90%.

    Is there an easy way to do that or am I just being blind tonight?

    Thanks!

  5. #25
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,359

    Default

    At the top of the stasis loop you could put something like

    Code:
    if (to_float(my_mp()) / to_float(my_maxmp()) > 0.3)
       inmp = 0;
    I'm pretty sure that would work like you want. It would not enter the stasis loop for +mp unless your MP was 30% or less of your max MP. The check for a maximum would have to be done somewhere else within the stasis loop, again setting inmp to 0 if you had reached your desired MP percent.
    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!

  6. #26
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,359

    Default

    News Flash

    Updates coming shortly to the FTF/SmartStasis suite! To be included:

    • Properly intelligent support for ghosts and hobos.
    • Snappy integration with your poison-removal combat setting.


    This is due to two unequally amazing facts:

    1) I have finally popped out of HC and will be able to test, using
    2) the spirit hobo that someone sent me.

    Holy crap! I was more than half-joking about that.

    This mysterious someone, whose name may or may not rhyme with "Dorm's Row Shorty's Crew," shall remain unnamed. But know that this anonymous donor, whose parcel arrived despite inclement weather as though carried by a mighty airborne messenger, though he be shrouded in mystery (akin to the very answer of Life, the Universe, and Everything), has my undying gratitude.
    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!

  7. #27
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,359

    Default

    Looks like I'm triple-posting in my own thread. Someone please flame me.

    1.5 Updates!

    Recent updates to FTF and SmartStasis:

    • They now operate transparently with your poison-removal combat setting. If you have it set to remove poison at Really Quite Poisoned or worse, that's what SmartStasis will do.
    • Thanks to the mysteriously anonymous unnamed donor, I now have SS working perfectly with hobos. It's lovely.
    • Someone suggested that FTF always cast Spring Raindrop Attack if you have a haiku katana equipped. I thought it too limiting to include in FTF (it would prevent you from using any of the other katana-granted combat skills), but in the case of stasis, it's a perfect restore option. SmartStasis will now cast Spring Raindrop Attack as part of its stasis restore loop.


    Evil, evil GGG's

    The dratted things have completely useless messages. There is no way to detect when a ghost runs out of MP-restoring ability, since the "hungry" messages show even when the ghost has restores remaining. The only way to be sure that a ghost has run out is if it has no message at all, but even that might be inaccurate due to Salve or some later-introduced something-or-other. The only thing that will work is a huge mash of contains_text() comparisons against every possible ghost message (checking for absense) and making sure it's not a Salve round, which is very ungainly and easily breakable by the smallest server-side change. Needless to say, that is not in this update. This version will stasis using ghosts regardless of their restore ability.
    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!

  8. #28
    Developer
    Join Date
    Apr 2006
    Posts
    882

    Default

    You could also have it cast consume burrowgrub 3 times a day.

  9. #29
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,061

    Default

    Looks like I'm triple-posting in my own thread. Someone please flame me.
    Originally Posted by zarqon View Post
    You're a bat-loving bastard son of a batty burrowgrub! Anyone who'd triple-post in his own thread probably plays with bits of bats in the belfry. You're the absolute lowest form of life, even lower than bat blade breeders, bedders of bat hat begeters and stuffed stab bat stuffers.


    Okay, I'm not great at flaming, but I at least I tried!
    If people like my scripts, please send me stuffed Hodgmen.
    Universal Recovery, OCD Inventory Control, CounterChecker, newLife, ChIT.


  10. #30
    Minion asturia's Avatar
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    199

    Default

    error message in this version:
    Unknown variable 'famspent' (SmartStasis.ash, line 93)

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
  •