Write event contents in a seperate text file

I'm looking for a plugin that lets me write out the event contents (ONLY the contents, no trigger or conditions or whatever) in a separate text file, instead of creating the event commands in RPG Maker MV itself. There's a similar plugin already in existence, in which you can use text files that will load in the text message commands, but this doesn't include everything in an event.


I want everything an event can have, all the control variables, message windows, call common events, show pictures, even other script calls etc. and have it in a neat little text file. This file will be loaded using a script call in an event.


The event would look like this:


kqa5HSM.png



It will then load this text file, and run the contents like actual event commands. The text file would look like something like this (excuse my improper use of brackets):


O18l1uF.png



Why do I want this plugin?


Because I'm going to add a lot of writing (50k words) to my project, and I simply want to make the process more streamlined (it's much easier to add text in a simple text file, than to create a text box in MV then add the text), and to keep in mind any future translations. It will also make copy and pasting - AND replacing - so much easier.


I ask that it be compatible with Yanfly's Message Core plugin.


To sum it up:


 - Have an external text file contain the event contents


 - Have a script call load this text file in a regular/common event to run the event commands


 - Be compatible with Yanfly's Message Core plugin


 - And uhm, have a separate folder for the text files, for organization's sake
Sorry I don't have anything to add, but this would definitively be a useful idea for my game as well. It'd make eventing a lot more efficient in my project. 
@Celianna oh a interesting challenge I could actually try to do that this not REALLY complicated! it's kinda easy to read 


it's just more complicated to make it as a actuall Event processing since Event pages  kinda works with Array you actually shift the command
Looks like an interesting plugin to create; I'll keep it in mind personally, no promises yet. By the way, could you link the plugin if possible that load the text commands?


@Celianna
Looks like an interesting plugin to create; I'll keep it in mind personally, no promises yet. By the way, could you link the plugin if possible that load the text commands?


@Celianna



It's this plugin right here. Unfortunately I found it rather impractical since I need a Json editor to even make/edit the text, and it doesn't include event commands, only the text will be 'imported' so to speak.


@Nio: I can cut down on my wishlist if it's too difficult! 😛
It's this plugin right here. Unfortunately I found it rather unpractical since I need a Json editor to even make/edit the text, and it doesn't include event commands, only the text will be 'imported' so to speak.


@Nio: I can cut down on my wishlist if it's too difficult! 😛

well it's more that you actually ask for a preBuilt 'language' haha this mostly regexp so this could be douable I will check how to do it.
Well let's put it this way; if there was a way to export the event's contents in RPG Maker MV into a text file, what would it look like?


That's the text file I want to create! 😀
Well let's put it this way; if there was a way to export the event's contents in RPG Maker MV into a text file, what would it look like?


That's the text file I want to create! 😀

well let put a actual JSON wich look like this lol : 

Spoiler
"events": [
null,
{
"id": 1,
"name": "save",
"note": "",
"pages": [
{
"conditions": {
"actorId": 1,
"actorValid": false,
"itemId": 1,
"itemValid": false,
"selfSwitchCh": "A",
"selfSwitchValid": false,
"switch1Id": 1,
"switch1Valid": false,
"switch2Id": 1,
"switch2Valid": false,
"variableId": 1,
"variableValid": false,
"variableValue": 0
},
"directionFix": false,
"image": {
"characterIndex": 0,
"characterName": "",
"direction": 2,
"pattern": 0,
"tileId": 0
},
"list": [
{
"code": 101,
"indent": 0,
"parameters": [ "", 0, 2, 1 ]
},
{
"code": 401,
"indent": 0,
"parameters": [ "do you want to sleep here?" ]
},
{
"code": 102,
"indent": 0,
"parameters": [
[ "Yes", "No" ],
1,
0,
1,
2
]
},
{
"code": 402,
"indent": 0,
"parameters": [ 0, "Yes" ]
},
{
"code": 243,
"indent": 1,
"parameters": [ ]
},
{
"code": 242,
"indent": 1,
"parameters": [ 200 ]
},
{
"code": 223,
"indent": 1,
"parameters": [
[ -68, -68, -68, 0 ],
200,
true
]
},
{
"code": 221,
"indent": 1,
"parameters": [ ]
},
{
"code": 352,
"indent": 1,
"parameters": [ ]
},
{
"code": 0,
"indent": 1,
"parameters": [ ]
},
{
"code": 402,
"indent": 0,
"parameters": [ 1, "No" ]
},
{
"code": 0,
"indent": 1,
"parameters": [ ]
},
{
"code": 404,
"indent": 0,
"parameters": [ ]
},
{
"code": 0,
"indent": 0,
"parameters": [ ]
}
],

the  part you would probably want it's the Event one to process.


it's  this actual part who are kinda hard to figure out but I can try XD
Sounds like a reverse of my Ace Export Event Contents script, which I never did get around to converting to MV.


@nio kasgami - she doesn't want to use json.  She wants a plain old text file.
Sounds like a reverse of my Ace Export Event Contents script, which I never did get around to converting to MV.


@nio kasgami - she doesn't want to use json.  She wants a plain old text file.

and you misread what I told her


in simple what I'm trying to explain to her it's the actual conversion can be tricky since they use numeric code for make the method lol
yep - you'll have to read the text and determine what code it should be, along with all the parameters.  Easy in theory, but there's a lot of little things to consider (if she uses a change variable command, is she going to provide a number, another variable, or a formula?)


going to be a big script 🙂


I would totally look at doing this, but you've had two people say they're interested already.


Haha - and don't forget you'll want to ensure the text files get included in a deployment, so programatically adding all the file names 😀
yep - you'll have to read the text and determine what code it should be, along with all the parameters.  Easy in theory, but there's a lot of little things to consider (if she uses a change variable command, is she going to provide a number, another variable, or a formula?)


going to be a big script 🙂


I would totally look at doing this, but you've had two people say they're interested already.



Had no idea this was a huge request! If it is, I don't mind moving it to classifieds.
You'd be looking at a 2000+ line script I'm guessing.  Not really "big" - just "involved".
Haha, in my quest to make it easier for me, I make it harder for others.


By the way Nio, I only need the event contents, no need for conditions/direction/trigger etc.


I also wouldn't mind to shave off a bunch of event commands. The most important ones, to me, are show text, choices, switches, variables, pictures (show, erase, move etc.), common events, fade in/out, and BG/SE. Everything else can be ignored haha.
Haha, in my quest to make it easier for me, I make it harder for others.


By the way Nio, I only need the event contents, no need for conditions/direction/trigger etc.


I also wouldn't mind to shave off a bunch of ee.nt commands. The most important ones, to me, are show text, choices, switches, variables, pictures (show, erase, move etc.), common events, fade in/out, and BG/SE. Everything else can be ignored haha.

Then it's more simplier and yes I think it's will be a big thingy I will try to mock up some idea for it I do know that Hudell literally created a snake like system for events I will ask him some tips about it.


if I explain he literally created a Writer friendly event system 🙂 .


I'm having college but if you can wait a little 2-3 weeks I will be one month in holidays so I can work on it.
Awesome Nio, go for it! There's no rush for it or anything. And wow, a month holiday?


And yes, Hudell does seem to make pretty useful plugins.
Awesome Nio, go for it! There's no rush for it or anything. And wow, a month holiday?


And yes, Hudell does seem to make pretty useful plugins.

Then sure I will try to do a fast mock up of the plugin structure and I will try to make some test then 🙂


and yes one month lol college give us a lots of free time between the session for relax a little.


for pay or not  it's up to you 🙂  

Original thread: https://forums.rpgmakerweb.com/threads/write-event-contents-in-a-seperate-text-file.71372/