I have 3 main NPCs that can be randomly on different maps depending on time of day, and I'm wanting a way to indicate to the player via an icon above its head to denote new/available chat dialog.
My issue is thinking of the logic for checking that, since the way I'm seeing it I can do this 2 ways(note, this is not accounting for a plugin i'd likely need for the icon itself, just the logic leading up to it)
Right now I'm thinking option 2 is the best, since I will have different routes. That or a combination of the two. This will be a massive pain but it's all the more reason to not bother implementing all the dialog until the gameplay is actually ready for it.(Thank you yanfly for teaching me its better to fully make the gameplay part itself then worry about the inbetween scenes and dialog)
The plugin I will use is probably going to be this one by VisuStella.
My issue is thinking of the logic for checking that, since the way I'm seeing it I can do this 2 ways(note, this is not accounting for a plugin i'd likely need for the icon itself, just the logic leading up to it)
- Make all dialog based off 2 variables, the
andCode:
dialog available, so ifCode:dialog_read, then show the icon. Issue is this is very linear and doesn't allow for route specific dialog. Each time you read dialog dialog_read goes up, and maxes out when it meets dialog_available.Code:dialog_available > dialog_read - Manually check for each conversation_available switch, and compare it to each conversation_read switch to see if there is any available. Results in 2 switches for each, which sounds like it can be cumbersome.
- Occurred to me- use scripting to make a little array of dictionaries like
and I can check off of that using some if(!convo.read) logic, but I'm not in the mood to make a plugin just for this.Code:
{conversation name: "Joe meets sandwitch", read: false"}
Right now I'm thinking option 2 is the best, since I will have different routes. That or a combination of the two. This will be a massive pain but it's all the more reason to not bother implementing all the dialog until the gameplay is actually ready for it.(Thank you yanfly for teaching me its better to fully make the gameplay part itself then worry about the inbetween scenes and dialog)
The plugin I will use is probably going to be this one by VisuStella.