0

I am designing a RPG in C. It's gotten to the point that I've implemented a scripting system. I decided to embed Lua into my game. Currently I register a set of commands in C that I call in Lua.

How do I block an Lua script from running until a command's done? For instance when a textbox appears, the script should stop running until the player presses ENTER and clears the textbox. Or when a wait function is issued.

How do I accomplish this? Preferably in C.

Toto
  • 89,455
  • 62
  • 89
  • 125

0 Answers0