Original Post
Hi!
I'm making a 2D game with C++/DirectX 9 (I decided not to use a Game Engine). It's similar to old RPG games.
I need to program the dialogs and events in the game. I've looking info and it says a good way to do this is using Script language Lua. I have a little knowledge about scripting, but my real question is: how do I implement this?
for example:
NPC 1 moves to NPC 2
NPC 1 says: "It's cold today"
NPC 2 answers: "Yes"
NPC 1 ....
....
It's like a cinematic, you only see the character chating and moving until they finish.
If you had an example of this, it would be great. If not, please explain to me how I can implement this in Lua.
Also show messages, move a character and load scenario are implemented in C++
Thanks for your time.
I'm making a 2D game with C++/DirectX 9 (I decided not to use a Game Engine). It's similar to old RPG games.
I need to program the dialogs and events in the game. I've looking info and it says a good way to do this is using Script language Lua. I have a little knowledge about scripting, but my real question is: how do I implement this?
for example:
NPC 1 moves to NPC 2
NPC 1 says: "It's cold today"
NPC 2 answers: "Yes"
NPC 1 ....
....
It's like a cinematic, you only see the character chating and moving until they finish.
If you had an example of this, it would be great. If not, please explain to me how I can implement this in Lua.
Also show messages, move a character and load scenario are implemented in C++
Thanks for your time.