Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

RMVX Picture gallery convert to RMXP

can some one help me to make picture gallery script that looks like this.
http://img209.imageshack.us/img209/6130/56290249cy5.th.png[/img]
so when we move the cursor(arrow keys) up/down the picture will instantly change without pressing B(space) key.
and to enable/disable picture0x we use $game_switches[ x ]
so when the $game_switches[6] == false, the picture number 6 will "-empty-" and the picture can't be seen.
http://img363.imageshack.us/img363/6915/11730827ny4.th.png[/img]
and when we move the cursor left/right, the list will change to the another categories that contains
different pictures from the list number 1.
http://img391.imageshack.us/img391/2128/41937896zr8.th.png[/img]
or something like that.
and you may use any different method.
please help :cry: and thanks before. :smile:

sorry for my bad english  :blush:
 
Did you make that mock-up?
If you do, I think it's not too hard to figure out how to make gallery thing.

I have saw Skvkal made XP version of Gallery script, I think it would not be hard to port that to VX. :)
 
thanks for reply,
<br>
to tell u the truth I am blind at scripting.
I just make a window with the list and take screenshot then I edit the script and change the background image and take screenshot again..
the problem is that the picture/image stay still when I move the cursor up and down
<br>
I am waiting for some one like you who have scripting ability to make my "RMVX picture gallery" comes true and of course the credit(or whatever the name) goes to you(or some one who'll make it work)
<br>
btw, can you give me the "Skvkal made XP version of Gallery script"s link??
thanks be4
 
bump
bump
bump........

help
help
help
sephirot spawn please help me, I know you are good at RMVX script..
I mean good at RMXP script..  :blush:
or any one else who want help me please....

bump

A.S.A.P.
 
As far as I know, Seph never released any VX scripts.
Anyway, I'll give it a try. It shouldn't be hard to do.

Just tell me, what's this List 01 > thing above the image list?
And before I forget, how do you want to access the Picture Gallery? Through events, main menu, title screen?
 
THANKS for the respond

"List 01 >" is the title of the list, it means list number one or the 1st list,
so when we press the right key the"list 01>" will change to another title like "List 02>" or "2nd list" or "bla bla bla", or whatever. and when we press the right key again the title will changed again to "list 03>" or "x&^%!" or "whatever"..

I want to access the Picture Gallery from main menu..
and events so that when the hero talk to NPC computer he can open the Picture Gallery,
and when he have the PDA thing on his pocket he can access the Picture Gallery directly from the main menu(not trough item).

actually I want make a modern RPG game that contain Visual Novel like..
hopefully the script will make my dream come true.
 
Good. I'm almost done with it. I just need to add that List feature and the Main Menu access.
I have one last question about the menu access. Are you ready to use my Custom Commands script in your project?
Because it would be easier for you and for me if the script use my Custom Commands script.

If you don't know what I'm talking about, here the script topic: http://www.rmxp.org/forums/index.php?topic=43211.0
If you don't want to use it, then I have another question:
Are you using a custom menu system that alters the default menu? If so, I'd like to have the script so the picture gallery script doesn't conflicts with the menu system.

Thanks!
-Dargor
 
hey you reply my message quit fast,

usually I use my own main menu, I edited the standard one so that the look will much like Visual Novel menu,, (just the position, I think there will be no conflicts)
I like your Custom Commands script and I like the icon in your menu's Screenshots but somehow thing in the right side of the border of your main menu's Screenshots look not that good(sorry its just my opinion)

so, the answer is YES, use your Custom Commands script!!
 
can you give me the link so that I can move the comments bellow to yours

actually the scroll bar is great,
but may be you can change the color..
black to dark gray
blue to gray(like the default one)
and make the top and the bottom not too pointed(sharp) just make it flat
do not give scroll bar like the side that not scrollable

it just my opinion lol

I am waiting..
 
Today is weekend too. And please, wait at least 72 hours before bumping your topic.

Here's your script.
Code:
#==============================================================================
# ** Picture Gallery
#------------------------------------------------------------------------------
#  © Dargor, 2008
#  16/10/08
#  Version 1.0
#  Requested by iceblue
#------------------------------------------------------------------------------
#  VERSION HISTORY:
#   - 1.0 (16/10/08), Initial release
#------------------------------------------------------------------------------
#  INSTRUCTIONS:
#   - Paste this above main
#   - Edit the constants in the Picture Gallery module
#   - To lock/unlock a picture, use the following lines of code:
#         $game_system.lock_picture(picture_id)
#         $game_system.unlock_picture(picture_id)
#==============================================================================

# Vocabulary
Vocab::CommandPictureGallery = 'Gallery'

#==============================================================================
# ** Picture Gallery Configuration Module
#==============================================================================

module Picture_Gallery
  # Galleries
  # SYNTAX: {'Gallery Name' => [picture_id, picture_id]}
  Galleries = {'Name 1' => [1,2], 'Name 2' => [3,4]}
  # Picture Names
  # SYNTAX: {picture_id => 'name'}
  Pictures = {1 => 'Cave', 2 => 'Mountain', 3 => 'Sky', 4 => 'Ocean'}
  # Name of locked pictures
  Pictures.default = '- Empty -'
  # Files
  # SYNTAX: {picture_id => 'filename'}
  Files = {1 =>'Cave', 2 =>'Mountain', 3 =>'Sea of clouds', 4 =>'Ocean'}
  # Filename of locked pictures
  Files.default = 'Empty'
  # Window XY cpprdinates
  Window_X = 16
  Window_Y = 16
  # Add Picture Gallery to the main menu? (Requires the Custom Commands script)
  Main_Menu = false
end

#==============================================================================
# ** Game_System
#------------------------------------------------------------------------------
#  This class handles system-related data. Also manages vehicles and BGM, etc.
# The instance of this class is referenced by $game_system.
#==============================================================================

class Game_System
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_accessor :unlocked_pictures
  #--------------------------------------------------------------------------
  # * Alias Listing
  #--------------------------------------------------------------------------
  alias game_system_picture_gallery_system_initialize initialize
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    game_system_picture_gallery_system_initialize
    @unlocked_pictures = []
  end
  #--------------------------------------------------------------------------
  # * Unlock Picture
  #--------------------------------------------------------------------------
  def unlock_picture(id)
    @unlocked_pictures << id
  end
  #--------------------------------------------------------------------------
  # * Lock Picture
  #--------------------------------------------------------------------------
  def lock_picture(id)
    @unlocked_pictures.delete!(id)
  end
end

#==============================================================================
# ** Window_Command
#------------------------------------------------------------------------------
#  This window deals with general command choices.
#==============================================================================

class Window_Command < Window_Selectable
  #--------------------------------------------------------------------------
  # * Set Commands
  #--------------------------------------------------------------------------
  def commands=(commands)
    row_max = (commands.size + column_max - 1) / column_max
    remake_contents(width, row_max * WLH + 32)
    @commands = commands
    @item_max = commands.size
    refresh
  end
end

#==============================================================================
# ** Scene_PictureGallery
#------------------------------------------------------------------------------
#  This class performs the picture gallery screen processing.
#==============================================================================

class Scene_PictureGallery < Scene_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize(from_menu = false)
    @from_menu = from_menu
  end
  #--------------------------------------------------------------------------
  # * Start Processing
  #--------------------------------------------------------------------------
  def start
    @picture_sprite = Sprite.new
    @gallery_window = Window_Command.new(160,Picture_Gallery::Galleries.keys)
    @gallery_window.x = Picture_Gallery::Window_X
    @gallery_window.y = Picture_Gallery::Window_Y
    @gallery_window.height = 56
    @gallery_window.active = false
    @picture_window = Window_Command.new(160, ['','','',''])
    @picture_window.x = Picture_Gallery::Window_X
    @picture_window.y = Picture_Gallery::Window_Y + 56
    @picture_window.height = (4 * 24) + 32
    update_picture_window_contents
    update_picture_window
  end
  #--------------------------------------------------------------------------
  # * Terminate Processing
  #--------------------------------------------------------------------------
  def terminate
    @picture_sprite.dispose
    @gallery_window.dispose
    @picture_window.dispose
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    @gallery_window.update
    @picture_window.update
    if @gallery_window.active
      update_gallery_window
      return
    end
    if @picture_window.active
      update_picture_window
      return
    end
  end
  #--------------------------------------------------------------------------
  # * Update Gallery Window
  #--------------------------------------------------------------------------
  def update_gallery_window
    if Input.trigger?(Input::B)
      Sound.play_cancel
      if @from_menu
        index = $game_system.menu_commands.index(Vocab::CommandPictureGallery)
        $scene = Scene_Menu.new(index)
      else
        $scene = Scene_Map.new
      end
      return
      return
    end
    update_picture_window_contents
    if Input.trigger?(Input::C)
      @gallery_window.active = false
      @picture_window.active = true
    end
  end
  #--------------------------------------------------------------------------
  # * Update Picture Window
  #--------------------------------------------------------------------------
  def update_picture_window
    if Input.trigger?(Input::B)
      @gallery_window.active = true
      @picture_window.active = false
      return
    end
    gallery = Picture_Gallery::Galleries[@gallery_window.selection]
    picture_id = gallery[@picture_window.index]
    if $game_system.unlocked_pictures.include?(picture_id)
      file = Picture_Gallery::Files[picture_id]
    else
      file = Picture_Gallery::Files.default
    end
    @picture_sprite.bitmap = Cache.picture(file)
  end
  #--------------------------------------------------------------------------
  # * Update Picture Window Contents
  #--------------------------------------------------------------------------
  def update_picture_window_contents
    pictures = []
    picture_ids = []
    for picture_id in Picture_Gallery::Galleries[@gallery_window.selection]
      picture_ids << picture_id
      if $game_system.unlocked_pictures.include?(picture_id)
        pictures << Picture_Gallery::Pictures[picture_id]
      else
        pictures << Picture_Gallery::Pictures.default
      end
    end
    return if @picture_window.commands == pictures 
    @picture_window.commands = pictures 
    @picture_window.height = (4 * 24) + 32
    for i in 0...picture_ids.size
      unless $game_system.unlocked_pictures.include?(picture_ids[i])
        @picture_window.draw_item(i, false)
      end
    end
  end
end

#==============================================================================
# ** Scene_Menu
#------------------------------------------------------------------------------
#  This class performs the menu screen processing.
#==============================================================================

class Scene_Menu < Scene_Base
  #--------------------------------------------------------------------------
  # * Alias Listing
  #--------------------------------------------------------------------------
  alias dargor_vx_cmcpicgal_menu_create_command_window create_command_window
  alias dargor_vx_cmcpicgal_menu_update_command_selection update_command_selection
  #--------------------------------------------------------------------------
  # * Create Command Window
  #--------------------------------------------------------------------------
  def create_command_window
    if Picture_Gallery::Main_Menu
      commands = $game_system.menu_commands
      index = commands.index(Vocab::save)
      $game_system.add_menu_command(index, Vocab::CommandPictureGallery)
    end
    dargor_vx_cmcpicgal_menu_create_command_window
  end
  #--------------------------------------------------------------------------
  # * Update Command Selection
  #--------------------------------------------------------------------------
  def update_command_selection
    dargor_vx_cmcpicgal_menu_update_command_selection
    if Picture_Gallery::Main_Menu
      command = @command_window.selection
      if Input.trigger?(Input::C)
        case @command_window.selection
        when Vocab::CommandPictureGallery
          $scene = Scene_PictureGallery.new(true)
        end
      end
    end
  end
end
Everything you need to do is explained in the script header and comments.
Hope you like it!
-Dargor
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top