Feature - Implemented choiceAdventureScript

I think this feature is now behaving correctly.

Your test showed it operating correctly in fight => choice => fight =>> choice => fight => choice
When your script exited, leaving the KoL in the same choice as when it was called, KoLmafia continued with built-in automation.

I'm marking this Implemented. Finally. :)
 
I think this feature is now behaving correctly.

Your test showed it operating correctly in fight => choice => fight =>> choice => fight => choice
When your script exited, leaving the KoL in the same choice as when it was called, KoLmafia continued with built-in automation.

I'm marking this Implemented. Finally. :)

I was about to post that I'd mark this as complete as it's looking good.

Code:
[196] The Goatlet
Preference lastEncounter changed from sabre-toothed goat to dairy goat
Encounter: dairy goat
Preference _lastCombatStarted changed from 20200408195817 to 20200408195825
Round 0: Player Two loses initiative!
Round 1: dairy goat takes 4 damage.
Round 1: You lose 47 hit points
This combat did not cost a turn
Preference _edDefeats changed from 0 to 1
Preference lastEncounter changed from dairy goat to Like a Bat Into Hell
Encounter: Like a Bat Into Hell
You gain 42 hit points
Took choice 1023/1: Enter Underworld
choice.php?whichchoice=1023&option=1&pwd
> [INFO] - Ed died in combat 1 time(s)
> [INFO] - Time to shop!
> [INFO] - Buying Holy Spring Water

trading 1 Ka coin for 1 holy spring water
You acquire an item: holy spring water

place.php?whichplace=edunder&action=edunder_leave
Preference lastEncounter changed from Like a Bat Into Hell to Like a Bat out of Hell
Encounter: Like a Bat out of Hell
Took choice 1024/1: Return to the fight!
choice.php?whichchoice=1024&option=1&pwd
Preference lastEncounter changed from Like a Bat out of Hell to dairy goat
Encounter: dairy goat
Preference _lastCombatStarted changed from 20200408195825 to 20200408195833
Round 0: Player Two loses initiative!
Round 1: dairy goat takes 4 damage.
Round 1: You lose 47 hit points
This combat did not cost a turn
Preference _edDefeats changed from 1 to 2
Preference lastEncounter changed from dairy goat to Like a Bat Into Hell
Encounter: Like a Bat Into Hell
You gain 42 hit points
Took choice 1023/1: Enter Underworld
choice.php?whichchoice=1023&option=1&pwd
> [INFO] - Ed died in combat 2 time(s)
> [INFO] - Time to shop!

place.php?whichplace=edunder&action=edunder_leave
Preference lastEncounter changed from Like a Bat Into Hell to Like a Bat out of Hell
Encounter: Like a Bat out of Hell
Took choice 1024/1: Return to the fight!
choice.php?whichchoice=1024&option=1&pwd
Preference lastEncounter changed from Like a Bat out of Hell to dairy goat
Encounter: dairy goat
Preference _lastCombatStarted changed from 20200408195833 to 20200408195840
Round 0: Player Two loses initiative!
Round 1: dairy goat takes 3 damage.
Round 1: You lose 48 hit points
This combat did not cost a turn
Preference _edDefeats changed from 2 to 3
Preference lastEncounter changed from dairy goat to Like a Bat Into Hell
Encounter: Like a Bat Into Hell
You gain 42 hit points
Took choice 1023/1: Enter Underworld
choice.php?whichchoice=1023&option=1&pwd
> [INFO] - Ed died in combat 3 time(s)
> [INFO] - Time to shop!

place.php?whichplace=edunder&action=edunder_leave
Preference lastEncounter changed from Like a Bat Into Hell to Like a Bat out of Hell
Encounter: Like a Bat out of Hell
Preference _edDefeats changed from 3 to 0
Took choice 1024/2: Return to your tomb. (1)
choice.php?whichchoice=1024&option=2&pwd
place.php?whichplace=edbase&action=ed_returned
> [INFO] - Ed died in combat for reals!
Preference auto_beatenUpCount changed from 7 to 8

Apparently the default for edDefeatAbort is 2 but if I set it to 3 it appears to work as I'd like.

Again thanks for all your help and all the effort on this feature Veracity. It is very very very much appreciated :)
 
Back
Top