赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 4 |
经验 | 13255 |
最后登录 | 2023-10-23 |
在线时间 | 214 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 413
- 在线时间
- 214 小时
- 注册时间
- 2011-3-21
- 帖子
- 161
|
本帖最后由 1095884734 于 2017-3-5 09:50 编辑
- def 队伍还原
- if $game_switches[20] == true
- if $game_variables[2] == 0
- $game_party.remove_actor(2)
- $game_party.add_actor(2)
- else
- $game_party.remove_actor(9+$game_variables[2])
- $game_party.add_actor(9+$game_variables[2])
- end
- end
- if $game_switches[21] == true
- if $game_variables[3] == 0
- $game_party.remove_actor(3)
- $game_party.add_actor(3)
- else
- $game_party.remove_actor(9+$game_variables[3])
- $game_party.add_actor(9+$game_variables[3])
- end
- end
- if $game_switches[22] == true
- if $game_variables[50] == 0
- $game_party.remove_actor(4)
- $game_party.add_actor(4)
- else
- $game_party.remove_actor(9+$game_variables[50])
- $game_party.add_actor(9+$game_variables[50])
- end
- end
- if $game_variables[4] == 0
- else
- $game_party.remove_actor(9+$game_variables[4])
- $game_party.add_actor(9+$game_variables[4])
- end
- end
- def 队伍还原二
- if $game_switches[21] == true
- if $game_variables[3] == 0
- $game_party.remove_actor(3)
- $game_party.add_actor(3)
- else
- $game_party.remove_actor(9+$game_variables[3])
- $game_party.add_actor(9+$game_variables[3])
- end
- end
- if $game_switches[22] == true
- if $game_variables[50] == 0
- $game_party.remove_actor(4)
- $game_party.add_actor(4)
- else
- $game_party.remove_actor(9+$game_variables[50])
- $game_party.add_actor(9+$game_variables[50])
- end
- end
- if $game_variables[4] == 0
- else
- $game_party.remove_actor(9+$game_variables[4])
- $game_party.add_actor(9+$game_variables[4])
- end
- end
- def 队伍还原三
- if $game_switches[22] == true
- if $game_variables[50] == 0
- $game_party.remove_actor(4)
- $game_party.add_actor(4)
- else
- $game_party.remove_actor(9+$game_variables[50])
- $game_party.add_actor(9+$game_variables[50])
- end
- end
- if $game_variables[4] == 0
- else
- $game_party.remove_actor(9+$game_variables[4])
- $game_party.add_actor(9+$game_variables[4])
- end
- end
- def 队伍还原四
- =begin
- unless $game_variables[4] == 0
- $game_party.remove_actor(4+$game_variables[4])
- $game_party.add_actor(4+$game_variables[4])
- end
- =end
- end
复制代码
或者说用公共事件
用开关判定队友的人数
然后队友加入、离开来调整顺序 |
|