MV Show Picture script call

I'm trying to use this Script Call. Could you show me some example of a working script call, where all numerical values depend on variables and the picture's name equals the actor's one?

$gameScreen.showPicture(pictureId, name, origin, x, y,scaleX, scaleY, opacity, blendMode)
Sounds like basic JS in RPG Maker. Use $gameVariables.value(VARIABLE_ID) to read a variable and $gameParty.members()[n].name() to get the name of the n-th member of your current Party.

Code:
const name = $gameParty.members()[0].name()
const x = $gameVariables.value(74)
const y = $gameVariables.value(75)
...

$gameScreen.showPicture(pictureId, name, origin, x, y,scaleX, scaleY, opacity, blendMode)
I've tried this, but nothing works.
const x = $gameVariables.value(248) const y = $gameVariables.value(249) $gameScreen.showPicture(94, w_10, center, x, y, 300, 300, 255, normal)
Confirm that you are actually passing the value of the variables:
Code:
const x = $gameVariables.value(248)
const y = $gameVariables.value(249)
console.log("X:"+x+" - Y:"+y);
$gameScreen.showPicture(94, w_10, center, x, y, 300, 300, 255, normal)

If you can, also show the event that changes the value of the game's variables.
Still nothing I'm afraid.
P.S. I actually wanted the picture's name composed by the actor's name and a variable.
Like w10. w - actors name_ 10 - variable.

1619448260751.png
You call
Code:
$gameScreen.showPicture(...)
twice. Furthermore, when using MV, doing multiple Script Calls won't be connected, that said, when you define variables in the first Script, they won't be available anymore in the second script. AFAIK this was improved in MZ.

Next, I cannot see if you defined "w_10".
Then, "center" is a String, you need to put it into brackets:
Code:
"center"
Finally, the blend mode is either a string or a number (0, 1, or 2), I'm not sure. Anyway, either it was "normal" with the brackets or 0, 1, or 2. When you don't care about the blendMode, you can try to leave this argument out, maybe this call still works.

Sorry I don't know every argument for this call by heart, but I can see most of JS syntax errors 😀

EDIT:
Sorry I mean QUOTATION MARKS not Brackets..
What appeared on the console?

Example:
X:635 - Y:360
Alright, the first Script works. And what about the second one?

@Dev_With_Coffee I was getting errors. Now it works fine.
1619450368797.png
In a moment you use the script that changes the name of the character in the order of the database.
And in the other, you use the group order that is not the same as the database.

".actor(5)" other than "members()[5]"

See:
RMMV Script Calls
I know about the list of Script Calls. I'm sorry but this doesn't help.

const x = $gameVariables.value(248) const y = $gameVariables.value(249) const name = $gameActors.actor(5).name()+$gameVariables.value(115) $gameScreen.showPicture(94, name, "center", x, y, 300, 300, 255, 0)

Any suggestions?
I'm already confused, try this:
Code:
var x = $gameVariables.value(248);
var y = $gameVariables.value(249);
var name = $gameActors.actor(5).name()+$gameVariables.value(115);
$gameScreen.showPicture(94, name, "center", x, y, 300, 300, 255, 0);

Press the F12 key while testing the game.
Now it works. Thanks! 😀D

Original thread: https://forums.rpgmakerweb.com/threads/show-picture-script-call.135901/