Parallel Event Scripting help?

Basically I'm looking to make a parallel event that will check the armor ID of the equipped armor (only one player character in my game) and then display a picture.

Something like..
Get the Id of the equipped armor and store it in a variable (armorvariable) then display then display images/"armorvariable".png at x,y coords. The I would want this to refresh anytime the menu screens are closed back to the game.

So the event would check the armor Id and then go to the images folder and display the image with the same name as the armor ID at the specified coordinates.
Basically I'm looking to make a parallel event that will check the armor ID of the equipped armor (only one player character in my game) and then display a picture.

Something like..
Get the Id of the equipped armor and store it in a variable (armorvariable) then display then display images/"armorvariable".png at x,y coords. The I would want this to refresh anytime the menu screens are closed back to the game.

So the event would check the armor Id and then go to the images folder and display the image with the same name as the armor ID at the specified coordinates.
If there aren’t that many armours in your game, I think you could pull this off fairly easily using a parallel process and a loop to check if an armour is equipped (I’m sure there’s an option for that in the conditionals?) and then update the image (manually choosing the correct image using ‘show picture’) to the relevant one.

If not, I think you’re best off writing or requesting a plugin.
Yes, in Conditional Branch, one of the tab is for actors. Just choose your actor, then choose the armor you're interested in. You'll need to have a series of conditional branches for each armor you want to test for. Just make sure you put a Wait 10 at the very top of the parallel process, and maybe an Exit Event Processing inside each branch after showing the picture, so it doesn't continue on to test every other one. If you make it a common event, you won't need to copy/paste it for every map. In that case you'll need to give it a switch to activate, and turn on that switch at the beginning of the game.
I have a parallel event set up to show a "base" bust when the game starts and its working fine. Now I'm trying to get that event to read what armor is worn from a variable and select the proper picture to display. The screenshot shows what I'm thinking. As you can see I've listed the pictureID as "null" hoping it will default to the picture name to selects pictures and the picture name should be the same as the armor name in the database.

I created a variable called "Armor" to hold the armor name after a check.

I'm getting a syntax error saying I forgot a ")" after the arguments list but I'm not seeing anything... here is the code.


$gameScreen.showPicture(null, $Armor, Upper Left (825,15), (100%, 100%), 255, Normal)

1612131127536.png
Try this.

$gameScreen.showPicture(1, "[insert image name here]”, 0, 825, 15, 100, 100, 255, 0)

where you’ve got null, you need the picture (show) number. Where you’ve got $armor, you need the name of the image file.

Original thread: https://forums.rpgmakerweb.com/threads/parallel-event-scripting-help.132887/