Basic Crimbo 2015 Tracker

For script writing
Post Reply
User avatar
cheesecookie
Inscrutable Pi
Posts: 261
Joined: Mon Nov 24, 2014 4:53 pm

Basic Crimbo 2015 Tracker

Post by cheesecookie » Tue Dec 15, 2015 11:18 pm

Here is a basic Crimbo 2015 tracker. It will probably get fancier, maybe.

Anyway, svn below. Set afterAdventureScript to crimbo2015.ash to use (or have your existing postAdventure script call crimbo2015, whatever).
If running adventures in the Relay Browser, make sure to set in the preferences under "Look & Feel", "Relay Browser" the setting "Run afterAdventureScript after manual adventures".

After each adventure, a count will be reported (and it should tell you if a monster was added to the count). This info will be stored in kolmafia's data directory as the file "crimbo2015_"+username+".txt", where the first value is Elf and the second value is Reindeer.

Bugs: Anything that ends combat without a victory will probably screw up the tracking. Beep.

Code: Select all

svn checkout https://svn.code.sf.net/p/ccascend/code/crimbo2015
Automation added: Set your own postAdventure script, set up equipment, familiar (not off-hand, will do automatically) set up an autoattack or a CCS then: (You may want to equip Breathe Underwater or Pirate Fledges or starting a Jung Jar before starting).

Code: Select all

 ash import<crimbo2015> while(my_adventures() > 0) tryRandomPlace(); 
For automation, it is recommended that you handle areas like The Haunted Bedroom (where choice adventures follow), manually. You can enter a fight and call the following code after each combat (remember to separate wardrobes and the mistress).

Code: Select all

 ash import<crimbo2015> addMonster(last_monster(), equipped_item($slot[off-hand]))

Post Reply