Bank system help

Hi everyone, I am attempting to add a bank system to my game attached is a screenshot of what I came up with already however I keep getting an error when I try to access the bank.

I am trying to do the bank system as a script inside a common event (since I am still new to scripting).

Any help would be greatly appreciated.

Thank you in advance. 

Bank Error.png

Bank.png
Don't use script commands - every script command visible in that screenshot has an event command as well, and while eventing you should use the event commands wherever possible and the script command only for those parts where you need a script.

The event commands you should use are "Control Variable", "show text" and "Input Number". You don't need a single script command for those parts.
You cant just split 1 Command on 2 Lines. Therefor you need extra commnand not sure if it was this \ or that / .

But maybe it wasnt this, maybe it was this num input stuff, didnt used that.
I got it working. I just didn't want to use the control variables and switches since I didn't think you could have more than 100 switched like that (I'm an idiot and never saw "Change Max..." and could set 5000).

Bank.png

Original thread: https://forums.rpgmakerweb.com/threads/bank-system-help.44279/