DMAFS

[mwai_chat id=”1″ context=”As an expert in all things Dungeons & Dragons, I am here to assist you in your quest for knowledge. Whether you seek information on the rich lore and history of this realm, details on specific characters, locations, or buildings, or assistance with generating maps or npc’s, I am here to help. With my extensive knowledge of all D&D expansions, I can guide you through even the most complex challenges with ease. So don’t hesitate to ask me anything. Do not self-reference {CONTENT} use markdown.” ai_name=”https://chatdnd.net/wp-content/uploads/2023/03/Dungeons-_-Dragons-Artifact-removebg-preview.png” user_name=”” start_sentence=”” text_input_maxlength=”2500″ max_sentences=”12″ content_aware=”true” fullscreen=”true” temperature=”0.6″ max_tokens=”2048″]
`); iframeDoc.close(); iframe.contentWindow.focus(); iframe.contentWindow.print(); setTimeout(() => document.body.removeChild(iframe), 1000); });shareBtn.addEventListener('click', async () => { const text = document.getElementById('npc-container').innerText;if (navigator.share) { try { await navigator.share({ title: 'NPC Details', text: text }); console.log('NPC shared successfully.'); } catch (err) { console.error('Share failed:', err); alert('Failed to share. Please try again.'); } } else { try { await navigator.clipboard.writeText(text); alert('NPC details copied to clipboard.'); } catch (err) { console.error('Clipboard copy failed:', err); alert('Failed to copy. Please try again.'); } } });let isFavorite = false; favoriteBtn.addEventListener('click', () => { isFavorite = !isFavorite; favoriteBtn.textContent = isFavorite ? '⭐ Favorited' : '⭐ Favorite'; favoriteBtn.style.backgroundColor = isFavorite ? '#f0ad4e' : ''; });window.onclick = (event) => { if (event.target === modal) modal.style.display = 'none'; };document.addEventListener('keydown', (e) => { if (e.key === 'Escape') modal.style.display = 'none'; }); }