Hey everyone!
Been working on an RPG and getting the basic system in place so I can get on with designing items, encounters, levels, etc.
The last hurdle I'm struggling to envision is a sort of governance system for altering stuff like the presence of absence of certain NPCs, the impacts of certain story characters deaths, changing stuff off the basis of certain global story variables, etc.
I've also been making the inventory/gear/etc system and while I wanted to keep stuff silo'd its honestly been a damn headache and part of me wishes stuff had stayed unified in one place more. It works but there was a lot of wasted time involved.
I have both the Dialogue system and that ahead of me (I'd call it an "Event" system but the ambiguity with Events sorta fucks with what I'm asking about so let's call it the Story system). The Story system and Dialogue both need to do similar things in my game:
- give and take items from the player and NPCs (and do some exception handling)
- spawn in NPCs/give them information that will impact their State Trees
- flip global variables in response to player choice\outcomes (e.g. certain NPCs' deaths)
- alter NPC hostility/friendliness
So I ask myself—why make these 2 different systems? My Dialogue System will include both barks that float over heads and pop-up dialogue for committed conversations, but if I'm going to have tons of dialogue options that loop into my Story system anyway, maybe I put them both inside the GameState / GameInstance (although I guess that's a different question really) and let it run from there? Unified spot for everything.
I know that you generally want very segmented systems but here I'm honestly struggling to see the advantage. I'd keep the Events/Functions very silo'd and well commented to prevent it feeling overloaded.