| 赞 | 301 |
| VIP | |
| 好人卡 | |
| 积分 | 340 |
| 经验 | |
| 最后登录 | 2026-10-18 |
| 在线时间 | 1744 小时 |
- 梦石
- 20
- 星屑
- 13972
- 在线时间
- 1744 小时
- 注册时间
- 2017-1-12
- 回帖
- 1666
 
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有账号?注册会员
×
本帖最后由 火锅深处 于 2020-5-5 13:17 编辑
已解决,搜到了。
https://rpg.blue/thread-366001-1-1.html
===========================================
用的是下面这两个脚本。想实现的效果就是用变量5控制标题画面的变化,但现在那个换标题的脚本貌似是要玩家主动存档后才能发挥作用,我希望的就是只要变量5变化哪怕玩家不存档也能换标题。
大概能理解是因为换标题那个脚本没有“检查”全局变量脚本里的“System_Save.rvdata2”,所以要怎么改呢?
P.S.喵呜喵5的全局变量和换标题画面的脚本已经尝试过了,但是那个又和现有的其他脚本冲突。_(:з」∠)_
VIPArcher全局变量
Racheal更换标题图
- #==============================================================================
- # Dynamic Title
- # by: Racheal
- # Version 1.1
- # Created: 24/06/2013
- # Updated: 27/09/2013
- #==============================================================================
- # Changes the title screen based on a variable set in-game.
- #==============================================================================
- # Instructions:
- # * Insert in the Materials section
- # * Configure to your liking below
- #==============================================================================
- # Compatibility:
- # This script is for RPG Maker VX Ace
- # It is unlikely to work with anything that modifies the way the
- # title screen is drawn such as an animated title screen
- # * Overwrites: Scene_Title: create_background
- =begin
- Credit
- - Racheal
- Author's Notes
- Free for commercial and non-commercial use. Just credit me (and let me know if you use it, just because). There's really not too much to this script. Version 1.1 features increased compatibility with save systems thanks to estriole's tip.
- As this is a script that modifies the save header, it will not work with saves created before this script was installed.
- =end
- #==============================================================================
- #==============================================================================
- # Customization
- #==============================================================================
- module Racheal_Title
- #Set which variable controls the change in the title screen
- TITLE_VARIABLE = 5
-
- #Set which parts of the title screen are affected
- CHANGE_BACKGROUND = true
- CHANGE_FOREGROUND = true
-
- #Set whether to check the highest variable in all the save files or
- #just use the most recent save
- CHECK_ALL_SAVES = false
-
- #Set whether to use a series of numbers for the filenames (0.png, 1.png, etc)
- #or a series of names you define below
- USE_FILENAMES = true
- BACKGROUND_NAMES = ["Title0", "BTitle","Title0"]
- FOREGROUND_NAMES = ["Layer1", "Layer1", "Layer1"]
- end
- #==============================================================================
- # End Customization
- #==============================================================================
- #==============================================================================
- # ** DataManager
- #==============================================================================
- module DataManager
- #--------------------------------------------------------------------------
- # * Create Save Header
- #--------------------------------------------------------------------------
- class << self; alias dynamic_title_make_save_header make_save_header; end
- def self.make_save_header
- header = dynamic_title_make_save_header
- header[:title] = $game_variables[Racheal_Title::TITLE_VARIABLE]
- header
- end
- end
- #==============================================================================
- # ** Scene_Title
- #==============================================================================
- class Scene_Title < Scene_Base
- #--------------------------------------------------------------------------
- # * Create Background
- #--------------------------------------------------------------------------
- def create_background
- @sprite1 = Sprite.new
- sprite_name = Racheal_Title::CHANGE_BACKGROUND ? get_title(1) : $data_system.title1_name
- @sprite1.bitmap = Cache.title1(sprite_name)
- @sprite2 = Sprite.new
- @sprite2.z = 99#自己加的
- sprite_name = Racheal_Title::CHANGE_FOREGROUND ? get_title(2) : $data_system.title2_name
- @sprite2.bitmap = Cache.title2(sprite_name)
- center_sprite(@sprite1)
- center_sprite(@sprite2)
- end
- #--------------------------------------------------------------------------
- # * Get Title Sprite Name
- #--------------------------------------------------------------------------
- def get_title(num)
- title = 0
- if Racheal_Title::CHECK_ALL_SAVES
- #Check all saves
- for i in 0...DataManager.savefile_max
- header = DataManager.load_header(i)
- next unless header and header[:title]
- title = [title, header[:title]].max
- end
- else
- #Check latest save
- header = DataManager.load_header(DataManager.latest_savefile_index)
- if header and header[:title]
- title = [title, header[:title]].max
- end
- end
- #---
- if Racheal_Title::USE_FILENAMES
- #convert number to name
- case num
- when 1
- return Racheal_Title::BACKGROUND_NAMES[title]
- when 2
- return Racheal_Title::FOREGROUND_NAMES[title]
- end
- else
- return title.to_s
- end
- end
- end
复制代码
|
评分
-
查看全部评分
|