Advertisement
neonblack

Bubble Mix CPBE Fix

Dec 23rd, 2012
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.06 KB | None | 0 0
  1. ##------
  2. ## This snippet fixes a compatibility issue between CPBE and Bubble Mix command
  3. ## when a mix skill is set as a character's command.  The proper ordering of
  4. ## these three scripts is CPBE, Bubble Mix, then this snippet.
  5. ##   - Neon Black - 12.23.2012
  6. ##------
  7.  
  8. class Scene_Battle < Scene_Base  ## Checks if the two scripts are present.
  9.   if $imported["BubsMix"] && $imported["CP_BATTLEVIEW_2"]
  10.   def command_new_comms(skl = nil)
  11.     skill = skl ? skl : $data_skills[@actor_command_window.current_ext]
  12.     if skill.mix  ## Checks if the skill is a mix skill.
  13.       @mix_window.return_selected_items  ## Does stuff.
  14.       @mix_window.last_window = :yea_bcl
  15.       @mixing = true
  16.       @skill_window.hide
  17.       @mix_window.refresh
  18.       @mix_window.show.activate.select(0)
  19.     else  ## Does more stuff.
  20.       BattleManager.actor.input.set_skill(skill.id)
  21.       if !skill.need_selection?
  22.         next_command
  23.       elsif skill.for_opponent?
  24.         select_enemy_selection
  25.       else
  26.         select_actor_selection
  27.       end
  28.     end
  29.   end
  30.   end
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement