Page 186 of 186 FirstFirst ... 86 136 176 184 185 186
Results 1,851 to 1,857 of 1857

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

  1. #1851

    Default

    Adding a drops_today field means adding a drops_limit field. That could be something silly like MAX_INT, I suppose. Or maybe the default value of 0 wouldn't mess with scripts that use it.

  2. #1852
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,268

    Default

    Does mafia track daily jelly drops?
    Originally Posted by zarqon View Post
    _spaceJellyfishDrops

    However, I was under the impression from the Wiki that each element was somewhat independent as far as drop chance goes, which would reduce or eliminate that opportunity cost. Has that assertion been found to be inaccurate?
    Quite wrong. The element has no bearing on the chance of success. All that matters is how many total jellies have been successfully sucked today.

  3. #1853
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,481

    Default

    By the way, the last update to SS added throwing gourd items at minions once a day in villain lairs!

    Also, as previously discussed in the Batman RE thread, we have moved casting Approiviseurement la Tortuguloisante to SS, so it's no longer an autoresponse in BatBrain. This solves a frustration Batman RE users were having, in addition to meaning that the Appreuviseunting will be preceded with stunners where helpful. Yay!

    Enjoy!
    Sig by JakAtk
    My scripts: Prefref Plus | One-Click Wossname | Om******t (??) | Psychose-a-Matic | RandBot
    Combat suite: Best Between Battle | Mer********d (?!) | 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!

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

    Default

    r36 Update

    Though I haven't yet added the planned selective attraction logic, a few necessary things have been added to the script (for LAR in particular) so it's time for an update! First, the important fixes:

    • ALWAYS EXTERMINATE SPANT
    • Banishing and attracting are not available in LAR, so skip those actions when on that path.


    A somewhat significant change to the default behavior also crept in with this update: SS now assumes that certain monsters you may have in BatMan_yellow are in there for ascension-specific reasons. So far, if you've had "Knob goblin harem girl" in your BatMan_yellow setting, SS would always try to yellow ray a harem girl whenever possible. This caused me a bit of frustration during runs as sometimes if I was blasting through a zone SS would squander a yellow ray when I already had the monster's drops. I found myself removing most monsters from the setting to avoid squandered yellow rays -- which means the setting was mostly useless and therefore a design change was necessary. So, there is now some code there to protect you. The following fairly common yellow ray targets will now not be yellow rayed if the following conditions are met:

    • beanbat: You already have enough sonars.
    • Knob Goblin harem girl, 7-foot dwarf foreman, frat warrior drill sergeant, war pledge, war frat 151st infantryman, orcish frat boy spy, war hippy drill sergeant, war hippy (space) cadet, war hippy spy: You already have the relevant outfit.
    • cowskeleton: You already have a rusted-out shootin' iron.
    • banshee librarian: You already have or no longer need a killing jar.
    • burly sidekick, quiet healer: You already have or no longer need the wig or amulet for Castle stuff.

    Of course, none of them will ever be yellow rayed if they are not specified in the setting to begin with. Hopefully this helpful logic makes the BatMan_yellow setting useful again. I'm considering getting hats made that say MBUA.

    Enjoy!
    Sig by JakAtk
    My scripts: Prefref Plus | One-Click Wossname | Om******t (??) | Psychose-a-Matic | RandBot
    Combat suite: Best Between Battle | Mer********d (?!) | 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!

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

    Default

    r37: Olfaction Overhaul and new Duplicate control setting!

    As previously discussed in both the New-You script thread the BatBrain thread, by this point in KoL's development there are now quite a few possible reasons for SS attracting a monster:

    • You specified it in mafia's autoOlfact property.
    • You specified it in BatBrain's BatMan_attract setting.
    • It's your New-You quest monster (as tracked using the code posted in the BatBrain thread since there is no native tracking).
    • It's your bounty monster.
    • You specified "goals" in autoOlfact and the monster drops goals.

    This means that for a given location it's possible to have up to four valid attraction targets, in which case it would actually make everything take longer to attract only one of the targets.

    So, SmartStasis will now skip attraction when there are multiple targets of any of the last four types in your current zone. If you still want a monster to be attracted, you can override this by setting a specific monster in autoOlfact. Monsters specified there will be attracted regardless of the number of targets SS detects in that location.

    To assist with correct target detection, just as with yellow raying above I've added filtering logic for common BatMan_attract targets. Some monsters are only targeted due to quest-related reasons, after which targeting them is unnecessary and even undesirable. So, now if any of the following monsters are specified in your BatMan_attract setting, they will only be considered valid targets if:

    • anesthesiologist bugbear: You haven't cleared the Medbay.
    • angry mushroom guy: You still need fizzing spore pods to unlock the Nemesis area.
    • blooper: You still need a digital key.
    • cabinet of Dr. Limpieza, possessed wine rack: You are in a path that can take the wine bomb shortcut and need the relevant unstable fulminate drop.
    • creepy eye-stalk tentacle monster: You still need the bugbear communicator badge.
    • dairy goat: You still need at least 2 more tasty quest cheese.
    • dirty old lihc: You still need more lihcs to clear the Evil.
    • pygmy shaman: You haven't defeated the Apartment's spectre.
    • unemployed knob goblin: You can still get 2 or more beer lenses.
    • violent fungus: You are working on the Primordial Fear quest.
    • writing desk: You need at least another desk after this one to get the key.

    This logic is based on monsters I've used or considered as attraction targets. It could be expanded or reduced as desired for more qualifying monsters.

    Duplicate!

    I found myself having settled into a routine for my Duplicate uses, to the point where automation would be helpful. So viola! SS has a new setting for handling Duplicate: BatMan_duplicate. Monsters specified here (default: lobsterfrogman and gaudy pirate) will be Duplicated when encountered if you have Duplicate available. As with yellow rays and attraction, I've added filtering logic for both gaudy pirates and lobsterfrogmen, so that Duplication will only be attempted if you still need the Talisman or (more than one) gunpowder for the sidequest, respectively. Removing the monsters from BatMan_duplicate will, of course, always skip Duplication for them.

    Enjoy this marked improvement in functionality! Also, sorry violists but C clef is terrible.
    Sig by JakAtk
    My scripts: Prefref Plus | One-Click Wossname | Om******t (??) | Psychose-a-Matic | RandBot
    Combat suite: Best Between Battle | Mer********d (?!) | 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. #1856
    Senior Member
    Join Date
    Apr 2009
    Posts
    1,720

    Default

    [*]dirty old lihc: You still need more lihcs to clear the Evil.
    Originally Posted by zarqon View Post
    Is this the same as "current evilness is 30 or more"?
    (because if its 29, then this lich will take it to 26, and the next monster to 25 even if it isn't a dirty lihc)

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

    Default

    Looks like I used a number one lower:

    PHP Code:
          case $monster[dirty old lihc]: if (qprop("questL07Cyrptic") || get_property("cyrptNicheEvilness").to_int() < 29 to_int(have_equipped($item[gravy boat]))) return false
    I'll make that a <=, and double the gravy while I'm at it.
    Sig by JakAtk
    My scripts: Prefref Plus | One-Click Wossname | Om******t (??) | Psychose-a-Matic | RandBot
    Combat suite: Best Between Battle | Mer********d (?!) | 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, 04:34 PM
  2. Replies: 11
    Last Post: 01-25-2015, 11:27 AM
  3. Run a Complex Script for 'X' Turns - OCW, etc.
    By Raven434 in forum Community Support
    Replies: 5
    Last Post: 01-07-2010, 09:06 PM
  4. Help with Simple Script
    By skateboard34 in forum Community Support
    Replies: 6
    Last Post: 12-25-2008, 12: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, 07: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
  •