Transferring Text into MV

Hi all, I'm wondering if there is a way to transfer text from a separate document (word, notepad, or other word processors) into MV other than copy pasting a line at a time? What I will do is write out the longer scenes of my game in a 'script' style. When I tried this with a previous project I went line by line copying and pasting lines and manually selecting the faces. That worked, but was rather tedious.

I'm wondering whether there is a quicker method. Ideally I would type it out as a script and each new line would have some code that would tell the program that a new line has started and what face to display. 


Thank you for your help.
I pulled this from the master call list we have on sticky.


You do have to watch your spacing,  and im pretty sure you can figure out what does what.


$gameMessage.setFaceImage('Actor1',0)     


$gameMessage.setBackground(0)


$gameMessage.setPositionType(2)                   


$gameMessage.add(" This shows up in row 1")


$gameMessage.add(" This shows up in row 2")


$gameMessage.add(" This shows up in row 3")


$gameMessage.add(" This shows up in row 4")


Also,  if you're going to do it like that,  then here is the script call for wait.


$gameInterpreter.wait(frames)


So, if you seriously wanted to,  you can code your own script in notepad or something.  I suggest first learning how it works and interacts. 
Thank you for your reply. There are still two things I am unclear on:

1: What is the script command for 'player click a button'? So if I have the dialogue:

Bob: Hi Mary


Mary: Hi Bob


I tried writing it as:


$gameMessage.setFaceImage('Actor1',0)     


$gameMessage.setBackground(0)


$gameMessage.setPositionType(2)                   


$gameMessage.add("Hi Mary")


$gameMessage.setFaceImage('Actor2',0)     


$gameMessage.setBackground(0)


$gameMessage.setPositionType(2)                   


$gameMessage.add("Hi Bob")

When I do that it displays the second face and puts both messages in a single box. I would think there would need to be some kind of code after $gameMessage.add("Hi Mary"), but I can't figure out what it is so I can get it to display: "Hi Mary", player clicks a button, "Hi Bob" (as if I had put in two different show text messages.


[SIZE=10.5pt]2: Just doing test work with my first scene I noticed the script box accessed via creating an event, going to the third window, and clicking script, can fill up pretty quickly. Is there a way to access a larger script box, or do I need to make my own plugin to do that (which I’ve done a test of so I know I can get a plugin to work, just wondering if there is a quicker way).[/SIZE]


[SIZE=10.5pt]Thank you very much.[/SIZE]
You can always put a wait statement in between.

I pulled this from the master call list we have on sticky.


You do have to watch your spacing,  and im pretty sure you can figure out what does what.


$gameMessage.setFaceImage('Actor1',0)     


$gameMessage.setBackground(0)


$gameMessage.setPositionType(2)                   


$gameMessage.add(" This shows up in row 1")


$gameMessage.add(" This shows up in row 2")


$gameMessage.add(" This shows up in row 3")


$gameMessage.add(" This shows up in row 4")


Also,  if you're going to do it like that,  then here is the script call for wait.


$gameInterpreter.wait(frames)


So, if you seriously wanted to,  you can code your own script in notepad or something.  I suggest first learning how it works and interacts. 
You can always put a wait statement in between.



1: Wouldn't that just create a wait based on a period of time, not user input?
2: When I've tried $gameInterperter.wait(frames) I get an 'interpreter is not defined' error. If I use this.wait(frames) or $gameMap._interpreter.wait(duration); the game will wait, but only after the text commands have been executed (characters will be stuck in place for however long I set the frames/duration).
I wouldn't try it with script calls at all.  I think Faytless may have misunderstood what you're trying to do.


There are some scripts out there that will let you load your text from a word document.  There may also be a script that will do auto line breaks for long messages.  I think Modern Algebra's message system does it, but I can't remember if it's the Ace version or the XP version.
Being Shaz has said Faytless may have misunderstood, let me clarify:

What I want to do is write my game out as a play script. At this stage I'm not worried about the coding, I just want to write the story.

So let's say I have the intro:

Mary: Hi Bob.
Bob: Hi Mary.
Mary: How was your weekend?
Bob: It was good. How was yours.
Mary: It was okay. I fought a dragon.

Now I can get into RPG Maker via pasting and selecting the faces as such: Conversation.png


That works fine, but is a more time consuming than I would wish. So I was hoping there would be a quicker method. The closest I came is the following plugin:

 


(function() {
var _Game_Interpeter_pluginCommand = Game_Interpreter.prototype.pluginCommand;
Game_Interpreter.prototype.pluginCommand = function(command, args) {
_Game_Interpeter_pluginCommand.call(this, command, args);

if(command == "conversation")

{
$gameMessage.setFaceImage('Actor3',1), $gameMessage.setBackground(0), $gameMessage.setPositionType(2), $gameMessage.add("Hi Bob.")
$gameMessage.setFaceImage('Actor1',0), $gameMessage.setBackground(0), $gameMessage.setPositionType(2), $gameMessage.add("Hi Mary")
$gameMessage.setFaceImage('Actor3',1), $gameMessage.setBackground(0), $gameMessage.setPositionType(2), $gameMessage.add("How was your weekend? ")
$gameMessage.setFaceImage('Actor1',0), $gameMessage.setBackground(0), $gameMessage.setPositionType(2), $gameMessage.add("It was good. How was yours. ")
$gameMessage.setFaceImage('Actor3',1), $gameMessage.setBackground(0), $gameMessage.setPositionType(2), $gameMessage.add("It was okay. I fought a dragon.")
}
};
})();


That works, but displays the conversation in one box and only displays the final face being called. I am hoping there is a command (but am beginning to suspect that there is not) that would require a user click any button before continuing to the next $gameMessage.add.

There are some scripts out there that will let you load your text from a word document.  There may also be a script that will do auto line breaks for long messages.  I think Modern Algebra's message system does it, but I can't remember if it's the Ace version or the XP version.



When I initially began this search I saw one system for VX Ace, but none that I could find for MV.
The More Escape Codes plugin that ships with the engine will let you do something like \f[1] as part of your text, and it will show the face currently assigned to actor 1.  So that removes the need to manually select it.


But you would still have to copy/paste your text into individual text boxes.
Thank you Shaz. It might not be everything, but it will be a lot faster than what I was doing.
It's also nice because it doesn't force you to do a dozen conditional branches to show the correct face if you let your player choose an avatar for the character.  And it also lets you use different expressions, within a single text message.  It's still not quite what you're after though with the auto line breaks.  Might be worth taking a look at the message system plugins and seeing if you can find one that will at least let you paste the whole message as one long string and do line breaks.

Original thread: https://forums.rpgmakerweb.com/threads/transferring-text-into-mv.64560/