Integrating Action into NPC Interaction (Amy)


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.

Get City of Abominations (2021)

Leave a comment

Log in with itch.io to leave a comment.