设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 2084|回复: 0

[转载发布] 转日站的战斗中执行並行事件

[复制链接]

Lv5.捕梦者

梦石
0
星屑
33138
在线时间
10485 小时
注册时间
2009-3-15
帖子
4756
发表于 2019-6-12 17:36:04 | 显示全部楼层 |阅读模式

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

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

x
本帖最后由 soulsaga 于 2019-6-12 17:40 编辑

RUBY 代码复制
  1. #==============================================================================
  2. # ■ Scene_Battle
  3. #==============================================================================
  4. class Scene_Battle < Scene_Base
  5.   #--------------------------------------------------------------------------
  6.   # ● 開始処理
  7.   #--------------------------------------------------------------------------
  8.   alias fai_baco_start start
  9.   def start
  10.     pces = $data_common_events.select {|event| event && event.parallel? }
  11.     @common_events = pces.collect do |common_event|
  12.       Game_CommonEvent.new(common_event.id)
  13.     end
  14.     fai_baco_start
  15.   end
  16.   #--------------------------------------------------------------------------
  17.   # ● フレーム更新(基本)
  18.   #--------------------------------------------------------------------------
  19.   alias fai_baco_update_basic update_basic
  20.   def update_basic
  21.     @common_events.each{|event|event.refresh; event.update}
  22.     fai_baco_update_basic
  23.   end
  24. end
https://tm.lucky-duet.com/viewtopic.php?t=2400
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-4-18 13:28

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表