Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
NPC (Script Component)
Updated 3 days agoThis is the base-component you place on your interactable NPC object. Typically you include an Interact Trigger and link it to the NPC script's Welcome() method, however you can also use other triggers to initiate a conversation with the player and NPC.
Name Box is where you input the name of the NPC that will show up with the textbox when triggering dialogue with it.
Welcome is where you will place the NPC Chat Node for the initial/first message you see when starting dialogue with the NPC. See NPC Chat Node info page for more details.
Spawn Scrap Pos is a transform reference where any scrap spawned by the NPC (example, from shop trading or buying, or quest rewards when set to drop instead of give) will appear.
Animator is where you reference the NPC's animator (if applicable). Currently hardcoded to trigger Talk animation state when starting dialogue, and trigger Idle animation state by default or when ending dialogue.
NPC Node is where you place an NPC Node scriptable object, only applicable for NPCs with Unlockable Objects (does not affect saveable quest or dialogue data).
Unlockable Objects is a list of game objects intended to be set as active depending on certain dialogue events with the NPC. Objects are unlocked through the NPC Node's UnlockObject(int) method, based on index of the desired object(s) to unlock in the list.