Skip to content

Dont generate responses when no npc is in range#122

Open
mikastamm wants to merge 6 commits intoart-from-the-machine:mainfrom
mikastamm:feature/distance-checking
Open

Dont generate responses when no npc is in range#122
mikastamm wants to merge 6 commits intoart-from-the-machine:mainfrom
mikastamm:feature/distance-checking

Conversation

@mikastamm
Copy link
Copy Markdown
Contributor

Checks the distance of each participant during a conversation, prevents them from speaking if they are too far away
There are two modes for this:

  • If there is at least one npc in range to talk, an event gets added about who is too far away & cant reply
  • If all are too far away, the players input is not sent to the llm at all

This is done by sending a bool KEY_ACTOR_ISOUTSIDETALKINGRANGE along for each npc in the conversation.

Additionally, there is an option to remove npcs from conversation if they get even further away. This will not remove npcs when there is only one left (It wont end the conversation)

MCM Options added:

  • A bool wether to remove far away npcs
  • A distance threshold for removal
  • A distance threshold for silencing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant