| 
 
| 赞 | 0 |  
| VIP | 10 |  
| 好人卡 | 49 |  
| 积分 | 13 |  
| 经验 | 22958 |  
| 最后登录 | 2020-8-1 |  
| 在线时间 | 2161 小时 |  
 Lv3.寻梦者 酱油的 
	梦石0 星屑1315 在线时间2161 小时注册时间2007-12-22帖子3271 
 | 
| 其實很簡單啦……== 只要在腳本裏面改變兩樣東西
 1.Arrow_Actor裏面的update方法裏面加多個判斷:
 如果角色中了某種狀態,光標自動跳過。
 
   #--------------------------------------------------------------------------# ● 刷新画面
 #--------------------------------------------------------------------------
 def update
 super
 # 光标右
 if Input.repeat?(Input::RIGHT)
 $game_system.se_play($data_system.cursor_se)
 @index += 1
 #----------------------------
 if $game_party.actors[@index].state?(狀態id)
 @index += 1
 end
 #----------------------------
 @index %= $game_party.actors.size
 end
 # 光标左
 if Input.repeat?(Input::LEFT)
 $game_system.se_play($data_system.cursor_se)
 @index += $game_party.actors.size - 1
 #----------------------------
 if $game_party.actors[@index].state?(狀態id)
 @index -= 1
 end
 #----------------------------
 @index %= $game_party.actors.size
 end
 # 设置活动块坐标
 if self.actor != nil
 self.x = self.actor.screen_x
 self.y = self.actor.screen_y
 end
 end
2。要在scene_battle 3的start_actor_select方法中添加判斷:
 如果角色中了某種狀態,光標不初始化在這個角色身上
 
   #--------------------------------------------------------------------------# ● 开始选择角色
 #--------------------------------------------------------------------------
 def start_actor_select
 # 生成角色箭头
 @actor_arrow = Arrow_Actor.new(@spriteset.viewport2)
 #----------------------------
 if $game_party.actors[@actor_index].state?(狀態id)
 if @actor_index == 0
 @actor_arrow.index = 1
 elsif @actor_index == $game_party.actors.size - 1
 @actor_arrow.index = @actor_index - 1
 end
 else
 @actor_arrow.index = @actor_index
 end
 #----------------------------
 # 关联帮助窗口
 @actor_arrow.help_window = @help_window
 # 无效化角色指令窗口
 @actor_command_window.active = false
 @actor_command_window.visible = false
 end
理論上是這樣做,但是同樣,這樣改變的話,如果這個角色中了這種狀態,不止物品無法選擇他,就連技能也無法選擇他。因爲在默認的戰鬥系統裏面,技能的選擇和物品的選擇調用的是同一個方法。
 
 因此,想要單獨是物品的話,就要按照上面的方法去寫一個新類(包括調用的選擇界面和在scene_battle 3當中的方法)。
 在scene_battle 3的update_phase3_item_select方法當中替換start_actor_select語句
 麻煩是麻煩一點了。如果不懂腳本的話就很難做得出來(應該==a)
 | 
 |