Hello!
You may’ve seen my WIP (If not, http://javadaemon.com/pictures/pokemon_engine.png).
I’m at a point where I’d really much like chatting with NPC’s. This is hard though, because both NPC’s needs to be able to chat, aswell as signs, and other objects that has text written on them in-game.
I’m planning on not making the player talk at all.
Here’s how I want the dialouges to be: When the player interracts with something a box comes up with text it in. The box can upon input be refreshed to that the player can view the next line of text. I also want actions available like different directions of the dialouge depending on simple input like yes/no, and items given to the player upon reaching a point in a dialouge (a line).
I’m using a design pattern where data objects are not responsable for drawing themselves, instead I have a different object (screen) that draws all the things to the screen. My problem is, how do I attack this?
I’m sure I want some kind of dialouge object that both NPCs and Tiles can posses, and I might want a different object, in the screen, that draws the currenty active dialouge.
Thing is I have never done anything like that before, and I’m very unsure how I craft the system, because I obviously need to be able to modify the player from the dialouges, and I also need to be able to get input from the player (the screen has access to both the player, and the input).