it is a type missmatch, $BankMoney will be set to String on the first initiationWe encountered the issue with deposits during testing. We couldn't find any explanation for the money to behave like this in any forum, and nothing in the code suggests that it should even be able to do it. (We are definitely open to hearing from anyone familiar with Twine/Sugarcube who has a solution.) We did, however, discover that the error does not occur if you perform a withdrawal before attempting to deposit. This is why you have to "activate your card" by withdrawing money before you can deposit any money.
You seem to indicate that you didn't withdraw any money, so the error is expected. In your next play, withdraw the lowest amount and then you should be able to proceed without issue.
you need to replace <<set $BankMoney to $depositamt>> with <<set $BankMoney to parseInt($depositamt)>>
You must be registered to see the links
you should read up on this, cause you should also check if the value is even a number and not some random text
Last edited: