How can I get the value of the coin that my hero has?
I need to get the value of the coin, to do:
if (coin.value == 300) {
// Do something ...
}
ERROR:
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?
I need to get the value of the coin, to do:
if (coin.value == 300) {
// Do something ...
}
ERROR:
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
?
I have already solved and completed this, thank you very much!
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.