赞 | 88 |
VIP | 350 |
好人卡 | 311 |
积分 | 100 |
经验 | 150139 |
最后登录 | 2024-6-24 |
在线时间 | 5019 小时 |
Lv4.逐梦者 (版主) 无限の剣制
- 梦石
- 0
- 星屑
- 10014
- 在线时间
- 5019 小时
- 注册时间
- 2013-2-28
- 帖子
- 5030
 
|
可以这样做,附加和解除状态时运行一下公共事件- class Game_Battler < Game_BattlerBase
- alias vip_02140815_add_state add_state
- alias vip_02140815_remove_state remove_state
- #--------------------------------------------------------------------------
- # ● 附加状态
- #--------------------------------------------------------------------------
- def add_state(state_id)
- vip_02140815_add_state(state_id)
- $game_temp.reserve_common_event(1) #公共事件
- end
- #--------------------------------------------------------------------------
- # ● 解除状态
- #--------------------------------------------------------------------------
- def remove_state(state_id)
- vip_02140815_remove_state(state_id)
- $game_temp.reserve_common_event(1) #公共事件
- end
- end
复制代码 未测试 |
评分
-
查看全部评分
|