Bug - Not A Bug Not generating expected macro from ccs

Rinn

Developer
There seem to be several thing left out of the macro generated from my ccs. No combos make sense because I'm not a disco bandit, but I'm unsure why the macro is only trying to cast summon hobo underling then skipping ask the hobo to tell you a joke. The hobo monkey match doesn't get added either.

Here's my ccs
Code:
[ default ]
special action
attack with weapon

[ giant's castle ]
section pilfer
special action
special action
special action
section hobo outfit
skill summon mayfly swarm
combo Rave Nirvana
combo Disco Nirvana
combo Rave Concentration
section hobo monkey
attack with weapon

[ global prefix ]
scrollwhendone

[ hobo monkey ]
while !pastround 20
    if match "climbs up and sits on your shoulder, and hands you some Meat. Huh, where did he find that?"
        goto monkeyDone
    endif
    item spices
endwhile
mark monkeyDone

[ hobo outfit ]
skill summon hobo underling
skill ask the hobo to tell you a joke

[ pilfer ]
try to steal an item
if !match "You deftly slip your fingers into your opponent's pocket and grab something."
    combo Rave Steal
endif
And here's the generated macro
Code:
Generated macro:
sub mafiaround
endsub#mafiaround
sub mafiamp
    if hascombatitem 3697
        call mafiaround; use 3697
        goto mafiampexit
    endif
    if hascombatitem 465
        call mafiaround; use 465
        goto mafiampexit
    endif
    if hascombatitem 1965
        call mafiaround; use 1965
        goto mafiampexit
    endif
    if hascombatitem 1788
        call mafiaround; use 1788
        goto mafiampexit
    endif
    if hascombatitem 466
        call mafiaround; use 466
        goto mafiampexit
    endif
    if hascombatitem 345
        call mafiaround; use 345
        goto mafiampexit
    endif
    call mafiaround; use 347
    mark mafiampexit
endsub#mafiamp
#mafiaheader
scrollwhendone
pickpocket
if hasskill 7052
    call mafiaround; skill 7052
endif
if hasskill 7024
    call mafiaround; skill 7024
endif
while !pastround 20
    mark mafiafinal
    call mafiaround; attack
    goto mafiafinal

Is there something I'm doing incorrectly or does my ccs look reasonable?
 

Spiny

Member
I have not tried to write a CCS in macro language yet. I do have a functional CCS that continues to work:

Code:
[ default ]
1: try to steal an item
2: skill summon hobo underling
3: skill ask the hobo for a drink
4: skill ask the hobo to tell you a joke
5: skill consume burrowgrub
8: attack with weapon

I just use it for 5 turns and then start up my KoL-based hobomonkey.balls macro (written by RoyalTonberry):

To get the hobomonkey macro going within mafia, I have to set it as my auto-attack within KoL and spend one manual turn to prime it up. After that mafia will adventure using it.

Ideally it would be nice to have it all functional in 1 CCS.

I would also say, be sure you have your hobomonkey as your familiar and your hodgeman's gear equipped. I have done silly things like not having these things and wondering why something didn't work before :)
 

slyz

Developer
All I can add is that this CCS works fine:
Code:
[ default ]
"pickpocket"
while !match "climbs up and sits"
    item turtle totem
endwhile
call endit

[ global prefix ]
"sub olf"
"  if !haseffect on the trail"
"    skill transcendent olfaction"
"  endif"
"endsub"
"sub endit"
"  attack"
"  repeat"
"endsub"

[ goth giant ]
"pickpocket"
if match "climbs up and sits"
    call olf
    call endit
endif
call olf
while !match "climbs up and sits"
    item turtle totem
endwhile
call endit
 

jasonharper

Developer
"section" commands are only meaningful at the end of a CCS section - they're more of a 'goto' than a 'call'.
 

Bale

Minion
Tucking subroutines into [ global prefix ] is really cool though. I could make use of that.
 
Top