After running what ever the user typed - you can print out what is on the lua stack. So when the user types 'print(1+2)', and you run that through Lua, '3' will be left on the stack and you just need to output it.
A Lua in game console.
-
- Goblin
- Posts: 224
- Joined: Thu Mar 15, 2007 10:05 am
- Location: Sydney, Australia
- x 7
Re: A Lua in game console.
"He'd never realized that, deep down inside, what he really wanted to do was make things go splat."
Terry Pratchett, Reaper Man
Terry Pratchett, Reaper Man