SmartStasis -- a complex script for a simple CCS

Galanodel, I think you wanted zarqon, the writer of the script, not me. :D He asked you for more specific info, as per this...
@Galanodel: mine always has; just did today, in fact. What's different about yours? More info, please.

If you aren't using the latest version of SS and BatBrain, I'd suggest updating to them, then trying again. If it still fails, specifics about how you're bountying (script, relay, auto-adventure tab), probably including your CCS, wouldn't be amis...
 
Having the Spooky Putty mitre equiped on the hatrack causes the following:
Code:
[2864] Giant's Castle
Encounter: Goth Giant
Round 0: lazy_fire wins initiative!
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Evaluator syntax error: unexpected end of expr
Round 1: lazy_fire attacks!
Round 2: goth giant takes 56 damage.
Round 2: Lucky 13 reaches down and pulls some Meat from behind your ear. Didn't your mother ever tell you to wash back there?
You gain 13 Meat.
Round 2: lazy_fire attacks!
Round 3: goth giant takes 52 damage.
Round 3: Lucky 13 reaches down and pulls some Meat from behind your ear. Didn't your mother ever tell you to wash back there?
You gain 15 Meat.
You lose 9 hit points
Round 3: lazy_fire attacks!
Round 4: goth giant takes 48 damage.
Round 4: Lucky 13 reaches down and pulls some Meat from behind your ear. Didn't your mother ever tell you to wash back there?
You gain 14 Meat.
Round 4: lazy_fire attacks!
Round 5: goth giant takes 58 damage.
Round 5: lazy_fire wins the fight!
After Battle: Lucky 13 surveys the scene from atop the throne and sighs.
After Battle: Mercury Tree nods his head with a somber rhythm as he winks at you pontifically.
You gain 680 Meat
You acquire an item: Warm Subject gift certificate
You acquire an item: awful poetry journal
You gain 8 Strongness
You gain 27 Enchantedness
You gain 6 Sarcasm

*edit* Tried removing batfactors.txt as mentioned in an earlier post and the problem went away, but it returned after logging back in.
 
Last edited:
I'm trying to use the Wossname script, and since the error was for BatBrain, I figured it should go here.

Invalid field name 'reusable' (BatBrain.ash, line 681)
Consult script 'SmartStasis.ash' not found.


I'm not sure what's up with the second error, SS is in my scripts folder.
 
When running this in my relay browser I often see a screen flash near the beginning of the fight by where KoL complains,
Invalid macro command encountered: "Item 819"

Verbosity 10 produces this output:

Code:
[2540] Battlefield (Frat Uniform)
Encounter: War Hippy F.R.O.G.
Round 0: ---- wins initiative!
 > bullet-proof corduroys (6.0 @ +50.16625): 450.0 meat * 9.0099745% = 40.544884
 > communications windchimes (2.0 @ +50.16625): 374.0 meat * 3.003325% = 11.232435
 > lead pipe (17.0 @ +50.16625): 565.0 meat * 25.528261% = 144.23468
 > pink clay bead (31.0 @ +50.16625): 0.0 meat * 46.551537% = 0.0
 > reinforced beaded headband (6.0 @ +50.16625): 475.0 meat * 9.0099745% = 42.79738
 > round purple sunglasses (6.0 @ +50.16625): 775.0 meat * 9.0099745% = 69.8273
 > wicker shield (6.0 @ +50.16625): 550.0 meat * 9.0099745% = 49.55486
 > water pipe bomb (10.0 @ +50.16625): 150.0 meat * 15.016624% = 22.524937
 > Value of stat gain: 627.5
 > bullet-proof corduroys (6.0 @ +50.16625): 450.0 meat * 9.0099745% = 40.544884
 > communications windchimes (2.0 @ +50.16625): 374.0 meat * 3.003325% = 11.232435
 > lead pipe (17.0 @ +50.16625): 565.0 meat * 25.528261% = 144.23468
 > pink clay bead (31.0 @ +50.16625): 0.0 meat * 46.551537% = 0.0
 > reinforced beaded headband (6.0 @ +50.16625): 475.0 meat * 9.0099745% = 42.79738
 > round purple sunglasses (6.0 @ +50.16625): 775.0 meat * 9.0099745% = 69.8273
 > wicker shield (6.0 @ +50.16625): 550.0 meat * 9.0099745% = 49.55486
 > water pipe bomb (10.0 @ +50.16625): 150.0 meat * 15.016624% = 22.524937
 > Value of stat gain: 627.5
 > Monster value: 1008.22
 > Bonus damage to DB skills: 15
 > You are able to cast 2 possible disco combos.
 > Evaluating '-0.45454547'...
 > Evaluating '1'...
 > Evaluating '1'...
 > Evaluating '0'...
 > Evaluating '0.6'...
 > Evaluating '0'...
 > Evaluating '-4'...
 > Evaluating '-4'...
 > Evaluating '0.47'...
 > Evaluating '7'...
 > Evaluating '0'...
 > Evaluating '10'...
 > Evaluating '0'...
 > Evaluating '27'...
 > Evaluating '0'...
 > Evaluating '12'...
 > Evaluating '22'...
 > Evaluating '0'...
 > Evaluating '-2'...
 > Evaluating '-2'...
 > Evaluating '0.5'...
 > Evaluating '0'...
 > Evaluating '0.5'...
 > Evaluating '-5'...
 > Evaluating '-5'...
 > Evaluating '0'...
 > Evaluating '-2'...
 > Evaluating '-2'...
 > Evaluating '2.5'...
 > Evaluating '6'...
 > Evaluating '0'...
 > Evaluating '0.5'...
 > Evaluating '22.5'...
 > Evaluating '-4'...
 > Evaluating '-4'...
 > Evaluating '0.5'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '40'...
 > Evaluating '3'...
 > Evaluating '-14'...
 > Evaluating '0'...
 > Evaluating '-2.5'...
 > Evaluating '-2.5'...
 > Evaluating '0'...
 > Evaluating '10'...
 > Evaluating '0'...
 > Evaluating '5'...
 > Evaluating '5'...
 > Evaluating '0'...
 > Evaluating '25'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '0.0'...
 > Evaluating '1.7857144'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '17.5'...
 > Evaluating '-14'...
 > Evaluating '0'...
 > Evaluating '-2.5'...
 > Evaluating '-2.5'...
 > Evaluating '0'...
 > Evaluating '10'...
 > Evaluating '0'...
 > Evaluating '5'...
 > Evaluating '5'...
 > Evaluating '0'...
 > Evaluating '25'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '0.0'...
 > Evaluating '1.7857144'...
 > Evaluating '-14'...
 > Evaluating '0'...
 > Evaluating '-2.5'...
 > Evaluating '-2.5'...
 > Evaluating '0'...
 > Evaluating '10'...
 > Evaluating '0'...
 > Evaluating '5'...
 > Evaluating '5'...
 > Evaluating '0'...
 > Evaluating '25'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '0.0'...
 > Evaluating '1.7857144'...
 > Evaluating '12.5'...
 > Evaluating '45*loc(chasm)'...
 > Evaluating '0'...
 > Evaluating '-4.5'...
 > Evaluating '-4.5'...
 > Evaluating '0.5'...
 > Evaluating '20'...
 > Evaluating '-13.3'...
 > Evaluating '5'...
 > Evaluating '42'...
 > Evaluating '0'...
 > Evaluating '-5.5'...
 > Evaluating '-5.5'...
 > Evaluating '0.51'...
 > Evaluating '0'...
 > Evaluating '175'...
 > Evaluating '0'...
 > Evaluating '-4.5'...
 > Evaluating '-4.5'...
 > Evaluating '25'...
 > Evaluating '55'...
 > Evaluating '65'...
 > Evaluating '65'...
 > Evaluating '0'...
 > Evaluating '100'...
 > Evaluating '0'...
 > Evaluating '-4'...
 > Evaluating '-4'...
 > Evaluating '0.5'...
 > Evaluating '17.5'...
 > Evaluating '0'...
 > Evaluating '-7.5'...
 > Evaluating '-7.5'...
 > Evaluating '55'...
 > Evaluating '8.5*0.5'...
 > Evaluating '-2*0.25'...
 > Evaluating '-2*0.25'...
 > Evaluating '4.5*0.25'...
 > Evaluating '0.25'...
 > Evaluating '0'...
 > Evaluating '-7'...
 > Evaluating '-7'...
 > Evaluating '0'...
 > Evaluating '-7'...
 > Evaluating '-7'...
 > Evaluating '7'...
 > 1 MP costs 8.0 meat.
 > Evaluating '7.5+15.0'...
 > Evaluating '-2'...
 > Evaluating '1'...
 > Evaluating '7.5+15.0'...
 > Evaluating '-2'...
 > Evaluating '7.5+15.0'...
 > Evaluating '-2'...
 > Evaluating '1'...
 > Evaluating '-0'...
 > Evaluating '-1'...
 > Evaluating '-1'...
 > Evaluating '0'...
 > Evaluating '-14'...
 > Evaluating '0'...
 > Evaluating '-10'...
 > Evaluating '-0.1*190.0'...
 > Evaluating '-0.1*190.0'...
Round 1: ---- tries to steal an item!
 > Evaluating '-0.45454547'...
 > Evaluating '1'...
 > Evaluating '1'...
 > Evaluating '0'...
 > Evaluating '0.6'...
 > Evaluating '0'...
 > Evaluating '-4'...
 > Evaluating '-4'...
 > Evaluating '0.47'...
 > Evaluating '7'...
 > Evaluating '0'...
 > Evaluating '10'...
 > Evaluating '0'...
 > Evaluating '27'...
 > Evaluating '0'...
 > Evaluating '12'...
 > Evaluating '22'...
 > Evaluating '0'...
 > Evaluating '-2'...
 > Evaluating '-2'...
 > Evaluating '0.5'...
 > Evaluating '0'...
 > Evaluating '0.5'...
 > Evaluating '-5'...
 > Evaluating '-5'...
 > Evaluating '0'...
 > Evaluating '-2'...
 > Evaluating '-2'...
 > Evaluating '2.5'...
 > Evaluating '6'...
 > Evaluating '0'...
 > Evaluating '0.5'...
 > Evaluating '22.5'...
 > Evaluating '-4'...
 > Evaluating '-4'...
 > Evaluating '0.5'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '40'...
 > Evaluating '3'...
 > Evaluating '-14'...
 > Evaluating '0'...
 > Evaluating '-2.5'...
 > Evaluating '-2.5'...
 > Evaluating '0'...
 > Evaluating '10'...
 > Evaluating '0'...
 > Evaluating '5'...
 > Evaluating '5'...
 > Evaluating '0'...
 > Evaluating '25'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '0.0'...
 > Evaluating '1.7857144'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '17.5'...
 > Evaluating '-14'...
 > Evaluating '0'...
 > Evaluating '-2.5'...
 > Evaluating '-2.5'...
 > Evaluating '0'...
 > Evaluating '10'...
 > Evaluating '0'...
 > Evaluating '5'...
 > Evaluating '5'...
 > Evaluating '0'...
 > Evaluating '25'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '0.0'...
 > Evaluating '1.7857144'...
 > Evaluating '-14'...
 > Evaluating '0'...
 > Evaluating '-2.5'...
 > Evaluating '-2.5'...
 > Evaluating '0'...
 > Evaluating '10'...
 > Evaluating '0'...
 > Evaluating '5'...
 > Evaluating '5'...
 > Evaluating '0'...
 > Evaluating '25'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '0.0'...
 > Evaluating '1.7857144'...
 > Evaluating '12.5'...
 > Evaluating '45*loc(chasm)'...
 > Evaluating '0'...
 > Evaluating '-4.5'...
 > Evaluating '-4.5'...
 > Evaluating '0.5'...
 > Evaluating '20'...
 > Evaluating '-13.3'...
 > Evaluating '5'...
 > Evaluating '42'...
 > Evaluating '0'...
 > Evaluating '-5.5'...
 > Evaluating '-5.5'...
 > Evaluating '0.51'...
 > Evaluating '0'...
 > Evaluating '175'...
 > Evaluating '0'...
 > Evaluating '-4.5'...
 > Evaluating '-4.5'...
 > Evaluating '25'...
 > Evaluating '55'...
 > Evaluating '65'...
 > Evaluating '65'...
 > Evaluating '0'...
 > Evaluating '100'...
 > Evaluating '0'...
 > Evaluating '-4'...
 > Evaluating '-4'...
 > Evaluating '0.5'...
 > Evaluating '17.5'...
 > Evaluating '0'...
 > Evaluating '-7.5'...
 > Evaluating '-7.5'...
 > Evaluating '55'...
 > Evaluating '8.5*0.5'...
 > Evaluating '-2*0.25'...
 > Evaluating '-2*0.25'...
 > Evaluating '4.5*0.25'...
 > Evaluating '0.25'...
 > Evaluating '0'...
 > Evaluating '-7'...
 > Evaluating '-7'...
 > Evaluating '0'...
 > Evaluating '-7'...
 > Evaluating '-7'...
 > Evaluating '7'...
 > 1 MP costs 8.0 meat.
 > Evaluating '7.5+15.0'...
 > Evaluating '-2'...
 > Evaluating '1'...
 > Evaluating '7.5+15.0'...
 > Evaluating '-2'...
 > Evaluating '7.5+15.0'...
 > Evaluating '-2'...
 > Evaluating '1'...
 > Evaluating '-0'...
 > Evaluating '-1'...
 > Evaluating '-1'...
 > Evaluating '0'...
 > Evaluating '-14'...
 > Evaluating '0'...
 > Evaluating '-10'...
 > Evaluating '-0.1*190.0'...
 > Evaluating '-0.1*190.0'...
Round 2: ---- tries to steal an item!
You acquire an item: water pipe bomb
 > bullet-proof corduroys (6.0 @ +50.16625): 450.0 meat * 9.0099745% = 40.544884
 > communications windchimes (2.0 @ +50.16625): 374.0 meat * 3.003325% = 11.232435
 > lead pipe (17.0 @ +50.16625): 565.0 meat * 25.528261% = 144.23468
 > pink clay bead (31.0 @ +50.16625): 0.0 meat * 46.551537% = 0.0
 > reinforced beaded headband (6.0 @ +50.16625): 475.0 meat * 9.0099745% = 42.79738
 > round purple sunglasses (6.0 @ +50.16625): 775.0 meat * 9.0099745% = 69.8273
 > wicker shield (6.0 @ +50.16625): 550.0 meat * 9.0099745% = 49.55486
 > Value of stat gain: 627.5
 > Revised monster value: 985.69
 > Evaluating '-0.45454547'...
 > Evaluating '1'...
 > Evaluating '1'...
 > Evaluating '0'...
 > Evaluating '0.6'...
 > Evaluating '0'...
 > Evaluating '-4'...
 > Evaluating '-4'...
 > Evaluating '0.47'...
 > Evaluating '7'...
 > Evaluating '0'...
 > Evaluating '10'...
 > Evaluating '0'...
 > Evaluating '27'...
 > Evaluating '0'...
 > Evaluating '12'...
 > Evaluating '22'...
 > Evaluating '0'...
 > Evaluating '-2'...
 > Evaluating '-2'...
 > Evaluating '0.5'...
 > Evaluating '0'...
 > Evaluating '0.5'...
 > Evaluating '-5'...
 > Evaluating '-5'...
 > Evaluating '0'...
 > Evaluating '-2'...
 > Evaluating '-2'...
 > Evaluating '2.5'...
 > Evaluating '6'...
 > Evaluating '0'...
 > Evaluating '0.5'...
 > Evaluating '22.5'...
 > Evaluating '-4'...
 > Evaluating '-4'...
 > Evaluating '0.5'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '40'...
 > Evaluating '3'...
 > Evaluating '-14'...
 > Evaluating '0'...
 > Evaluating '-2.5'...
 > Evaluating '-2.5'...
 > Evaluating '0'...
 > Evaluating '10'...
 > Evaluating '0'...
 > Evaluating '5'...
 > Evaluating '5'...
 > Evaluating '0'...
 > Evaluating '25'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '0.0'...
 > Evaluating '1.7857144'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '17.5'...
 > Evaluating '-14'...
 > Evaluating '0'...
 > Evaluating '-2.5'...
 > Evaluating '-2.5'...
 > Evaluating '0'...
 > Evaluating '10'...
 > Evaluating '0'...
 > Evaluating '5'...
 > Evaluating '5'...
 > Evaluating '0'...
 > Evaluating '25'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '0.0'...
 > Evaluating '1.7857144'...
 > Evaluating '-14'...
 > Evaluating '0'...
 > Evaluating '-2.5'...
 > Evaluating '-2.5'...
 > Evaluating '0'...
 > Evaluating '10'...
 > Evaluating '0'...
 > Evaluating '5'...
 > Evaluating '5'...
 > Evaluating '0'...
 > Evaluating '25'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '0.0'...
 > Evaluating '1.7857144'...
 > Evaluating '12.5'...
 > Evaluating '45*loc(chasm)'...
 > Evaluating '0'...
 > Evaluating '-4.5'...
 > Evaluating '-4.5'...
 > Evaluating '0.5'...
 > Evaluating '20'...
 > Evaluating '-13.3'...
 > Evaluating '5'...
 > Evaluating '42'...
 > Evaluating '0'...
 > Evaluating '-5.5'...
 > Evaluating '-5.5'...
 > Evaluating '0.51'...
 > Evaluating '0'...
 > Evaluating '175'...
 > Evaluating '0'...
 > Evaluating '-4.5'...
 > Evaluating '-4.5'...
 > Evaluating '25'...
 > Evaluating '55'...
 > Evaluating '65'...
 > Evaluating '65'...
 > Evaluating '0'...
 > Evaluating '100'...
 > Evaluating '0'...
 > Evaluating '-4'...
 > Evaluating '-4'...
 > Evaluating '0.5'...
 > Evaluating '17.5'...
 > Evaluating '0'...
 > Evaluating '-7.5'...
 > Evaluating '-7.5'...
 > Evaluating '55'...
 > Evaluating '8.5*0.5'...
 > Evaluating '-2*0.25'...
 > Evaluating '-2*0.25'...
 > Evaluating '4.5*0.25'...
 > Evaluating '0.25'...
 > Evaluating '0'...
 > Evaluating '-7'...
 > Evaluating '-7'...
 > Evaluating '0'...
 > Evaluating '-7'...
 > Evaluating '-7'...
 > Evaluating '7'...
 > 1 MP costs 8.0 meat.
 > Evaluating '7.5+15.0'...
 > Evaluating '-2'...
 > Evaluating '1'...
 > Evaluating '7.5+15.0'...
 > Evaluating '-2'...
 > Evaluating '7.5+15.0'...
 > Evaluating '-2'...
 > Evaluating '1'...
 > Evaluating '-0'...
 > Evaluating '-1'...
 > Evaluating '-1'...
 > Evaluating '0'...
 > Evaluating '-14'...
 > Evaluating '0'...
 > Evaluating '-10'...
 > Evaluating '-0.1*190.0'...
 > Evaluating '-0.1*190.0'...
 > CATEGORY II: item 819 (no stun)
 > CATEGORY II: item 823 (no stun)
 > CATEGORY II: item 825 (no stun)
 > CATEGORY II: item 819 (no stun)
 > CATEGORY II: item 823 (no stun)
 > CATEGORY II: item 825 (no stun)
 > CATEGORY II: item 819 (no stun)
 > CATEGORY II: item 823 (no stun)
 > CATEGORY II: item 825 (no stun)
 > Executing macro: abort match effect*Poisoned || match effect*Toad || match "a massive loogie" || hpbelow 1; scrollwhendone; sub batround; endsub; item 819; call batround; item 823; call batround; item 825; call batround; item 819; call batround; item 823; call batround; item 825; call batround; item 819; call batround; item 823; call batround; item 825; call batround; 
Round 3: drustanus executes a macro!
 > Evaluating '-0.45454547'...
 > Evaluating '1'...
 > Evaluating '1'...
 > Evaluating '0'...
 > Evaluating '0.6'...
 > Evaluating '0'...
 > Evaluating '-4'...
 > Evaluating '-4'...
 > Evaluating '0.47'...
 > Evaluating '7'...
 > Evaluating '0'...
 > Evaluating '10'...
 > Evaluating '0'...
 > Evaluating '27'...
 > Evaluating '0'...
 > Evaluating '12'...
 > Evaluating '22'...
 > Evaluating '0'...
 > Evaluating '-2'...
 > Evaluating '-2'...
 > Evaluating '0.5'...
 > Evaluating '0'...
 > Evaluating '0.5'...
 > Evaluating '-5'...
 > Evaluating '-5'...
 > Evaluating '0'...
 > Evaluating '-2'...
 > Evaluating '-2'...
 > Evaluating '2.5'...
 > Evaluating '6'...
 > Evaluating '0'...
 > Evaluating '0.5'...
 > Evaluating '22.5'...
 > Evaluating '-4'...
 > Evaluating '-4'...
 > Evaluating '0.5'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '40'...
 > Evaluating '3'...
 > Evaluating '-14'...
 > Evaluating '0'...
 > Evaluating '-2.5'...
 > Evaluating '-2.5'...
 > Evaluating '0'...
 > Evaluating '10'...
 > Evaluating '0'...
 > Evaluating '5'...
 > Evaluating '5'...
 > Evaluating '0'...
 > Evaluating '25'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '0.0'...
 > Evaluating '1.7857144'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '17.5'...
 > Evaluating '-14'...
 > Evaluating '0'...
 > Evaluating '-2.5'...
 > Evaluating '-2.5'...
 > Evaluating '0'...
 > Evaluating '10'...
 > Evaluating '0'...
 > Evaluating '5'...
 > Evaluating '5'...
 > Evaluating '0'...
 > Evaluating '25'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '0.0'...
 > Evaluating '1.7857144'...
 > Evaluating '-14'...
 > Evaluating '0'...
 > Evaluating '-2.5'...
 > Evaluating '-2.5'...
 > Evaluating '0'...
 > Evaluating '10'...
 > Evaluating '0'...
 > Evaluating '5'...
 > Evaluating '5'...
 > Evaluating '0'...
 > Evaluating '25'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '0.0'...
 > Evaluating '1.7857144'...
 > Evaluating '12.5'...
 > Evaluating '45*loc(chasm)'...
 > Evaluating '0'...
 > Evaluating '-4.5'...
 > Evaluating '-4.5'...
 > Evaluating '0.5'...
 > Evaluating '20'...
 > Evaluating '-13.3'...
 > Evaluating '5'...
 > Evaluating '42'...
 > Evaluating '0'...
 > Evaluating '-5.5'...
 > Evaluating '-5.5'...
 > Evaluating '0.51'...
 > Evaluating '0'...
 > Evaluating '175'...
 > Evaluating '0'...
 > Evaluating '-4.5'...
 > Evaluating '-4.5'...
 > Evaluating '25'...
 > Evaluating '55'...
 > Evaluating '65'...
 > Evaluating '65'...
 > Evaluating '0'...
 > Evaluating '100'...
 > Evaluating '0'...
 > Evaluating '-4'...
 > Evaluating '-4'...
 > Evaluating '0.5'...
 > Evaluating '17.5'...
 > Evaluating '0'...
 > Evaluating '-7.5'...
 > Evaluating '-7.5'...
 > Evaluating '55'...
 > Evaluating '8.5*0.5'...
 > Evaluating '-2*0.25'...
 > Evaluating '-2*0.25'...
 > Evaluating '4.5*0.25'...
 > Evaluating '0.25'...
 > Evaluating '0'...
 > Evaluating '-7'...
 > Evaluating '-7'...
 > Evaluating '0'...
 > Evaluating '-7'...
 > Evaluating '-7'...
 > Evaluating '7'...
 > 1 MP costs 8.0 meat.
 > Evaluating '7.5+15.0'...
 > Evaluating '-2'...
 > Evaluating '1'...
 > Evaluating '7.5+15.0'...
 > Evaluating '-2'...
 > Evaluating '7.5+15.0'...
 > Evaluating '-2'...
 > Evaluating '1'...
 > Evaluating '-0'...
 > Evaluating '-1'...
 > Evaluating '-1'...
 > Evaluating '0'...
 > Evaluating '-14'...
 > Evaluating '0'...
 > Evaluating '-10'...
 > Evaluating '-0.1*190.0'...
 > Evaluating '-0.1*190.0'...
 > bullet-proof corduroys (6.0 @ +50.16625): 450.0 meat * 9.0099745% = 40.544884
 > bullet-proof corduroys (7.7999997 @ +50.16625): 450.0 meat * 11.712966% = 52.708344
 > communications windchimes (2.0 @ +50.16625): 374.0 meat * 3.003325% = 11.232435
 > communications windchimes (2.6 @ +50.16625): 374.0 meat * 3.9043221% = 14.602164
 > lead pipe (17.0 @ +50.16625): 565.0 meat * 25.528261% = 144.23468
 > lead pipe (22.099998 @ +50.16625): 565.0 meat * 33.186737% = 187.50507
 > pink clay bead (31.0 @ +50.16625): 0.0 meat * 46.551537% = 0.0
 > reinforced beaded headband (6.0 @ +50.16625): 475.0 meat * 9.0099745% = 42.79738
 > reinforced beaded headband (7.7999997 @ +50.16625): 475.0 meat * 11.712966% = 55.636585
 > round purple sunglasses (6.0 @ +50.16625): 775.0 meat * 9.0099745% = 69.8273
 > round purple sunglasses (7.7999997 @ +50.16625): 775.0 meat * 11.712966% = 90.77549
 > wicker shield (6.0 @ +50.16625): 550.0 meat * 9.0099745% = 49.55486
 > wicker shield (7.7999997 @ +50.16625): 550.0 meat * 11.712966% = 64.42131
 > bullet-proof corduroys (6.0 @ +50.16625): 450.0 meat * 9.0099745% = 40.544884
 > bullet-proof corduroys (7.7999997 @ +50.16625): 450.0 meat * 11.712966% = 52.708344
 > communications windchimes (2.0 @ +50.16625): 374.0 meat * 3.003325% = 11.232435
 > communications windchimes (2.6 @ +50.16625): 374.0 meat * 3.9043221% = 14.602164
 > lead pipe (17.0 @ +50.16625): 565.0 meat * 25.528261% = 144.23468
 > lead pipe (22.099998 @ +50.16625): 565.0 meat * 33.186737% = 187.50507
 > pink clay bead (31.0 @ +50.16625): 0.0 meat * 46.551537% = 0.0
 > reinforced beaded headband (6.0 @ +50.16625): 475.0 meat * 9.0099745% = 42.79738
 > reinforced beaded headband (7.7999997 @ +50.16625): 475.0 meat * 11.712966% = 55.636585
 > round purple sunglasses (6.0 @ +50.16625): 775.0 meat * 9.0099745% = 69.8273
 > round purple sunglasses (7.7999997 @ +50.16625): 775.0 meat * 11.712966% = 90.77549
 > wicker shield (6.0 @ +50.16625): 550.0 meat * 9.0099745% = 49.55486
 > wicker shield (7.7999997 @ +50.16625): 550.0 meat * 11.712966% = 64.42131
 > bullet-proof corduroys (6.0 @ +50.16625): 450.0 meat * 9.0099745% = 40.544884
 > bullet-proof corduroys (7.7999997 @ +50.16625): 450.0 meat * 11.712966% = 52.708344
 > communications windchimes (2.0 @ +50.16625): 374.0 meat * 3.003325% = 11.232435
 > communications windchimes (2.6 @ +50.16625): 374.0 meat * 3.9043221% = 14.602164
 > lead pipe (17.0 @ +50.16625): 565.0 meat * 25.528261% = 144.23468
 > lead pipe (22.099998 @ +50.16625): 565.0 meat * 33.186737% = 187.50507
 > pink clay bead (31.0 @ +50.16625): 0.0 meat * 46.551537% = 0.0
 > reinforced beaded headband (6.0 @ +50.16625): 475.0 meat * 9.0099745% = 42.79738
 > reinforced beaded headband (7.7999997 @ +50.16625): 475.0 meat * 11.712966% = 55.636585
 > round purple sunglasses (6.0 @ +50.16625): 775.0 meat * 9.0099745% = 69.8273
 > round purple sunglasses (7.7999997 @ +50.16625): 775.0 meat * 11.712966% = 90.77549
 > wicker shield (6.0 @ +50.16625): 550.0 meat * 9.0099745% = 49.55486
 > wicker shield (7.7999997 @ +50.16625): 550.0 meat * 11.712966% = 64.42131
 > bullet-proof corduroys (6.0 @ +50.16625): 450.0 meat * 9.0099745% = 40.544884
 > bullet-proof corduroys (7.7999997 @ +50.16625): 450.0 meat * 11.712966% = 52.708344
 > communications windchimes (2.0 @ +50.16625): 374.0 meat * 3.003325% = 11.232435
 > communications windchimes (2.6 @ +50.16625): 374.0 meat * 3.9043221% = 14.602164
 > lead pipe (17.0 @ +50.16625): 565.0 meat * 25.528261% = 144.23468
 > lead pipe (22.099998 @ +50.16625): 565.0 meat * 33.186737% = 187.50507
 > pink clay bead (31.0 @ +50.16625): 0.0 meat * 46.551537% = 0.0
 > reinforced beaded headband (6.0 @ +50.16625): 475.0 meat * 9.0099745% = 42.79738
 > reinforced beaded headband (7.7999997 @ +50.16625): 475.0 meat * 11.712966% = 55.636585
 > round purple sunglasses (6.0 @ +50.16625): 775.0 meat * 9.0099745% = 69.8273
 > round purple sunglasses (7.7999997 @ +50.16625): 775.0 meat * 11.712966% = 90.77549
 > wicker shield (6.0 @ +50.16625): 550.0 meat * 9.0099745% = 49.55486
 > wicker shield (7.7999997 @ +50.16625): 550.0 meat * 11.712966% = 64.42131
Round 4: ---- executes a macro!
Round 4: ---- casts POP AND LOCK IT!
Round 5: war hippy f.r.o.g. takes 22 damage.
Round 5: ---- casts RUN LIKE THE WIND!
Round 6: war hippy f.r.o.g. takes 30 damage.
Round 6: ---- casts BREAK IT ON DOWN!
You acquire an effect: Rave Concentration (duration: 1 Adventure)
 > Evaluating '-0.45454547'...
 > Evaluating '1'...
 > Evaluating '1'...
 > Evaluating '0'...
 > Evaluating '0.6'...
 > Evaluating '0'...
 > Evaluating '-4'...
 > Evaluating '-4'...
 > Evaluating '0.47'...
 > Evaluating '7'...
 > Evaluating '0'...
 > Evaluating '10'...
 > Evaluating '0'...
 > Evaluating '27'...
 > Evaluating '0'...
 > Evaluating '12'...
 > Evaluating '22'...
 > Evaluating '0'...
 > Evaluating '-2'...
 > Evaluating '-2'...
 > Evaluating '0.5'...
 > Evaluating '0'...
 > Evaluating '0.5'...
 > Evaluating '-5'...
 > Evaluating '-5'...
 > Evaluating '0'...
 > Evaluating '-2'...
 > Evaluating '-2'...
 > Evaluating '2.5'...
 > Evaluating '6'...
 > Evaluating '0'...
 > Evaluating '0.5'...
 > Evaluating '22.5'...
 > Evaluating '-4'...
 > Evaluating '-4'...
 > Evaluating '0.5'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '40'...
 > Evaluating '3'...
 > Evaluating '-14'...
 > Evaluating '0'...
 > Evaluating '-2.5'...
 > Evaluating '-2.5'...
 > Evaluating '0'...
 > Evaluating '10'...
 > Evaluating '0'...
 > Evaluating '5'...
 > Evaluating '5'...
 > Evaluating '0'...
 > Evaluating '25'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '0.0'...
 > Evaluating '1.7857144'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '17.5'...
 > Evaluating '-14'...
 > Evaluating '0'...
 > Evaluating '-2.5'...
 > Evaluating '-2.5'...
 > Evaluating '0'...
 > Evaluating '10'...
 > Evaluating '0'...
 > Evaluating '5'...
 > Evaluating '5'...
 > Evaluating '0'...
 > Evaluating '25'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '0.0'...
 > Evaluating '1.7857144'...
 > Evaluating '-14'...
 > Evaluating '0'...
 > Evaluating '-2.5'...
 > Evaluating '-2.5'...
 > Evaluating '0'...
 > Evaluating '10'...
 > Evaluating '0'...
 > Evaluating '5'...
 > Evaluating '5'...
 > Evaluating '0'...
 > Evaluating '25'...
 > Evaluating '0'...
 > Evaluating '0'...
 > Evaluating '0.0'...
 > Evaluating '1.7857144'...
 > Evaluating '12.5'...
 > Evaluating '45*loc(chasm)'...
 > Evaluating '0'...
 > Evaluating '-4.5'...
 > Evaluating '-4.5'...
 > Evaluating '0.5'...
 > Evaluating '20'...
 > Evaluating '-13.3'...
 > Evaluating '5'...
 > Evaluating '42'...
 > Evaluating '0'...
 > Evaluating '-5.5'...
 > Evaluating '-5.5'...
 > Evaluating '0.51'...
 > Evaluating '0'...
 > Evaluating '175'...
 > Evaluating '0'...
 > Evaluating '-4.5'...
 > Evaluating '-4.5'...
 > Evaluating '25'...
 > Evaluating '55'...
 > Evaluating '65'...
 > Evaluating '65'...
 > Evaluating '0'...
 > Evaluating '100'...
 > Evaluating '0'...
 > Evaluating '-4'...
 > Evaluating '-4'...
 > Evaluating '0.5'...
 > Evaluating '17.5'...
 > Evaluating '0'...
 > Evaluating '-7.5'...
 > Evaluating '-7.5'...
 > Evaluating '55'...
 > Evaluating '8.5*0.5'...
 > Evaluating '-2*0.25'...
 > Evaluating '-2*0.25'...
 > Evaluating '4.5*0.25'...
 > Evaluating '0.25'...
 > Evaluating '0'...
 > Evaluating '-7'...
 > Evaluating '-7'...
 > Evaluating '0'...
 > Evaluating '-7'...
 > Evaluating '-7'...
 > Evaluating '7'...
 > 1 MP costs 8.0 meat.
 > Evaluating '7.5+15.0'...
 > Evaluating '-2'...
 > Evaluating '1'...
 > Evaluating '7.5+15.0'...
 > Evaluating '-2'...
 > Evaluating '7.5+15.0'...
 > Evaluating '-2'...
 > Evaluating '1'...
 > Evaluating '-0'...
 > Evaluating '-1'...
 > Evaluating '-1'...
 > Evaluating '0'...
 > Evaluating '-14'...
 > Evaluating '0'...
 > Evaluating '-10'...
 > Evaluating '-0.1*190.0'...
 > Evaluating '-0.1*190.0'...
 > This monster is not your huckleberry.
Round 7: ---- attacks!
Round 8: war hippy f.r.o.g. takes 64 damage.
Round 8: ---- attacks!
Round 9: war hippy f.r.o.g. takes 61 damage.
Round 9: ---- attacks!
Round 10: war hippy f.r.o.g. takes 57 damage.
Round 10: ---- wins the fight!
After Battle: Get Items does a little fairy dance.
You gain 13 Strengthliness
You gain a Muscle point!
You gain 19 Mysteriousness
You gain 16 Roguishness
2 hippies defeated; 66 down, 934 left.
 
Last edited:
Where's the old stasis?
This new one gives me this message in gCLI!!

Invalid field name 'reusable' (BatBrain.ash, line 681)
Consult script 'SmartStasis.ash' not found.
You're on your own, partner.
Click here to continue in the relay browser.
 
If you're getting the error about field name 'reusable' you need to update mafia to at least r9197.

New BatBrain should fix most of the remaining issues reported. There were some old "item" ID's I'd forgotten to switch to "use" to be macro-ready.

Also, that stupid regex did exactly what I told it to, which forgot that due to min() and max(), formulas can contain commas. Now it should be searching for commas with a space or eos.

@frono: Either 1) you're not using UR, 2) UR hadn't run yet to set the values of HP and MP, or c) UR didn't consider Cocoon when setting them. If UR had set _meatperhp and _meatpermp based on the knowledge that you could restore thousands of HP using Cocoon, in-combat restore using Lasagna Bandages would have been considered wasteful and would have been avoided.
 
@frono: Either 1) you're not using UR, 2) UR hadn't run yet to set the values of HP and MP, or c) UR didn't consider Cocoon when setting them.

If those are the choices then I'm afraid that upon rechecking settings I have to plead guilty to 1). (Insert "I am embarrassed smilie here"). I got confused about which characters were doing what. As it turns out I had disabled UR at some point for reasons I no longer recall but might have been related to buying in combat restores that I never needed to use. (Which is not a complaint against UR).
 
Alright, I have the latest version of Mafia (thanks to the auto-update program), and the latest version of batbrain and SS. I use auto-adventuring, with goals set, to grab bounties everyday. Here is a dump of a recent combat against a cubist bull:

Code:
[25699] Haunted Gallery
Encounter: cubist bull
Strategy: C:\Users\Galanodel\Documents\KOL Mafia\ccs\SmartStasis.ccs [default]
Round 0: Lilinmall wins initiative!
Round 1: Lilinmall tries to steal an item!
You gain 12 Mojo Points
You gain 59 Meat.
1/5 monsters drop goals here.
This monster is the best source of goals (1)!
Round 2: Lilinmall executes a macro!
Round 2: Lilinmall casts BREAK IT ON DOWN!
You gain 15 Mojo Points
Round 3: Lilinmall casts RUN LIKE THE WIND!
You gain 14 Mojo Points
Round 4: Lilinmall casts POP AND LOCK IT!
You acquire an item: 4-dimensional guitar
You lose 8 hit points
Round 5: Lilinmall executes a macro!
Round 5: Lilinmall casts RUN LIKE THE WIND!
Round 6: Lilinmall casts POP AND LOCK IT!
Round 7: Lilinmall casts BREAK IT ON DOWN!
You acquire an effect: Rave Nirvana (duration: 1 Adventure)
Round 8: Lilinmall executes a macro!
Round 8: Lilinmall casts DISCO DANCE OF DOOM!
Round 9: Lilinmall casts DISCO DANCE II: ELECTRIC BOOGALOO!
You acquire an effect: Disco Nirvana (duration: 1 Adventure)
Round 10: Lilinmall attacks!
Round 11: Lilinmall wins the fight!
You gain 1244 Meat
You acquire an item: non-Euclidean hoof
You gain 7 Beefiness
You gain 8 Enchantedness
You gain 15 Roguishness

My CSS is simply:
consult SmartStasis.ash
attack with weapon

The familiar I have equipped is the hobo monkey, which may or may not make a difference.

On a cursory examination, it appears that the Disco Combo section overrides the puttying section, and by the time it's done comboing, the script forgets it was supposed to use the putty.
 
Last edited:
Is fat stack of cash included as a stasis item in SS/BB right now? I notice it keeps using spices over my stack, but I thought it chose the stasis item that does the least damage when it's doing stasis.
 
@Galanodel: Here are a few reasons it might not be puttying:

1) Your HP is less than the monster's auto-hit against you, and you don't have any profitable stunners.
2) Your "puttybountiesupto" setting is less than 11, the number of hooves you need to get.
3) You don't have a spooky putty sheet (i.e. your betweenBattleScript didn't fight the monster and you're adventuring with a spooky putty monster instead of a sheet).

Other than that, don't know what to say -- I was puttying cubist bulls on the same day with characters with DB combos.

@Idran: All actions you can possibly take -- items, skills, jiggling, attacking -- are considered. They are sorted by -profit, and then by damage, and then the first match which profit meets or exceeds BatMan_profitforstasis is used. However, it looks like fat stacks of cash are simply not in the data file. I'll add that in soon -- or anyone else can, for that matter.
 
If UR had set _meatperhp and _meatpermp based on the knowledge that you could restore thousands of HP using Cocoon, in-combat restore using Lasagna Bandages would have been considered wasteful and would have been avoided.

That is Awesome! I love seeing a specific example of what our collaboration produced!
 
Why is it that SS is using entangling noodles and black bottle-rockets regardless of whether or not I surpass the safety threshold? Would it not make more sense to utilise an orange bottle-rocket when I am in the clear, or a cheaper alternative?
 
Last edited:
Out of context, I certainly don't know. That was seen as your most profitable low-damage option.

Keep in mind that stat gains, for the most part, have not been added yet.

EDIT: Added a few more things to the data file, including fat stacks of cash. People expecting SS to stasis using fat stacks of fat stacks of cash can now be pleasantly unsurprised.
 
Last edited:
@ Zarqon

I checked everything you listed. The putty settings are set at 19 still, I have a sheet in my inventory, and the character in question is a level 28 DB, so I'm well outside the no hit range.

Any other suggestions?

Could it possibly be that I have ambidextrous funkslinging?
 
Last edited:
Thought of another possibility -- have you have set mafia's one-time puttying? I'm at work and forget the name of the property for this, but it's something like "autoPutty". SS may allow that to override puttying bounties, also not sure on that right now. Check that, clear it if it's set. If that isn't it, we'll have to get our hands dirty.
 
On an ascending Pastamancer, when I adventure with less than full HP, this script always aborts with the message "KolMafia thinks it is turn 2 but KoL thinks it is turn 1."

I think, based on turning up verbosity, that the script is expecting to be able to get a quick cast of Saucy Salve off, but I don't have Saucy Salve permed.

Ah, found it. Line 152, the "or" condition is taking priority, so that it always tries to fire off Saucy Salve if it'll be mana-efficient regardless of whether I actually have the skill.
 
Last edited:
this script always aborts with the message "KolMafia thinks it is turn 2 but KoL thinks it is turn 1."
That is just a (misleading) informational message from Mafia. You probably have a link to continue the fight in the Relay Browser, where you will see the macro's abort message. That message would be helpful.

It would be useful to see the actual error message. On the line you are referring to, I don't see why the OR condition should take priority (there are parenthesis to make sure of that).
 
That is just a (misleading) informational message from Mafia. You probably have a link to continue the fight in the Relay Browser, where you will see the macro's abort message. That message would be helpful.

It would be useful to see the actual error message. On the line you are referring to, I don't see why the OR condition should take priority (there are parenthesis to make sure of that).

How strange. I had to add the parentheses to fix things, but checking the version linked in the first post, I seem to have downloaded some sort of weird beta version by mistake. (the version message is in a different place, among other things)
 
Last edited:
Yeah, that was reported here and fixed within minutes of uploading. You must have grabbed it right away.

@Galanodel: throw these print statements in at line 183 (right before the comment about Grin/Stinkeye):

PHP:
   print("HP: "+my_hp()+", Damage from "+last_monster()+": "+rnum(m_dpr(0,0)));
   print("This monster has "+rnum(has_goal(last_monster()))+" goals.");
   print("should_putty: "+should_putty);
   print("You have "+item_amount($item[spooky putty sheet])+" spooky putty sheets.");
   print("Copies made today: "+get_property("spookyPuttyCopiesMade"));
   print("currentBountyItem: "+get_property("currentBountyItem"));
   print("bountysize: "+bountysize+", puttying bounties up to "+vars["puttybountiesupto"]);
   if (count(custom) > 0) print("Last added custom action: "+custom[count(custom)-1].id);

Then when you have another bounty combat come along that isn't properly puttied, post the CLI results here. This should at least help us narrow it down, if not solve it.
 
Back
Top