Random attribute (OCRS) handling for CCS

Arashmin

New member
I'm having some success with 'while match', yet still encounter some issues in doing what I'd like. In particular:

* If the monster changes mid-combat (Macrometeorite), is there any way to have the script re-check attributes? EDIT: I *think* the reason it presently doesn't re-check is due to KoLMafia sending everything as a Macro. Even if it's slower, if there a way to turn off automatic macro'ing?

* My ccs seemed to have issues checking 'while match' down the line, i.e. I have handling for 'while match foul-mouthed' at line 62 in CCS to Saucegeyser down, had enough MP, but it skipped that and instead tried to do my stasis routine for non-passive damage enemies, which got me killed with stench damage. I didn't notice deaths with any of the other elements, nor with untouchable enemies which have their handling on earlier line. The check for foul-mouthed is the last 'while match' check on this CCS. Or could it be the hyphen somehow? Should I perhaps just check for 'mouthed'?

* EDIT: Might be able to reduce it in some lines if there's a delicate way to spam something, i.e. to instead of having 10 lines of 'skill belch the rainbow' for untouchable enemies, have one line with a repeat clause.

If there's a consult script for it, I'd like to know, been trying to search one down but to no avail.

Thanks all!

EDIT 2: Still plunking away at this; While I haven't had a chance to test, I did whip up the following to try tonight and see how it goes. It may work a bit better having the sub calls, and now knowing quotes can send a straight macro.

Code:
[ default ]
special action
try to steal an item
call ocrs_handling
skill sing along
item Miniborg hiveminder,Miniborg hiveminder
item Miniborg hiveminder,Miniborg hiveminder
item Miniborg hiveminder,Miniborg hiveminder
item Miniborg hiveminder,Miniborg hiveminder
item Miniborg hiveminder,Rain-Doh indigo cup
item Miniborg hiveminder,Miniborg hiveminder
item Miniborg hiveminder,Miniborg hiveminder
item Miniborg hiveminder,Miniborg hiveminder
"skill saucegeyser; repeat"

[ garbage tourist ]
special action
try to steal an item
call ocrs_handling
skill sing along
skill gallapagosian mating call
skill transcendent olfaction
item Miniborg hiveminder,Miniborg hiveminder
item Miniborg hiveminder,Miniborg hiveminder
item Miniborg hiveminder,Miniborg hiveminder
item Miniborg hiveminder,Rain-Doh indigo cup
item Miniborg hiveminder,Miniborg hiveminder
item Miniborg hiveminder,Miniborg hiveminder
item Miniborg hiveminder,Miniborg hiveminder
"skill saucegeyser; repeat"

[ global prefix ]
scrollwhendone
"abort pastround 28"
sub ocrs_handling
    while match broke
        while match solid gold || match optimal
            call brokestasis
        endwhile
        skill give your opponent the stinkeye
        skill snokebomb
        skill throw latte on opponent
    endwhile
    while match untouchable
        call untouch
    endwhile
    while match electrified || match filthy || match foul-mouthed || match haunted || match hot || match wet
        item Miniborg hiveminder,Miniborg hiveminder
        item Miniborg hiveminder,Miniborg hiveminder
        item Miniborg hiveminder,Rain-Doh indigo cup
        item Miniborg hiveminder,Miniborg hiveminder
        item Miniborg hiveminder,Miniborg hiveminder
        "skill saucegeyser; repeat"
    endwhile
    while match ticking
        "skill saucegeyser; repeat"
    endwhile
endwhile
endsub
sub brokestasis
    skill sing along
    item Miniborg hiveminder,Miniborg hiveminder
    item Miniborg hiveminder,Miniborg hiveminder
    item Miniborg hiveminder,Miniborg hiveminder
    item Miniborg hiveminder,Miniborg hiveminder
    item Miniborg hiveminder,Rain-Doh indigo cup
    item Miniborg hiveminder,Miniborg hiveminder
    item Miniborg hiveminder,Miniborg hiveminder
    item Miniborg hiveminder,Miniborg hiveminder
    "skill saucegeyser; repeat"
endsub
sub untouch
    if hasskill shattering punch
        skill shattering punch
    endif
    if hascombatitem exploding cigar
        item exploding cigar
    endif
    if hascombatitem handsome devil
        item Handsome Devil
    endif
    "skill belch the rainbow; repeat"
endwhile
endsub

EDIT3: Now testing a macro version of this, to save pageloads/time:
Code:
sub hivemind
    skill sing along
    use Miniborg hiveminder, Miniborg hiveminder
    use Miniborg hiveminder, Miniborg hiveminder
    use Miniborg hiveminder, Miniborg hiveminder
    use Miniborg hiveminder, Rain-Doh indigo cup
    use Miniborg hiveminder, Miniborg hiveminder
    use Miniborg hiveminder, Miniborg hiveminder
    use Miniborg hiveminder, Miniborg hiveminder
endsub

sub hiveshort
    skill sing along
    use Miniborg hiveminder,Miniborg hiveminder
    use Miniborg hiveminder,Miniborg hiveminder
    use Miniborg hiveminder,Rain-Doh indigo cup
    use Miniborg hiveminder,Miniborg hiveminder
    use Miniborg hiveminder,Miniborg hiveminder
endsub

sub untouch
    if hasskill shattering punch
        skill shattering punch
    endif
    if hascombatitem exploding cigar
        use exploding cigar
    endif
    if hascombatitem handsome devil
        use Handsome Devil
    endif
    skill belch the rainbow
    repeat
endsub

sub getemout
    skill give your opponent the stinkeye
    skill snokebomb
    skill throw latte on opponent
endsub

scrollwhendone
abort pastround 28
while match broke
    while match solid gold || match optimal
        skill sing along
        call hivemind
        skill saucegeyser
        repeat
    endwhile
    while match untouchable
        call hivemind
        call untouch
    endwhile
    while match electrified || match filthy || match foul-mouthed || match haunted || match hot || match wet
        call getemout
        call hiveshort
        skill saucegeyser
        repeat
    endwhile
    while match ticking
        call getemout
        repeat
    endwhile
    call getemout
    call hivemind
    skill saucegeyser
    repeat
endwhile
while match untouchable
    call hivemind
    call untouch
endwhile
while match electrified || match filthy || match foul-mouthed || match haunted || match hot || match wet
    sub hiveshort
    skill saucegeyser
    repeat
endwhile
while match ticking
    "skill saucegeyser; repeat"
endwhile
while match garbage
    skill gallapagosian mating call
    skill transcendent olfaction
    call hivemind
    skill saucegeyser
    repeat
endwhile
call hivemind
skill saucegeyser
repeat
 
Last edited:
Top