That's cool. Thank you.
MiniC N.Edition (JS-like Scripting Language)
I'll push out an update soon. Basically, what I did was to set a variable whenever you do "xyz as 'int'" that tells the variable if it gets cast to a string, to act like an integer. I haven't tested it and won't be testing it right now because I'm redesigning my house and I don't have much time to push this fix in.
To iterate, keep your code the way you have it right now. That's the only way this will work because all numbers are a float as far as the VM is concerned.
Edit: I pushed out the update, but I can almost guarantee there is probably a bug somewhere. So if you have any odd or unexpected output, alert me and I'll attempt to fix whatever it is.
It still returns it as floating point on glfw.
For my code it also never takes the code path for Case "string","str" (line 1374).
Thank you for your help :)
I am stupid. I had the intention to do something specific when I got to the code and then I totally ignored what I intended to do.
For now this should work.
(something as 'int') as 'str'
I'll attempt to do what I actually intended soon.
Dude, thanks! That works.
I totally get now why, now I feel stupid xD
I am planning on shipping a demo soon, and the whole battle system wouldn't have worked without this :)