readCoins
readCoins(
entity):number
The coins in the entity’s wallet, 0 where it has none: what a shop’s
when checks against a price, readCoins(player) >= price. A read, so
it takes no authority and runs on a page as well as in a room. In a
view, useWallet() reads the player’s coins.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
entity |
Entity |
Returns
Section titled “Returns”number