diff --git a/AndorsTrailEdit/js/importexport.js b/AndorsTrailEdit/js/importexport.js index 8e90dfc4a..0fbe0ca0e 100644 --- a/AndorsTrailEdit/js/importexport.js +++ b/AndorsTrailEdit/js/importexport.js @@ -30,6 +30,7 @@ var ATEditor = (function(ATEditor, _) { if (reply.nextPhraseID && reply.nextPhraseID.length === 1) { reply.replyLeadsTo = reply.nextPhraseID; } reply.hasRequirements = ATEditor.utils.hasValues(reply.requires); }); + o.showAdvanced = _.toBool(o.switchToNPC); }; prep.monster = function(o) { o.hasConversation = _.toBool(o.phraseID); @@ -94,6 +95,10 @@ var ATEditor = (function(ATEditor, _) { if (o.hasOnlyNextReply) { o.replies = [ { text: "N", nextPhraseID: o.nextPhraseID } ]; } + if (!o.showAdvanced) { + delete o.switchToNPC; + } + delete o.showAdvanced; delete o.nextPhraseID; delete o.hasOnlyNextReply; delete o.tree; diff --git a/AndorsTrailEdit/partials/edit_dialogue.html b/AndorsTrailEdit/partials/edit_dialogue.html index 118845091..853b07b55 100644 --- a/AndorsTrailEdit/partials/edit_dialogue.html +++ b/AndorsTrailEdit/partials/edit_dialogue.html @@ -55,6 +55,13 @@ +