picture_shown = 5prefix = 'f'name = sprintf('%c%02d.jpg', prefix, picture_shown)screen.pictures[1].show(name, 0, pictureX, pictureY, 100, 100, 255, 0)That'll do it. A sprintf documentation can be found in the help file. But I'm note sure how helpful my post is to you, so ask if you still have questions.
You want to do this via
Script... event commands, don't you? You might want to define a method for that then. For example:
class Game_Interpreter def neok_show_picture(id, number, x, y, prefix = '') name = sprintf('%s%02d.jpg', prefix, number) screen.pictures[id].show(name, 0, x, y, 100, 100, 255, 0) endendThen you can write this:
Code:
neok_show_picture(1, picture_shown, pictureX, pictureY, 'f')neok_show_picture(1, picture_shown, pictureX, pictureY, 's')neok_show_picture(1, picture_shown, pictureX, pictureY) # no prefix