查看: 2650|回复: 2

[已经解决] 战斗打开开关1的脚本

[复制链接]
梦石
0
星屑
2197
在线时间
225 小时
注册时间
2018-4-23
回帖
83
发表于 2019-1-23 22:41:54 | 显示全部楼层 |阅读模式

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

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

×
进入战斗
打开开关1
战斗结束
关闭开关1
的脚本             就是需要进入战斗前的黑暗画面打开 开关1  
梦石
10
星屑
39550
在线时间
1919 小时
注册时间
2010-11-14
回帖
3214

R考场第七期纪念奖

发表于 2019-1-24 00:27:44 | 显示全部楼层
[pre lang="ruby"]class Scene_Battle
  alias start_for_switch_on start
  def start
    $game_switches[1] = true
    start_for_switch_on
  end  
  alias terminate_for_switch_off terminate
  def terminate
    $game_switches[1] = false
    terminate_for_switch_off
  end
end[/pre]

新建工程测试通过

评分

参与人数 1星屑 +30 收起 理由
VIPArcher + 30 认可答案

查看全部评分

用头画头像,用脚写脚本
回复

使用道具 举报

梦石
0
星屑
2197
在线时间
225 小时
注册时间
2018-4-23
回帖
83
 楼主| 发表于 2019-1-24 14:11:55 | 显示全部楼层
KB.Driver 发表于 2019-1-24 00:27
class Scene_Battle
  alias start_for_switch_on start
  def start

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

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部