Results 1 to 5 of 5

Thread: Help with CSS: Conditon for below % HP?

  1. #1
    Junior Member
    Join Date
    Apr 2011
    Posts
    14

    Default Help with CSS: Conditon for below % HP?

    I'm wondering, is there something to put in CSS so that it checks for below a HP% to do something?

    I want to use a healing item when below, say 20% HP, but I can't figure out how to tell mafia that.

    And any way to make it proc 1 time per combat only? (Planning on using indigo cup)

  2. #2
    Senior Member Winterbay's Avatar
    Join Date
    Feb 2010
    Posts
    5,033

    Default

    You can enter BALLS-macro text into the CCS if you want to so that could do what you want, or you could write a combat consult script to make more complex analysis of the situation possible.
    My scripts:
    Best sushi for Profit
    Winterbay's Helpful Automatic Monsterbasher (WHAM)

    Scripts maintained by me:
    Autobasement
    Smashlib

    A small programmer joke:
    Wife: Honey, please go to the market and buy 1 bottle of milk. If they have eggs, bring 6.
    The man came back with 6 bottles of milk.
    Wife: Why did you buy 6 bottles of milk.
    Man: Because they had eggs...

    The 6 Stages of Debugging: 1 )That can't happen. 2) That shouldn't happen. 3) Hmmm, weird. 4) Why does that happen? 5) Oh, I see. 6 )How did that ever work?

    All programs can be optimized, and all programs have bugs; therefore all programs can be optimized to one line that doesn’t work. /Bob Fitch, Blizzard

  3. #3
    Junior Member
    Join Date
    Apr 2011
    Posts
    14

    Default

    Thanks.

    I find that consult scripts makes combat lag tho (Mafia doing it 1 turn at a time). Is that normal?

  4. #4
    Senior Member Winterbay's Avatar
    Join Date
    Feb 2010
    Posts
    5,033

    Default

    Well, you can do it one turn per time or you cna do several by having the consult script submit a macro of all actions (including conditionals and whatnot) to KoL directly. WHAM is a somewhat complicated consult script that attempts to finish the fight off in a cheap and server friendly way, but may be slightly more than what you need. But you can always take a look at it for hints.
    My scripts:
    Best sushi for Profit
    Winterbay's Helpful Automatic Monsterbasher (WHAM)

    Scripts maintained by me:
    Autobasement
    Smashlib

    A small programmer joke:
    Wife: Honey, please go to the market and buy 1 bottle of milk. If they have eggs, bring 6.
    The man came back with 6 bottles of milk.
    Wife: Why did you buy 6 bottles of milk.
    Man: Because they had eggs...

    The 6 Stages of Debugging: 1 )That can't happen. 2) That shouldn't happen. 3) Hmmm, weird. 4) Why does that happen? 5) Oh, I see. 6 )How did that ever work?

    All programs can be optimized, and all programs have bugs; therefore all programs can be optimized to one line that doesn’t work. /Bob Fitch, Blizzard

  5. #5
    Developer
    Join Date
    Nov 2008
    Location
    Paris, France
    Posts
    4,510

    Default

    A lot of info about what you can do in a CCS can be found here:

    KoLmafia Wiki - Custom Combat Script
    Try the Nemesis Quest Script or the FamiliarFeeder interface.
    *shakes KoLMafia tech support magic 8-ball* Update mafia to the latest daily .JAR!
    NEW Dad ASCENSION STARTED 20120730
    ------------------------------
    Welcome to Parenthood, Noob

Similar Threads

  1. Bug - Cannot Reproduce sometimes conditon recoginition is really broken
    By anOtherGrendel in forum Bug Reports
    Replies: 3
    Last Post: 03-18-2010, 01:23 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
  •