RPG Maker Forums

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:poster] = 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.

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top