Show picture with event script syntax error.

Hello !


I making a simple gauge, but got syntax error when it's executed and I dont know what I did wrong.


I started with that :


screen.pictures[n].show(name, center_mode, x, y,zoom_x, zoom_y, opacity, blend_mode)


Then I have the Variables [5] and [6] to set the x, y,


The zoom_x is the value of the Variable[3]


zoom_y stays at 100, opacity at 255 and blend to 0


The picture is N.1 with the same name "Gauge".


Thanks in advance !

Gauge.png
What is the FULL error message?


You have made it (or allowed it to) break to a new line in the wrong place.  Put all of $game_variables[6] on the second line.
Hello Shaz !


This is the message :

syntax error.png
and did you do what I said to fix it?
Thank you Shaz !


All my apologizes ! I replied in a rush before to go work.


Now I did what you said and it works :


screen.pictures[1].show("Gauge", 0, $game_variables[5],
$game_variables[6],$game_variables[3], 100, 255, 0)


I followed a tutorial I seen in a french site, and all the script part was in a single line.


So, all my confusness. # Attached file #


Question : Why I have to cut it by 2 lines ? Everything look so easier in a single line...

PicturesShow.png
That means you have an older version of Ace.  If you redownload & reinstall, you will get the newer version which has a larger script box.  These issues might still happen if you have long script lines that go onto a new line - just make sure the line break is AFTER a , or [ or ( and that should get rid of most of your problems.
Because the editor window of the script command is not big enough to handle it in a single line, and the way the data is stored cannot handle larger lines without breaking them.


And for the script processing, a new line can break a command...
Thanks both of you !


I not even know different Ver. of Ace exists.


I'am to afraid to mess or to loose my project if I uninstal/reinstal a new version.


I not even know if I can find out where I put my key and be stucked.


Even my Window ver. is 8, not 8.1 and I cross finger to dont have to change to ver.10, cause


of few no compatibilities issues I heared whitch make my hair became strait on my head.


Sorry for my funny english.

Original thread: https://forums.rpgmakerweb.com/threads/show-picture-with-event-script-syntax-error.71704/