Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 That nasty SP bar
#12
Version 1.4 coming up

Code:
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# DerVV's Enemy/Actor HP / SP Bars Fix v 1.4
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# By:  DerVVulfman (a fix for El Conducter's script v 4.0)
# Written May 12, 2016
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Put below his script and it should allow SP healing and damage now!!!
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



#==============================================================================
# ** Scene_Battle
#------------------------------------------------------------------------------
#  This class performs battle screen processing.
#==============================================================================

class Scene_Battle
  #--------------------------------------------------------------------------
  # * Frame Update (main phase step 2 : start action)
  #--------------------------------------------------------------------------
  alias elconducter_set_sp_fix1 set_target_battlers
  alias elconducter_set_sp_fix2 make_basic_action_result
  #--------------------------------------------------------------------------
  # * Set Targeted Battler for Skill or Item
  #     scope : effect scope for skill or item
  #--------------------------------------------------------------------------
  def set_target_battlers(scope)
    # The original call to get the scopes
    scopers = elconducter_set_sp_fix1(scope)
    # Now create an empty area to store SP values
    @battler_sp_dmg = []
    # And cycle through all the determined battlers to get 'em
    for target in @target_battlers
      @battler_sp_dmg.push(target.sp)
    end
    return scopers
  end
  #--------------------------------------------------------------------------
  # * Make Basic Action Results
  #--------------------------------------------------------------------------
  def make_basic_action_result
    # Set the array to nil (to skip any SP healing)
    @battler_sp_dmg = nil
    # And return with the called action
    return elconducter_set_sp_fix2
  end
  #--------------------------------------------------------------------------
  # * Frame Update (main phase step 5 : damage display)
  #--------------------------------------------------------------------------
  def update_phase4_step5
    # Hide help window
    @help_window.visible = false
    # Refresh status window
    @status_window.refresh
    # Display damage
    for target in @target_battlers
      if target.damage != nil
        target.damage_pop = true
      end
    end
    counter = 0
    # Display damage
    for target in @target_battlers
      # Default each target to no magic
      target.magic_casting = false
      # Skip if the battler array is nil
      next if @battler_sp_dmg.nil?
      # Get the old SP value
      old_sp = @battler_sp_dmg[counter]
      # Compare if the old SP to the new SP
      if old_sp != target.sp
        # Set the passed sp_used to the difference
        target.sp_used = old_sp - target.sp
        # And set magic casting flag to true
        target.magic_casting = true
      end
      # Ad to the count
      counter += 1
    end
    # Shift to step 6
    @phase4_step = 6
  end  
end
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png] [Image: liM4ikn.png] [Image: fdzKgZA.png] [Image: sj0H81z.png]
[Image: QL7oRau.png] [Image: uSqjY09.png] [Image: GAA3qE9.png] [Image: 2Hmnx1G.png] [Image: BwtNdKw.png%5B]
Above are clickable links

Reply }


Messages In This Thread
That nasty SP bar - by Melana - 05-03-2016, 11:35 AM
RE: That nasty SP bar - by DerVVulfman - 05-11-2016, 04:38 AM
RE: That nasty SP bar - by Melana - 05-11-2016, 11:17 AM
RE: That nasty SP bar - by DerVVulfman - 05-12-2016, 03:22 AM
RE: That nasty SP bar - by Melana - 05-12-2016, 03:33 AM
RE: That nasty SP bar - by DerVVulfman - 05-12-2016, 03:44 AM
RE: That nasty SP bar - by Melana - 05-12-2016, 03:52 AM
RE: That nasty SP bar - by DerVVulfman - 05-12-2016, 03:59 AM
RE: That nasty SP bar - by Melana - 05-12-2016, 04:06 AM
RE: That nasty SP bar - by DerVVulfman - 05-12-2016, 04:47 AM
RE: That nasty SP bar - by Melana - 05-12-2016, 01:07 PM
RE: That nasty SP bar - by DerVVulfman - 05-13-2016, 03:38 AM
RE: That nasty SP bar - by Melana - 05-13-2016, 03:17 PM
RE: That nasty SP bar - by DerVVulfman - 05-14-2016, 02:53 AM
RE: That nasty SP bar - by Melana - 05-14-2016, 03:47 AM
RE: That nasty SP bar - by DerVVulfman - 05-15-2016, 06:30 PM
RE: That nasty SP bar - by Melana - 05-21-2016, 03:06 AM



Users browsing this thread: