- Joined
- Dec 31, 2016
- Messages
- 3
- Reaction score
- 0
- Primarily Uses
- N/A
This is probably a really stupid question but I'm gonna ask it anyway because I cannot get this to work.
So here we go . . .
I have a picture gallery (using the Mog Picture Gallery plugin) and I'm trying to set up chests that give the players posters. These "posters" are stored in the picture gallery rather than in the inventory, so really what the chests are doing are enabling pictures in the gallery rather than giving actual items.
However, to make things interesting, I want the chests to enable random pictures (instead of each chest opening a specific image each time).
I coded this in Ace no problems using the following:
Control Variables: [0014
oster] = Random No. (2...318)
Script: enable_picture($game_variables[14])
Text: -,-, Normal, Bottom
: You got poster number \v[14]
Now, however, I cannot get MV to recognize the random variable number as the image to unlock when I do it as a Plugin Command. If I specifically tell it what number to unlock it's fine. For example if I type enable_picture : 1 it will happily unlock picture 1. But if I try to get it to use the variable number it doesn't enable anything.
I have also tried doing it as a script command but then it tries to apply it to another plugin and gets all confused.
I'm guessing I'm typing the variable code incorrectly in the Plugin Command line but I cannot figure out the correct way to type it. I'm hoping this is a super easy fix and someone here can help me out with how to format that command or can point me to another post that has the information.
Thanks so much, and sorry for what I am betting is a very basic question. I just switched to MV and I'm still trying to figure out the code differences.
So here we go . . .
I have a picture gallery (using the Mog Picture Gallery plugin) and I'm trying to set up chests that give the players posters. These "posters" are stored in the picture gallery rather than in the inventory, so really what the chests are doing are enabling pictures in the gallery rather than giving actual items.
However, to make things interesting, I want the chests to enable random pictures (instead of each chest opening a specific image each time).
I coded this in Ace no problems using the following:
Control Variables: [0014
Script: enable_picture($game_variables[14])
Text: -,-, Normal, Bottom
: You got poster number \v[14]
Now, however, I cannot get MV to recognize the random variable number as the image to unlock when I do it as a Plugin Command. If I specifically tell it what number to unlock it's fine. For example if I type enable_picture : 1 it will happily unlock picture 1. But if I try to get it to use the variable number it doesn't enable anything.
I have also tried doing it as a script command but then it tries to apply it to another plugin and gets all confused.
I'm guessing I'm typing the variable code incorrectly in the Plugin Command line but I cannot figure out the correct way to type it. I'm hoping this is a super easy fix and someone here can help me out with how to format that command or can point me to another post that has the information.
Thanks so much, and sorry for what I am betting is a very basic question. I just switched to MV and I'm still trying to figure out the code differences.
Last edited by a moderator:





