Sorry for resurrecting and old thread, but I think I may have something to add here:
In “Hoarding Gold” (the level before Bookkeeper), gold is counted using a variable
totalGold = 0
coin = hero.findNearestItem()
# Sammle die Münzen auf.
# Addiere den Münzwert (value) zur Goldsumme (totalGold) hinzu. (für mehr Details siehe Anleitung)
totalGold += coin.value
# Erhalte seinen Wert mit: coin.value
if totalGold >= 25:
# Dies bricht aus der Schleife aus und fährt mit dem Code darunter fort.
# Die Schleife ist beendet, jetzt wird der Code nach der Schleife ausgeführt.
Also, the hints for this level suggest to report the final amount of gold using the variable
And in “Bookkeeper”, the counting method is used again for number of defeated enemys:
defeated = 0
enemy = hero.findNearestEnemy()
if enemy.health <= 0:
defeated += 1
I believe it would come natural to most people that they should use the same technique for counting the coins - and reporting it to Naria! That also resulted for me in this perceived bug of hero reporting the counted gold instead of current amount => wrong, because he had collected an extra coin in passing, like you said:
hero.gold function isn’t explicitly mentioned/explained, so maybe it would be a good idea to say it in the hints that counting isn’t necessary in this level and people won’t run into this problem anymore - or more postings for this topic