- Joined
- Mar 2, 2014
- Messages
- 4,088
- Reaction score
- 2,680
- First Language
- Greek
- Primarily Uses
- RMMZ
Hello again community.
It happens that I want a plugin to be able to do two things (same plugin can do both).
1] Take text from file and add it on Array Variable of our choice. Then call it like \v[1][2] (third entry on variable 1)
2] ... if we leave a containing method intact. Otherwise decrypt the text accordingly (a coder can add utility to a method altering the code)
If it is a LOT of work for you, please don't bother. If you can find a solution easily I would appreciate the effort.
I always give credit on the original creators, I am looking for a solution I can use on a commercial product without any problem.
More details:
I want all the textboxes to include no text but variable calls, that will draw text from an Array Variable to begin with.
The text will be displayed by commands like \v[1][2] and will be no longer than a line.
Let's say we reserve Variable 1 to be that array full of strings.
But we should be able to define what variable we should use through parameter of plugin command.
Thus we shall populate variable 1 as an array, to include let's say 50 entries from a text file.
Textfile would be like:
First
Second
...
Fourty Ninth
Fiftieth Entry
============================
\v[1][0] shall contain "First"
\v[1][1] shall contain "Second"
...
\v[1][49] shall contain "Fiftieth Entry"
Most important part:
Reads text line and gets the string --> Pass it through a method that just echo it --> Put it into an array variable.
I wanna use this to apply encryption per device, thorough a decryption method.
In fact the strings will be encrypted from before in the textfile, and the method, will decrypt them before putting them into the array. You can leave this part to me, or anyone else using the plugin, just echo it as it is for now, (what goes in comes out) but I need a method to pass the text before loading stuff into the variable.
Now the plugin command should:
Choose variable number to load data into
Choose file path
Choose file name to open
It should locate the file we give through its path, take the data, pass them one by one through a method that does nothing to them (I will make the decryption code and everyone can use custom methods) and then put all rows of the file into the variable array until it reaches EOF.
This plugin can actually be used to use different languages (different text files) to the game so yeah... just some ideas, it can actually be used for localization purposes and easier text proofing and stuff.
Thanks in advance.
It happens that I want a plugin to be able to do two things (same plugin can do both).
1] Take text from file and add it on Array Variable of our choice. Then call it like \v[1][2] (third entry on variable 1)
2] ... if we leave a containing method intact. Otherwise decrypt the text accordingly (a coder can add utility to a method altering the code)
If it is a LOT of work for you, please don't bother. If you can find a solution easily I would appreciate the effort.
I always give credit on the original creators, I am looking for a solution I can use on a commercial product without any problem.
More details:
I want all the textboxes to include no text but variable calls, that will draw text from an Array Variable to begin with.
The text will be displayed by commands like \v[1][2] and will be no longer than a line.
Let's say we reserve Variable 1 to be that array full of strings.
But we should be able to define what variable we should use through parameter of plugin command.
Thus we shall populate variable 1 as an array, to include let's say 50 entries from a text file.
Textfile would be like:
First
Second
...
Fourty Ninth
Fiftieth Entry
============================
\v[1][0] shall contain "First"
\v[1][1] shall contain "Second"
...
\v[1][49] shall contain "Fiftieth Entry"
Most important part:
Reads text line and gets the string --> Pass it through a method that just echo it --> Put it into an array variable.
I wanna use this to apply encryption per device, thorough a decryption method.
In fact the strings will be encrypted from before in the textfile, and the method, will decrypt them before putting them into the array. You can leave this part to me, or anyone else using the plugin, just echo it as it is for now, (what goes in comes out) but I need a method to pass the text before loading stuff into the variable.
Now the plugin command should:
Choose variable number to load data into
Choose file path
Choose file name to open
It should locate the file we give through its path, take the data, pass them one by one through a method that does nothing to them (I will make the decryption code and everyone can use custom methods) and then put all rows of the file into the variable array until it reaches EOF.
This plugin can actually be used to use different languages (different text files) to the game so yeah... just some ideas, it can actually be used for localization purposes and easier text proofing and stuff.
Thanks in advance.
Last edited: