hi, im new as you can see, in my game i want to have the player unlock a image gallary at the end of the game, and i cant seem to find a working script for what i need. if anyone has a script or link to one id be greatful. please tell me if i posted this in the wrong place, thank you!
unlock image gallary script for title menu after finishing game ?
RGSS3 Script RequestsDo you have an image gallery script and just want to know how to add an option to the title screen after the game ends? If so, what is the script?
Or are you asking for both the image gallery script AND a way to add it to the title screen?
Or are you asking for both the image gallery script AND a way to add it to the title screen?
I guess both? I found two scripts that i want to use but it seems they don't work correctly or i just don't know what im doing wrong. And yes i do have a image gallery script and a adding a title screen option script i just don't know of one's that do work correctly with out another plug-in.
People need to know what the script is, in order to help you add a title screen option. Please provide links, don't post the actual scripts here.
Custom Titlescreen??
I would like a script that lets me customize more options on my title screen. I'm the type of person that likes to be able to have an extra options showing small enjoyable things of the game without having to go through the entire game again. I want it to include being able to make these title...
forums.rpgmakerweb.com
Gallery Script: This is my first script
Gallery Script: This is my first script If you use this script in any game commercial or non-commercial then give me credit and other than that, if you were to post to another site then give me credit there as well, and enjoy! This script adds a new command to the menu which allows you to view pi...
anyone?..
So for the gallery script I took the one you posted and remade it.
I'll post that here.
For the title screen script, if you want the gallery to only be available when the player has finished the game and anytime afterwards, you will need a global save/variable script
Sixth has a global variables file and I found this one by theleech
www.rpgmakercentral.com
There you can specify a global switch.
Here's what you need to do.
Get the global save file script -> place it in your project
Edit the script. Near the top add in these two lines
*update - forgot to mention that you need to specify in the global save script the switch number you are using for the gallery.
For the title window the one you posted will not allow you to block the gallery, use this instead
Then use the gallery script I made and set your switches and variables
When the player has finished the game turn the switch on that you specify in the script and save the game. When going to the title screen it will allow the use of the gallery.
I'll post that here.
For the title screen script, if you want the gallery to only be available when the player has finished the game and anytime afterwards, you will need a global save/variable script
Sixth has a global variables file and I found this one by theleech
Global Save File ~ by Skul_
Global Save File + v1.0By theLEECH (Previously Skul_) (I changed my name because why not)Hey everyone! This is my first script, written because I needed an IT example for school, and I needed this for a project im working on.This script creates an extra save file (Named Global.rvdata2 by default)...
Here's what you need to do.
Get the global save file script -> place it in your project
Edit the script. Near the top add in these two lines
Ruby:
$imported ||= {}
$imported[:lglobal_save] = 1.0
*update - forgot to mention that you need to specify in the global save script the switch number you are using for the gallery.
For the title window the one you posted will not allow you to block the gallery, use this instead
Ruby:
class Scene_Title < Scene_Base
alias r2_gallery_title create_command_window
def create_command_window
r2_gallery_title
@command_window.set_handler(:gallery, method(:command_gallery))
end
def command_gallery
close_command_window
SceneManager.call(Scene_Gallery)
end
end
class Window_TitleCommand < Window_Command
alias r2_command_gallery_title make_command_list
def make_command_list
r2_command_gallery_title
if $imported[:lglobal_save]
LGlobalSave.load
add_command("Gallery", :gallery) if $game_switches[R2_Gallery_Title::Global_Switch] == true
end
end
end
Ruby:
# ╔═════════════════════════════════════╦════════════════════╗
# ║ Title: Picture Gallery ║ Version: 1.00 ║
# ║ Author: Roninator2 ║ ║
# ╠═════════════════════════════════════╬════════════════════╣
# ║ Function: ║ Date Created ║
# ║ ╠════════════════════╣
# ║ Show an image gallery in menu ║ 06 Oct 2021 ║
# ╚═════════════════════════════════════╩════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Allows to display pictures for the player to view ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Instructions: ║
# ║ Specify the settings for each image in the array ║
# ║ { ║
# ║ :name => "P1", # image name ║
# ║ :opacity => 255, # opacity of image ║
# ║ :x => 0, # x position ║
# ║ :y => 0, # y position ║
# ║ :visible => true, # picture visible ║
# ║ :mcmd => false, # commands visible ║
# ║ :wait => 180, # how long to display image ║
# ║ :command => "Picture 1", # Command in menu ║
# ║ }, ║
# ║ ║
# ║ Add or remove sections to accomdate your game. ║
# ║ ║
# ║ If you want to block access to the Gallery in title ║
# ║ you will need to use a global data script ║
# ║ ║
# ╚══════════════════════════════════════════════════════════╝
# ╔═════════════════════════════════════╗
# ║ Terms of use: ║
# ║ Free for all uses in RPG Maker ║
# ╚═════════════════════════════════════╝
module R2_Gallery_Title
Switch = 2 # switch to determine if in menu or title screen
Stop_Music = true # stops background music if true
Gallery_Music = "Battle1" # music to play while viewing gallery
Play_Music = true # play music while viewing gallery
Return_Text = "Back to Menu" # text to show for returning to menu
Background_Image = "Gallery_Background" # image to show for the background
Global_Switch = 5 # variable used with global variables
# requires a global variable script
Picture_Gallery = [
{
:name => "P1", # image name
:opacity => 255, # opacity of image
:x => 0, # x position
:y => 0, # y position
:visible => true, # picture visible
:mcmd => false, # commands visible
:wait => 180,
:command => "Picture 1",
},
{
:name => "P2", # image name
:opacity => 255, # opacity of image
:x => 0, # x position
:y => 0, # y position
:visible => true, # picture visible
:mcmd => false, # commands visible
:wait => 180,
:command => "Picture 2",
},
{
:name => "P3", # image name
:opacity => 255, # opacity of image
:x => 0, # x position
:y => 0, # y position
:visible => true, # picture visible
:mcmd => false, # commands visible
:wait => 180,
:command => "Picture 3",
},
{
:name => "P4", # image name
:opacity => 255, # opacity of image
:x => 0, # x position
:y => 0, # y position
:visible => true, # picture visible
:mcmd => false, # commands visible
:wait => 180,
:command => "Picture 4",
},
{
:name => "P5", # image name
:opacity => 255, # opacity of image
:x => 0, # x position
:y => 0, # y position
:visible => true, # picture visible
:mcmd => false, # commands visible
:wait => 180,
:command => "Picture 5",
},
{
:name => "P6", # image name
:opacity => 255, # opacity of image
:x => 0, # x position
:y => 0, # y position
:visible => true, # picture visible
:mcmd => false, # commands visible
:wait => 180,
:command => "Picture 6",
},
{
:name => "P7", # image name
:opacity => 255, # opacity of image
:x => 0, # x position
:y => 0, # y position
:visible => true, # picture visible
:mcmd => false, # commands visible
:wait => 180,
:command => "Picture 7",
},
{
:name => "P8", # image name
:opacity => 255, # opacity of image
:x => 0, # x position
:y => 0, # y position
:visible => true, # picture visible
:mcmd => false, # commands visible
:wait => 180,
:command => "Picture 8",
},
{
:name => "P9", # image name
:opacity => 255, # opacity of image
:x => 0, # x position
:y => 0, # y position
:visible => true, # picture visible
:mcmd => false, # commands visible
:wait => 180,
:command => "Picture 9",
},
{
:name => "P10", # image name
:opacity => 255, # opacity of image
:x => 0, # x position
:y => 0, # y position
:visible => true, # picture visible
:mcmd => false, # commands visible
:wait => 180,
:command => "Picture 10",
},
]
end
# ╔══════════════════════════════════════════════════════════╗
# ║ End of configuration ║
# ╚══════════════════════════════════════════════════════════╝
class Window_Gallery < Window_Command
def make_command_list
add_command(R2_Gallery_Title::Return_Text, :menu)
for cmd in R2_Gallery_Title::Picture_Gallery
add_command(cmd[:command], cmd[:command])
end
end
end
class Scene_Gallery < Scene_MenuBase
def start
super
@last_bgm = RPG::BGM.last
RPG::BGM.stop if R2_Gallery_Title::Stop_Music
msc = RPG::BGM.new(R2_Gallery_Title::Gallery_Music, 100, 100) if R2_Gallery_Title::Play_Music
msc.play if R2_Gallery_Title::Play_Music
create_background
create_commands
end
def create_background
@background_sprite = Sprite.new
@background_sprite.bitmap = Cache.system(R2_Gallery_Title::Background_Image)
@background_sprite.color.set(0, 0, 0, 0)
end
def create_commands
@cmd = Window_Gallery.new(0,0) #(x,y)
@cmd.width = 244
@cmd.height = 416
@cmd.opacity = 0
@cmd.set_handler(:menu, method(:cmd_menu))
for cmd in R2_Gallery_Title::Picture_Gallery
@cmd.set_handler(cmd[:command], method(:sh_pic))
end
end
def cmd_menu
if $game_switches[R2_Gallery_Title::Switch]
return_scene
@last_bgm.play(@last_bgm.pos) if R2_Gallery_Title::Stop_Music
$game_switches[R2_Gallery_Title::Switch] = false
else
SceneManager.goto(Scene_Title)
end
end
def sh_pic
index = @cmd.index - 1
R2_Gallery_Title::Picture_Gallery.each_with_index { |cmd, i|
next if index != i
@pic = Sprite.new
@pic.bitmap = Cache.picture(cmd[:name])
@pic.opacity = cmd[:opacity]
@pic.x = cmd[:x]
@pic.y = cmd[:y]
@pic.visible = cmd[:visible]
@cmd.visible = cmd[:mcmd]
Graphics.wait(cmd[:wait])
}
@pic.visible = false
@cmd.visible = true
@cmd.activate
end
end
class Window_MenuCommand < Window_Command
def add_original_commands
add_command("Gallery", :gallery)
end
end
class Scene_Menu < Scene_MenuBase
alias r2_handler_command_gallery create_command_window
def create_command_window
r2_handler_command_gallery
@command_window.set_handler(:gallery, method(:command_gallery))
end
def command_gallery
$game_switches[R2_Gallery_Title::Switch] = true
SceneManager.call(Scene_Gallery)
end
end
When the player has finished the game turn the switch on that you specify in the script and save the game. When going to the title screen it will allow the use of the gallery.
wow! thank you!!! ill test it on a test game and see how it goes! again thanks!
this is what i keep getting im not sure what i did but im having more trouble with a script from october. any help? i think something is missing or not correct. any help is appreciated
I'm not entirely sure but that is probably a mistakenly placed line break or even an accidentally deleted constant. You'll need to show a printscreen of the line 20 the error references to be sure
That might happen if you hadn't copied/pasted the script correctly. Compare what you have with the original, wherever you obtained it, or just delete that script and add it again.
Do you have the link where the script was?
Never mind found it. just did a search
unlock image gallary script for title menu after finishing game ?
hi, im new as you can see, in my game i want to have the player unlock a image gallary at the end of the game, and i cant seem to find a working script for what i need. if anyone has a script or link to one id be greatful. please tell me if i posted this in the wrong place, thank you!
forums.rpgmakerweb.com
Aside from the Constant error you are also missing an end, so you did copy it incorrectly somewhere.
So, it looks like you did not follow directions.
I had said in the other thread
"Get the global save file script -> place it in your project"
This is not the script I made.
oops okay sorry.
im getting this error in "Game_interrepter " line 1385 now.
Ruby:
#--------------------------------------------------------------------------
# * Open Save Screen
#--------------------------------------------------------------------------
def command_352
return if $game_party.in_battle
SceneManager.call(Scene_Save) [<== line 1385]
Fiber.yield
end
Double-post notice: @PoniMeiMei
As this is a continuation of your other thread, I'm merging them together. If you had posted the error in that thread, there'd probably be less confusion.
What error? I'm certain it won't be the same one you put in your first post.
As this is a continuation of your other thread, I'm merging them together. If you had posted the error in that thread, there'd probably be less confusion.
sorry for the double posting! i apologize.
*Update:
I got all the scripts to work accordingly. now my problem is that i cant save.
*Update:
I got all the scripts to work accordingly. now my problem is that i cant save.
Original thread: https://forums.rpgmakerweb.com/threads/unlock-image-gallary-script-for-title-menu-after-finishing-game.140865/