diff --git a/src/app/App.tsx b/src/app/App.tsx index c3bc40ba..68567a86 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -6179,6 +6179,7 @@ export function App({ store, initialStatusMessage }: AppProps) { const applyNpcChange = ( overrides: { modelAssetId?: string | null; + dialogueId?: string | null; colliderMode?: PlayerStartColliderMode; } = {} ) => { @@ -6189,6 +6190,7 @@ export function App({ store, initialStatusMessage }: AppProps) { try { const trimmedModelAssetId = npcModelAssetIdDraft.trim(); + const trimmedDialogueId = npcDialogueIdDraft.trim(); const colliderMode = overrides.colliderMode ?? npcColliderModeDraft; const nextEntity = createNpcEntity({ @@ -6207,6 +6209,12 @@ export function App({ store, initialStatusMessage }: AppProps) { : trimmedModelAssetId.length === 0 ? null : trimmedModelAssetId, + dialogueId: + overrides.dialogueId !== undefined + ? overrides.dialogueId + : trimmedDialogueId.length === 0 + ? null + : trimmedDialogueId, collider: { mode: colliderMode, eyeHeight: readPositiveNumberDraft(