I took a look at the ASH and CLI change history and compiled a list of changes that affect scripting. There were plenty of bug fixes, and some new CLI commands were added that you probably wouln't use in a script ("survival", for example), but the following might be of interest:
ASH:
1) int_to_string (and automatic coercion to strings) no longer puts commas in the result string.
2) Declaration with simultaneous initialization:
int var = 1;
3) There is a new data type: the "slot". This designates a place to wear a piece of equipment.
Valid slots:
hat
weapon
off-hand
shirt
pants
acc1
acc2
acc3
familiar
Functions that manipulate the "slot" type:
int slot_to_int( $slot[pants] )
slot int_to_slot( 6 );
string slot_to_string( $slot[pants] )
...automatic coercion to a string in a context that needs a string
item current_equipment( $slot[pants] );
boolean unequip_slot( $slot[acc2] );
boolean equip_slot( $slot[acc2], $item[toy train] );
4) You can ask KoLmafia how many of an item it can create with available ingredients.
int creatable_amount( $item[chef-in-the-box] )
CLI:
1) Outfit checkpoints:
checkpoint - saves current equipment set into a special checkpoint outfit
outfit checkpoint - restores to saved outfit.
ASH:
1) int_to_string (and automatic coercion to strings) no longer puts commas in the result string.
2) Declaration with simultaneous initialization:
int var = 1;
3) There is a new data type: the "slot". This designates a place to wear a piece of equipment.
Valid slots:
hat
weapon
off-hand
shirt
pants
acc1
acc2
acc3
familiar
Functions that manipulate the "slot" type:
int slot_to_int( $slot[pants] )
slot int_to_slot( 6 );
string slot_to_string( $slot[pants] )
...automatic coercion to a string in a context that needs a string
item current_equipment( $slot[pants] );
boolean unequip_slot( $slot[acc2] );
boolean equip_slot( $slot[acc2], $item[toy train] );
4) You can ask KoLmafia how many of an item it can create with available ingredients.
int creatable_amount( $item[chef-in-the-box] )
CLI:
1) Outfit checkpoints:
checkpoint - saves current equipment set into a special checkpoint outfit
outfit checkpoint - restores to saved outfit.