How to coin.value issues - Javascript (SOLVED)

How can I get the value of the coin that my hero has?

image

I need to get the value of the coin, to do:

if (coin.value == 300) {
     // Do something ...
}

ERROR:

image

Any idea how to do it?
In any programming language it will help me.

How can I get the value of the coin that my hero has?

Gold is stored as a total, not as an individual item.
if (hero.gold > 300) {}

ERROR:

Are you sure a coin is found? Do you need to test for the existance of coin?

1 Like

I have already solved and completed this, thank you very much! :smiley:

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.