| 赞 | 0 |
| VIP | 0 |
| 好人卡 | 110 |
| 积分 | 1 |
| 经验 | 24791 |
| 最后登录 | 2013-6-25 |
| 在线时间 | 687 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 687 小时
- 注册时间
- 2012-10-29
- 帖子
- 1543
|
Game_Party 的:-
- #--------------------------------------------------------------------------
- # ● 交换顺序
- #--------------------------------------------------------------------------
- def swap_order(index1, index2)
- return if (index1 == 0 or index2 == 0) #加这一行
- @actors[index1], @actors[index2] = @actors[index2], @actors[index1]
- $game_player.refresh
- end
复制代码 看看有没有什么问题?就是如果交换的两个索引值其中有一个为 0,表示为选中领队,就跳出不换。 |
评分
-
查看全部评分
|