Ruby:
number = $game_variables[23] + 1
x = $game_variables[23] * 50
y = 300
@p1 = $game_variables[24]
@p2 = 0
@p6 = 25
@p7 = 25
@p8 = 255
@p9 = 0
$game_screen.pictures[number].show
(@p1,@p2,x,y,@p6,@p7,@p8,@p9)
So this is what the script call looks like. $game_variables[24] is already a string. It's defined as $game_variables[24]="T_M_R"
And the syntax for Show Pictures are the following:
$game_screen.pictures[NUMBER].show(file name, ORIGIN, X, Y, ZOOM_X, ZOOM_Y, OPACITY, BLEND_TYPE)
I get a syntax error, but I don't know what could be wrong with it, and I know the picture line is the one because when I remove it, I don't get any errors.
SOLUTION FOUND BUT I STILL HAVE QUESTIONS
I guess it's just "script call hates line breaks." I changed it to the following that, for some reason, works and only thing I can think of is the line break is different as I know script call is something else when it comes to how it deals with line breaks. For future reference, is there any other ways to deal with line breaks like these?
Ruby:
@NUM = $game_variables[23] + 1
x = $game_variables[23] * 50
y = 300
@p1 = $game_variables[24]
@p2 = 0
@p6 = 25
@p7 = 25
@p8 = 255
@p9 = 0
$game_screen.pictures[@NUM].show(@p1,
@p2, x, y, @p6, @p7, @p8, @p9)