- Joined
- Feb 12, 2021
- Messages
- 20
- Reaction score
- 12
- First Language
- English
- Primarily Uses
- RMMZ
I'm going to preface this by saying I don't know if what I'm trying to achieve is possible in MZ, but I know I was certainly able to do this using Ren'py/Python back in the day. I have been searching the internet for solutions but I honestly can't find anything similar to what I need, so...
I'm using Visustella's VN Picture Busts plugin. I am trying to create a common event where I can easily change the displayed sprites when needed without the hassle of opening and navigating the plugin command every 2 seconds. This is intended to be done with two identifying varibales. I just don't know how to modify the plugin parameter using in game variables.
To explain further, this is my current (but not working) setup;
Variable 2 = Character (determines which character is shown)
Variable 3 = Expression (determines their expression)
In the plugin parameter for picking the file, there's a text box.
My sprites are all organised in their respective folders and named consistently. I need to be able to write a line of some sort that can use the above variables to determine the sprite that matches the string stored inside the variables.
So, for example, I want "Junpei" and the expression "0" (neutral). The file name/location is
How do I write that so that MZ can understand it?
I tried to play around with different attempts, but nothing is working. My latest attempt was;
I reeeeally don't want to have to make a million conditional checks in this event haha.
I'm using Visustella's VN Picture Busts plugin. I am trying to create a common event where I can easily change the displayed sprites when needed without the hassle of opening and navigating the plugin command every 2 seconds. This is intended to be done with two identifying varibales. I just don't know how to modify the plugin parameter using in game variables.
To explain further, this is my current (but not working) setup;
Variable 2 = Character (determines which character is shown)
Variable 3 = Expression (determines their expression)
In the plugin parameter for picking the file, there's a text box.
My sprites are all organised in their respective folders and named consistently. I need to be able to write a line of some sort that can use the above variables to determine the sprite that matches the string stored inside the variables.
So, for example, I want "Junpei" and the expression "0" (neutral). The file name/location is
img/pictures/Sprites/Junpei/Junpei_0.png
How do I write that so that MZ can understand it?
I tried to play around with different attempts, but nothing is working. My latest attempt was;
img/pictures/Sprites/'$gameVariable.value(2)'/'$gameVariable.value(2)'_'$gameVariable.value(3)'.png
I reeeeally don't want to have to make a million conditional checks in this event haha.