Using a karma system to dynamically change NPC schedules and encounters in a 2D visual novel
I'm a solo indie developer working on a 2D visual novel using Python and Pygame.
One system I've been developing is a karma mechanic that goes beyond simply changing dialogue options.
The idea is to have NPC schedules, encounters and even character availability change depending on the player's alignment.
For example, a positive karma route could have a completely different NPC schedule from a negative karma route. Some characters might appear in different locations, while others could become unavailable entirely.
This would encourage replayability, since players would need to explore different paths to experience everything.
I'm still working on the implementation, but I'm curious how other developers approach this kind of system.
Would you handle NPC schedules through a data-driven system with different configurations, or would you build them around conditional logic?
About this post
- Posted
- Archived
- Score
- 7 · 100% up
- Kind
- Text
- ID
- 1xt0b48
4 comments
I would actually create a calendar development tool / database and give NPCs a schedule, location, status, and mood. And then create caveats of that schedule for stats like “goes to the gym Monday 9-10am / -1h if status is tired, drunk / +15m if angry, upset, inspired” and then I would have your characters karma effect your choices with them and you apply status effects to NPCs.
Extend the calendar as needed like “never misses” or “apply status: frustrated” to those events
I feel like the simplest approach is probably the answer? If positive karma, these things happen. Otherwise, other things happen
That's basically what I'm doing right now. I'm also planning to make positive or negative karma determine which characters you can encounter. So the experience could change quite significantly depending on your choices, rather than just following a simple Path A or Path B XD
I think if you could do some sort of decision tree, that'd work wonders