赞 | 0 |
VIP | 0 |
好人卡 | 4 |
积分 | 1 |
经验 | 5960 |
最后登录 | 2016-9-2 |
在线时间 | 115 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 115 小时
- 注册时间
- 2012-11-15
- 帖子
- 119
|
本帖最后由 zhaoxun96 于 2014-8-4 01:06 编辑
在队伍不参与战斗这么设定
- #======================================================
- # 某些角色不参与战斗,柳柳@66rpg.com
- #======================================================
- class Scene_Battle
- #====================================================
- # 不参与战斗的编号写在这里
- #====================================================
- I_AM_NPC = [1, 2, 3]
-
-
-
- # 不参与战斗的角色,进入战斗的时候临时离队
- alias o_start start unless $@
- def start
- @no_fight = []
- for aid in I_AM_NPC
- if $game_party.members.include?($game_actors[aid])
- @no_fight.push(aid)
- $game_party.remove_actor(aid)
- end
- end
- o_start
- end
-
- # 离队的角色,结束战斗的时候叫回来
- alias o_terminate terminate unless $@
- def terminate
- o_terminate
- for aid in @no_fight
- $game_party.add_actor(aid)
- end
- end
-
- end
复制代码 战斗中回复可以在敌群事件这么设定
请复制到这个敌群事件页到每个敌群下面
|
-
1.png
(203.16 KB, 下载次数: 24)
评分
-
查看全部评分
|