Skip to content

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?

7 points6 comments
Open on Reddit
About this post
Posted
Archived
Score
7 · 100% up
Kind
Text
ID
1xt0b48

Author

52
posts
68
comments
46
media
View profile

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

1 points

I feel like the simplest approach is probably the answer? If positive karma, these things happen. Otherwise, other things happen

0 points

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

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.