Project1

标题: 战斗打开开关1的脚本 [打印本页]

作者: pajiman1999    时间: 2019-1-23 22:41
标题: 战斗打开开关1的脚本
进入战斗
打开开关1
战斗结束
关闭开关1
的脚本             就是需要进入战斗前的黑暗画面打开 开关1  
作者: KB.Driver    时间: 2019-1-24 00:27
RUBY 代码复制
  1. class Scene_Battle
  2.   alias start_for_switch_on start
  3.   def start
  4.     $game_switches[1] = true
  5.     start_for_switch_on
  6.   end  
  7.   alias terminate_for_switch_off terminate
  8.   def terminate
  9.     $game_switches[1] = false
  10.     terminate_for_switch_off
  11.   end
  12. end


新建工程测试通过
作者: pajiman1999    时间: 2019-1-24 14:11
KB.Driver 发表于 2019-1-24 00:27
class Scene_Battle
  alias start_for_switch_on start
  def start

感谢 大佬倾情回答~~谢谢 谢谢 谢谢




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1