[RPG Maker XP]
Hi, I'm stuck on frustrating syntax error that occur whenever I input long script into an event
example code :
$some_variable[:instance].long_function_name('param1','param2',1,2,3)
Put the code into script box and here is how it shows up
$some_variable
[:instance].long_function_name
('param1','param2',1,2,3)
separated into 3 lines aka screw things up
the result is syntax error. I tried to fix it by removing space, putting additional parameter after "," in the line after, etc. But then sometimes it works, sometimes not. 50:50
To be sure that I don't make any mistake with the code, I put the code into a simple short function inside the script and call it from an event and it works, so I'm 100% certain that the mistake was not from my code, but from the script box
So my question is
how to properly write long syntax into the script box that run as it should be even after being separated into multiple lines by script box ?ps : I'm sorry if this is a duplicate topic of a similar problem. I tried searching it first but what I got was about syntax error from specific script someone else's made.