查看: 2916|回复: 7

[已经解决] 请教存挡格的问题

[复制链接]
梦石
0
星屑
1388
在线时间
343 小时
注册时间
2016-7-17
回帖
82
发表于 2020-8-7 14:06:07 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
想让第一格存檔设定为自动存挡,暗色不能储存的,大佬们有什么好办法吗
自动存挡方面的脚本已经搞定了,只剩让挡案格不给存挡就做完了,但是那边的脚本好奇怪,不会改。
梦石
0
星屑
29901
在线时间
5734 小时
注册时间
2016-3-8
回帖
1653
发表于 2020-8-7 14:27:05 | 显示全部楼层
本帖最后由 alexncf125 于 2020-8-7 21:37 编辑

未测试
[pre lang="ruby"]class Scene_Save < Scene_File

  alias old_on_savefile_ok on_savefile_ok
  def on_savefile_ok
    if @index == 0
      Sound.play_buzzer
      return
    else
      old_on_savefile_ok
    end
  end

  alias old_first_savefile_index first_savefile_index first_savefile_index
  def first_savefile_index
    old_first_savefile_index
    DataManager.last_savefile_index == 0 ? 1 : DataManager.last_savefile_index
  end

  alias old_cursor_down cursor_down
  def cursor_down(wrap)
    old_cursor_down(wrap)
    if @index == 0
      @index = 1
    end
    ensure_cursor_visible
  end

  alias old_cursor_up cursor_up
  def cursor_up(wrap)
    old_cursor_up(wrap)
    if @index == 0
      @index = 1
    end
    ensure_cursor_visible
  end

  alias old_cursor_pagedown cursor_pagedown
  def cursor_pagedown
    old_cursor_pagedown
    if @index == 0
      @index = 1
    end
  end

  alias old_cursor_pageup cursor_pageup
  def cursor_pageup
    old_cursor_pageup
    if @index == 0
      @index = 1
    end
  end
end[/pre]
看楼主旧帖,好像对用脚本绘制方面颇有研究,能帮我看看这个么
https://rpg.blue/thread-482783-1-1.html

点评

谢谢,ok了  发表于 2020-8-7 23:05
更新了一下  发表于 2020-8-7 21:37
用了鼠标脚本跟截图存挡脚本  发表于 2020-8-7 21:08
不过如果你用了鼠标脚本就能选得到,你有没有用鼠标脚本?  发表于 2020-8-7 16:54
???,加了这段脚本后,在存档画面中应该是会变得不能选第1格的喔  发表于 2020-8-7 16:00
回复 1 0

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部