itch.io is community of indie game creators and players

Devlogs

Integrating Action into NPC Interaction (Amy)

City of Abominations (2021)
A downloadable game for Windows and macOS

Hello again!  This is Amy, and today I'd like to talk more about what I've been working on with the narrative team.  Another feature they wanted to incorporate was the ability to kill NPCs after interacting with them.  This required some restructuring so that the dialogue manager would be able to access the NPC game object itself, in addition to the character's lines.  However, this ended up being a simple fix.  The option to kill is treated as one of the dialogue options given to the player, and sets a wasKilled boolean to true if selected.  When the dialogue manager has finished displaying all the dialogue, the NPC game object will be destroyed.

Download City of Abominations (2021)
Leave a comment