So a while ago I asked a question about how to handle and abundance of events that happen in games like explosions. Someone replied to me saying that Scripts would be best used for stuff like this and npcs. I know how to actually script in LUA but I’m dumbfounded on how to implement it into a game correctly.
Here’s my problems:
*If I wanted many many npcs with dialogue would I have a script for each npc?
*Would I create the NPC using the script or would I create it in the java code itself and then somehow give it it’s dialogue through the script.
*For events, would I just have the script create instances of an object that I defined in Java and have a move method in my npcs for the cinematic movement of npcs?