I think this should work for you:
CODE
#==============================================================================
# ** VX: Night_Runner's MixSkills After Battle
#------------------------------------------------------------------------------
# History:
# Date Created: 5/April/2012
# Created for: andre3000
# @> http://www.rpgrevolution.com/forums/index.php?showtopic=14336
#
# Description:
# This script automatically opens Woratana's Mixskill scene after specific
# battlers level up
#
# How to Install:
# Copy this entire script. In your game editor select Tools >> Script Editor.
# Along the left hand side scroll to the bottom, right click on 'Main' and
# select 'Insert'.
# Paste this code in the blank window on the right.
# MAKE SURE THIS CODE IF AFTER WORATANA'S MIX SKILL SYSTEM SCRIPT.
#==============================================================================
#==============================================================================
# ** Customisation
#==============================================================================
module NR_MixSkill
# By default Actors 1 & 2 (Ralph & Ulrika) activate the Mixskill script
# when they level up.
Actor_IDs = [1, 2]
# Whether or not to stop processing after the skills have been mixed
Return_After_Mixing = true
end
#==============================================================================
# ** Scene_Battle
#------------------------------------------------------------------------------
# Edited to go to Woratana's Mixskill scene after specific actors level up.
#==============================================================================
class Scene_Battle
#--------------------------------------------------------------------------
# * Alias Methods
#--------------------------------------------------------------------------
alias nr_mixSkills_process_victory process_victory unless $@
#--------------------------------------------------------------------------
# * Start processing
#--------------------------------------------------------------------------
def process_victory(*args)
# Backup the original levels
orig_levels = []
$game_party.members.each { |member| orig_levels << member.level }
# Run the original process_victory
nr_mixSkills_process_victory(*args)
for i in 0...$game_party.members.size
member = $game_party.members[i]
if member.level != orig_levels[i]
if NR_MixSkill::Actor_IDs.to_a.include?(member.id)
$scene = Scene_Mixskill.new
end
end
end
end
end
#==============================================================================
# ** Scene_MixSkill
#------------------------------------------------------------------------------
# Edited to return to the last scene.
#==============================================================================
class Scene_Mixskill
#--------------------------------------------------------------------------
# * Alias Methods
#--------------------------------------------------------------------------
alias nr_mixSkill_terminate terminate unless $@
alias nr_mixSkill_runstep runstep unless $@
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
# Backup the scene used to get to this scene
@return_scene = $scene.clone
end
def runstep(id, *args)
# Run the original runstep
nr_mixSkill_runtep(id, *args)
terminate if id == 5 and NR_MixSkill::Return_After_Mixing
#--------------------------------------------------------------------------
# * Termination Processing
#--------------------------------------------------------------------------
def terminate
# Run the original terminate
nr_mixSkill_terminate
# Return to the last scene
$scene = @return_scene
end
end
#==============================================================================
# ** End of Script.
#==============================================================================