查看: 2962|回复: 7

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

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

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

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

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

未测试
  1. class Scene_Save < Scene_File

  2.   alias old_on_savefile_ok on_savefile_ok
  3.   def on_savefile_ok
  4.     if @index == 0
  5.       Sound.play_buzzer
  6.       return
  7.     else
  8.       old_on_savefile_ok
  9.     end
  10.   end

  11.   alias old_first_savefile_index first_savefile_index first_savefile_index
  12.   def first_savefile_index
  13.     old_first_savefile_index
  14.     DataManager.last_savefile_index == 0 ? 1 : DataManager.last_savefile_index
  15.   end

  16.   alias old_cursor_down cursor_down
  17.   def cursor_down(wrap)
  18.     old_cursor_down(wrap)
  19.     if @index == 0
  20.       @index = 1
  21.     end
  22.     ensure_cursor_visible
  23.   end

  24.   alias old_cursor_up cursor_up
  25.   def cursor_up(wrap)
  26.     old_cursor_up(wrap)
  27.     if @index == 0
  28.       @index = 1
  29.     end
  30.     ensure_cursor_visible
  31.   end

  32.   alias old_cursor_pagedown cursor_pagedown
  33.   def cursor_pagedown
  34.     old_cursor_pagedown
  35.     if @index == 0
  36.       @index = 1
  37.     end
  38.   end

  39.   alias old_cursor_pageup cursor_pageup
  40.   def cursor_pageup
  41.     old_cursor_pageup
  42.     if @index == 0
  43.       @index = 1
  44.     end
  45.   end
  46. end
复制代码

看楼主旧帖,好像对用脚本绘制方面颇有研究,能帮我看看这个么
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.

在本版发帖返回顶部