I wrote my JS script in external editor and its about 200 lines.
Then I want copy it into common event.
RPG Maker Editor wont alow me paste more than 12 lines into script window.
EventCommands -> 3dpage -> Advanced -> Scripts.
Above 12 lines its truncated.
Shift(alt, ctrl) + enter does not work to. Build-In MV help says almost nothing about this damn unresizable tiny box.
Is the only solution to make loooooooooooooooooooooong line mess to deal with this issue?
Vertical is limited but horizontal I think it's unlimited.
So you can write it in horizontal and put ; between every code
if script calls going one after another then it will execute script calls as one big script. So you can just split your code.
Thank you all.
Andar, unfortunatelly - I am totally lost with plugins. I dont understand their structure (I do not understand object oriented programming logic at all). I usually use Yanfly notebox eval code and keep it understable and readable with heap of comments for future use.
This script I am not able to solve with standard eval/notebox command. There are dozens of conditional branches and loop cycles. I expect whole script to be about 2k lines.
I have 10 actors. Each has 64 uniques self variables - which represent their mastery in profficiency). Each profficiency can have value 0-100 and based on its value will apply various bonuses.
For Example. Actor 1 - Animal Knowledge variable with value 15 should apply state which adds Animal Element resistance 100%-15%= 85% and also Amplify +15% every Attack Element Animal skill.
Which is achieved by apply 4 states State Animal Knowledge +8%, Animal Knowledge +4%, Animal Knowledge +2%, Animal Knowledge +1%.
But when Actor train Animal Knowledge from 15 to 16, I need remove all 4 previous states and apply Animal Knowledge + 16%.
Funny is, this script is mostly for "debug purposes" if something did not go wrong and if all mechanics works as intended.
At start it should reset All "profficiency states" from all 10 actors. Which is relatively simple. And I already separated it from whole block.
Then it should apply correct states combination for each actor variable set values.
In fact, it all could be done without script box. But with 10 actors * 64 variables * 100 possible combinations it is bit too much work 🙂 i can skip with proper math outside editor commands.
Then go and post your script in the plugin request or in the plugin support forum and ask how to turn that into a plugin.
I can't tell you myself as I haven't worked with that, but I know that it's only a few steps if you know how.