NPC Chat Options are used by NPC Chat objects as a settings profile, these options can be customized to allow for different use cases.

ScriptableObject Location:

Assets\TurnTheGameOn\NPC Chat\Data\NPCChatOptions.asset

Inspector Variables:

Variable Description
Disable On Complete If enabled, the NPC Chat object will be disabled when the player completes the chat conversation.
Destroy On Complete If enabled, the NPC Chat object will be destroyed when the player completes the chat conversation.
Allow Chat If Other Is Active If enabled, multiple NPC Chat objects will be allowed to be triggered at the same time..
Reset Chat Manager Index On Start If enabled, the assigned Chat Manger will have the corresponding Conversation Index reset to 0 when the scene starts.
Start/Stop Chat Trigger Options Settings to trigger chat by collision, mouse, joystick or keyboard input.
Chat On Collision Allow OnCollisionEnter to trigger chat.
Close On Trigger Exit Allow OnCollisionExit to trigger chat.
Close On Mouse Or Key Up Complete scrolling chat page or close chat action when mouse or key up occurs.
Chat On Mouse Up Trigger chat OnMouseUp.
Chat On Key Up Set KeyCode to be used to trigger chat On Key Up.
Chat On Key Down Set KeyCode to be used to trigger chat On Key Down.
Chat On Joystick Up Set KeyCode to be used to trigger chat On Joystick Button Up.
Chat On Joystick Down Set KeyCode to be used to trigger chat On Joystick Button Down.
Distance Check If enabled, chat can only be triggered if the player is within the distance to chat range.
Distance To Chat The max distance the player can be away from the NPC Chat object to trigger chat.
Distance Check Offset Offset the local position of the NPC Chat object’s distance check.
Scrolling Text Enable scrolling dialogue text.
Text Scroll Speed Controls dialogue scroll speed.
Outline If enabled, assigned render objects will use the outline material and settings.
Outline Colors Outline colors for various NPC states.
In Range Color Outline color used when player is in range of NPC Chat.
Out Of Range Color Outline color used when player is out of range of NPC Chat.
Mouse Over Color Outline color used when player is in range of NPC Chat and mouse is over the collider.
Dialogue Color Outline color used when player is in range of NPC Chat dialogue is active.
Mesh Outline Settings Mesh ans Skinned outline state sizes and material reference.
In Range Size Outline size used when player is in range of NPC Chat.
Out Of Range Size Outline size used when player is out of range of NPC Chat.
Mouse Over Size Outline size used when player is in range of NPC Chat and mouse is over the collider.
Dialogue Size Outline size used when player is in range of NPC Chat dialogue is active.
NPC Outline Outline material for mesh and skinned mesh renderer objects.
Sprite Outline Settings Sprite outline state sizes and material reference.
In Range Sprite Size Outline size used when player is in range of NPC Chat.
Out Of Range Sprite Size Outline size used when player is out of range of NPC Chat.
Mouse Over Sprite Size Outline size used when player is in range of NPC Chat and mouse is over the collider.
Dialogue Sprite Size Outline size used when player is in range of NPC Chat dialogue is active.
NPC Outline Sprite Outline material for sprite renderer objects.

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Please do not use this for support questions.
For customer support, please contact us here.

Post Comment