Finish combat differently if affected with Majorly Poisoned?

Alex9009

New member
Hello,

I'm curious how I can script to funksling combat items to finish a fight only while I am majorly poisoned. I know how to script to remove the effect after the fight is over, but I can't beat the monster by attacking while poisoned. I have to use combat items. Thank you!!
 

digitrev

Member
If you're using custom combat scripts:
Code:
[ default ]
#this is just to make sure that this will repeat indefinitely
while pastround 0
    #check for effect
    if haseffect majorly poisoned
        #use whatever items you want to here
        item anti-anti-antidote, seal tooth
    endif
    if !haseffect majorly poisoned
        #kill the monster here
        attack with weapon
    endif
endwhile
 

Bale

Minion
If you're using custom combat scripts:

Here's an interesting option that will work even if you are not using a custom combat script. Mafia will add any combat macro in the [ global prefix ] section even if you aren't using the rest of the selected CCS.

Code:
[ global prefix ]
scrollwhendone
"abort pastround 25"
while haseffect majorly poisoned
    #use whatever items you want to here
    item love song of disturbing obsession, love song of icy revenge
endif

You can choose "attack" from the action drop-down and it will still switch to funkslinging combat options while you are majorly poisoned. I stuck that other stuff in, just because it is nice to have.
 
Last edited:
Top