I do not know MSX basic.Frank B wrote: I don't know basic. You'd need a function which returns a value and a calling routine above it with a switch statement or a load of ifs.
From what i remember for AppleSoft Basic, there are GOSUB tbat are similar to function.
Also the scope of a variable in Basic is very simple, there is only one... that's global scope. So your return value can be read everywhere.
My guess at my Basic game now as I forgotten it, was that a huge loop using GOTO wrapping INPUT and bunch of IF then GOSUB statements.
Well, wonder if an infant can do of that, what can I say.....