Player Experience Upgrade
version 2/111127 by Aaron Reed
Chapter - Number Choices
Before printing the name of something (called macguffin) while asking which do you mean (this is the Numbered Disambiguation Choices preface disambiguation objects with numbers rule):
if disambiguation-busy is false:
now disambiguation-busy is true;
add macguffin to the list of disambiguables, if absent;
now the disambiguation id of macguffin is the number of entries in list of disambiguables;
say "[before disambiguation number text][the number of entries in list of disambiguables][after disambiguation number text]".
After printing the name of something while asking which do you mean (this is the Numbered Disambiguation Choices cleanup disambiguation-busy flag rule):
now disambiguation-busy is false.
Before asking which do you mean (this is the Numbered Disambiguation Choices reset disambiguables rule):
repeat with item running through list of disambiguables:
now disambiguation id of item is 0;
truncate list of disambiguables to 0 entries.