Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 MultiSlots!
#60
I have looked at your 'Brenda's Visual Battlers' script and it is awesome (no surprise). However I am using an 11-pose actor graphics for my battlers, so creating extra graphics with no weapon and other weapons would be more tedious than I would like. Thanks for the suggestion.

So, I added the extra lines into the script and I got the following error from Charlie Fleeds Bitmap, Draw Face 1.7:


.png   Capture.PNG (Size: 18.54 KB / Downloads: 5)

I am not sure exactly the issue with the script, but I have pasted Charlies Bitmap script below. Thanks for looking into it.

Code:
#==============================================================================
# ** Bitmap, Draw Face   ver. 1.7
# ** Author: Charlie Fleed
#==============================================================================

#==============================================================================
# ■ BITMAP
#==============================================================================

class Bitmap
  attr_accessor :bg_color
  #--------------------------------------------------------------------------
  # *
  #--------------------------------------------------------------------------  
  unless @charlie_fleed_bitmap_initialize
    @charlie_fleed_bitmap_initialize = true
    alias_method :cl_initialize, :initialize
    def initialize(a, b = nil)
      if b != nil
        cl_initialize(a, b)
      else
        cl_initialize(a)
      end
      @bg_color = Color.new(61,52,109)
    end  
  end
  
  #--------------------------------------------------------------------------
  # ● Draw Text Bordered
  # actually a draw_text_shadowed method
  #--------------------------------------------------------------------------
  def draw_text_bordered(x, y, width, height, text, align = 1)
    color2 = font.color.clone
    font.color.set(0, 0, 0)
    draw_text(x + 1, y + 1, width, height, text, align)
    font.color = color2
    draw_text(x, y, width, height, text, align)
  end
  
  #--------------------------------------------------------------------------
  # ● Draw Text Bordered 2
  #--------------------------------------------------------------------------
  def draw_text_bordered_2(x, y, width, height, text, align = 1)
    color2 = font.color.clone
    font.color = @bg_color
    draw_text(x + 1, y + 1, width, height, text, align)
    draw_text(x + 1, y - 1, width, height, text, align)
    draw_text(x - 1, y + 1, width, height, text, align)
    draw_text(x - 1, y - 1, width, height, text, align)
    font.color = color2
    draw_text(x, y, width, height, text, align)
  end
  
  #--------------------------------------------------------------------------
  # ● Draw Text Shadowed
  #--------------------------------------------------------------------------
  alias draw_text_shadowed draw_text_bordered
  
  #--------------------------------------------------------------------------
  # ● Draw Text Shadowed 2 (double shadow)
  #--------------------------------------------------------------------------
  def draw_text_shadowed_2(x, y, width, height, text, align = 1)
    color2 = font.color.clone
    font.color.set(0, 0, 0)
    draw_text(x + 2, y + 1, width, height, text, align)
    draw_text(x + 1, y + 2, width, height, text, align)
    draw_text(x + 1, y + 1, width, height, text, align)
    font.color = color2
    draw_text(x, y, width, height, text, align)
  end
end


#==============================================================================
# ■ RPG Cache
#==============================================================================

module RPG
  module Cache
    #--------------------------------------------------------------------------
    # ● Face
    #--------------------------------------------------------------------------
    def self.face(filename, hue)
      begin
          self.load_bitmap("Graphics/Faces/", filename, hue)
      rescue
          self.load_bitmap("Graphics/Faces/", "", hue)
      end    
    end
    
    #--------------------------------------------------------------------------
    # ● State
    #--------------------------------------------------------------------------
    def self.state(filename, hue)
      begin
          self.load_bitmap("Graphics/States/", filename, hue)
      rescue
          self.load_bitmap("Graphics/States/", "", hue)
      end    
    end
    
    #--------------------------------------------------------------------------
    # ● Turn
    #--------------------------------------------------------------------------
    def self.turn(filename)
      begin
          self.load_bitmap("Graphics/Pictures/turns/", filename)
      rescue
          self.load_bitmap("Graphics/Pictures/turns/", "")
      end    
    end
    
    #--------------------------------------------------------------------------
    # ● Style 3 Face
    #--------------------------------------------------------------------------
    def self.face_s3(filename, hue)
      begin
          self.load_bitmap("Graphics/Faces/", filename+"-s3", hue)
      rescue
          self.load_bitmap("Graphics/Faces/", "", hue)
      end    
    end
  end
end


#==============================================================================
# ■ WINDOW BASE
#==============================================================================

class Window_Base
  #--------------------------------------------------------------------------
  # ● Draw Actor Face
  #--------------------------------------------------------------------------
  def draw_actor_face_CF(actor, x, y, size = 0)
    bitmap = RPG::Cache.face(actor.name, actor.character_hue)
    return if bitmap == nil
    cw = bitmap.width
    ch = bitmap.height
    if size > 0
      dst_cw = size
      dst_ch = size
    else
      dst_cw = bitmap.width
      dst_ch = bitmap.height
    end
    dst_rect = Rect.new(x, y, dst_cw, dst_ch)
    src_rect = Rect.new(0, 0, cw, ch)
    self.contents.stretch_blt(dst_rect, bitmap, src_rect)
  end
  
  #--------------------------------------------------------------------------
  # ● Draw Actor Battle Status Face
  #--------------------------------------------------------------------------
  def draw_actor_battle_status_face(actor, x, y)
    bitmap = RPG::Cache.face(actor.name + "-battlestatus", actor.character_hue)
    return if bitmap == nil
    cw = bitmap.width
    ch = bitmap.height
    dst_cw = bitmap.width
    dst_ch = bitmap.height
    dst_rect = Rect.new(x, y, dst_cw, dst_ch)
    src_rect = Rect.new(0, 0, cw, ch)
    self.contents.stretch_blt(dst_rect, bitmap, src_rect)
  end
  
  #--------------------------------------------------------------------------
  # ● Draw Actor Face Small
  #--------------------------------------------------------------------------
  def draw_actor_face_small(actor, x, y, size = 0)
    bitmap = RPG::Cache.face(actor.name + "-small", actor.character_hue)
    # Fallback
    if bitmap == RPG::Cache.face("", actor.character_hue)
      bitmap = RPG::Cache.face(actor.name, actor.character_hue)
    end
    return if bitmap == nil
    cw = bitmap.width
    ch = bitmap.height
    if size > 0
      dst_cw = size
      dst_ch = size
    else
      dst_cw = bitmap.width
      dst_ch = bitmap.height
    end
    dst_rect = Rect.new(x, y, dst_cw, dst_ch)
    src_rect = Rect.new(0, 0, cw, ch)
    self.contents.stretch_blt(dst_rect, bitmap, src_rect)
  end
  #--------------------------------------------------------------------------
  # ● Draw State Icon
  #--------------------------------------------------------------------------
  def draw_state_icon(state_id, x, y, size = 24)
    return if state_id == 0
    bitmap = RPG::Cache.state($data_states[state_id].name, 0)
    return if bitmap == nil
    cw = bitmap.width
    ch = bitmap.height
    dst_cw = size
    dst_ch = size
    dst_rect = Rect.new(x, y, dst_cw, dst_ch)
    src_rect = Rect.new(0, 0, cw, ch)
    self.contents.stretch_blt(dst_rect, bitmap, src_rect)
  end
end
Habs11
Reply }


Messages In This Thread
MultiSlots! - by DerVVulfman - 03-05-2008, 08:57 AM
RE: MultiSlots! - by DerVVulfman - 02-17-2011, 05:17 AM
RE: MultiSlots! - by Kristovski - 02-17-2011, 05:27 PM
RE: MultiSlots! - by Cloak of Laser Cannon - 03-18-2011, 12:19 PM
RE: MultiSlots! - by Ace - 03-18-2011, 10:53 PM
RE: MultiSlots! - by DerVVulfman - 03-19-2011, 03:40 AM
RE: MultiSlots! - by Cloak of Laser Cannon - 03-19-2011, 01:37 PM
RE: MultiSlots! - by DerVVulfman - 03-20-2011, 04:17 AM
RE: MultiSlots! - by Cloak of Laser Cannon - 03-21-2011, 10:14 AM
RE: MultiSlots! - by DerVVulfman - 03-22-2011, 03:32 AM
RE: MultiSlots! - by Cloak of Laser Cannon - 03-22-2011, 10:46 AM
RE: MultiSlots! - by MetalRenard - 03-22-2011, 10:59 AM
RE: MultiSlots! - by DerVVulfman - 03-23-2011, 03:57 AM
RE: MultiSlots! - by MegaPowerNinja - 04-25-2011, 05:44 PM
RE: MultiSlots! - by DerVVulfman - 04-26-2011, 03:34 AM
RE: MultiSlots! - by MegaPowerNinja - 07-06-2011, 02:52 AM
RE: MultiSlots! - by DerVVulfman - 07-06-2011, 04:04 AM
RE: MultiSlots! - by jccaton - 07-25-2011, 03:52 PM
RE: MultiSlots! - by DerVVulfman - 07-26-2011, 03:46 AM
RE: MultiSlots! - by DerVVulfman - 07-27-2011, 05:24 AM
RE: MultiSlots! - by jccaton - 07-27-2011, 12:42 PM
RE: MultiSlots! - by XP Kobold - 08-06-2011, 08:41 PM
RE: MultiSlots! - by DerVVulfman - 08-07-2011, 03:34 AM
RE: MultiSlots! - by XP Kobold - 08-07-2011, 02:23 PM
RE: MultiSlots! - by DerVVulfman - 08-08-2011, 03:29 AM
RE: MultiSlots! - by DerVVulfman - 08-09-2011, 02:57 AM
RE: MultiSlots! - by Jojozityjo - 10-09-2011, 11:26 AM
RE: MultiSlots! - by DerVVulfman - 10-20-2011, 03:36 AM
RE: MultiSlots! - by DerVVulfman - 11-23-2011, 05:17 AM
RE: MultiSlots! - by Waddle Dee - 03-24-2013, 11:16 AM
RE: MultiSlots! - by DerVVulfman - 03-25-2013, 03:38 AM
RE: MultiSlots! - by Waddle Dee - 03-25-2013, 01:09 PM
RE: MultiSlots! - by habs11 - 07-12-2013, 08:31 PM
RE: MultiSlots! - by DerVVulfman - 07-13-2013, 04:03 AM
RE: MultiSlots! - by habs11 - 07-13-2013, 10:37 PM
RE: MultiSlots! - by DerVVulfman - 07-14-2013, 03:19 AM
RE: MultiSlots! - by habs11 - 07-14-2013, 04:30 PM
RE: MultiSlots! - by Cassandrainbows - 05-11-2016, 10:09 AM
RE: MultiSlots! - by DerVVulfman - 05-12-2016, 03:30 AM
RE: MultiSlots! - by Cassandrainbows - 05-12-2016, 06:21 PM
MultiSlots! - by DerVVulfman - 07-14-2009, 03:59 AM
RE: MultiSlots! - by DerVVulfman - 11-22-2018, 04:32 AM
RE: MultiSlots! - by DerVVulfman - 02-05-2019, 05:10 AM
MultiSlots! - by Charlie Fleed - 08-02-2009, 11:35 AM
MultiSlots! - by DerVVulfman - 08-03-2009, 05:20 PM
MultiSlots! - by PanchoKoster - 08-09-2009, 04:40 AM
MultiSlots! - by DerVVulfman - 08-09-2009, 05:32 AM
MultiSlots! - by DerVVulfman - 08-11-2009, 12:54 AM
MultiSlots! - by DerVVulfman - 08-17-2009, 07:59 PM
RE: MultiSlots! - by DerVVulfman - 12-26-2012, 08:06 AM
RE: MultiSlots! - by DerVVulfman - 10-28-2014, 07:50 AM
RE: MultiSlots! - by DerVVulfman - 05-26-2016, 03:08 AM
RE: MultiSlots! - by DerVVulfman - 08-23-2018, 04:23 AM
MultiSlots! - by Cloak of Laser Cannon - 09-05-2009, 08:53 AM
MultiSlots! - by DerVVulfman - 09-05-2009, 03:47 PM
MultiSlots! - by DerVVulfman - 09-07-2009, 03:49 AM
MultiSlots! - by Cloak of Laser Cannon - 09-08-2009, 09:21 AM
MultiSlots! - by DerVVulfman - 09-08-2009, 04:23 PM
MultiSlots! - by Cloak of Laser Cannon - 09-09-2009, 09:28 AM
MultiSlots! - by DerVVulfman - 09-09-2009, 09:55 PM
MultiSlots! - by DerVVulfman - 09-11-2009, 03:59 AM
MultiSlots! - by Crono - 09-15-2009, 07:11 AM
MultiSlots! - by DerVVulfman - 09-15-2009, 10:41 PM
MultiSlots! - by DerVVulfman - 09-18-2009, 05:23 AM
MultiSlots! - by Charlie Fleed - 10-27-2009, 01:41 AM
MultiSlots! - by DerVVulfman - 10-27-2009, 03:39 AM
MultiSlots! - by Charlie Fleed - 10-27-2009, 02:54 PM
MultiSlots! - by DerVVulfman - 10-28-2009, 08:06 PM
MultiSlots! - by Charlie Fleed - 10-28-2009, 09:51 PM
MultiSlots! - by DerVVulfman - 10-14-2010, 03:56 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Auto Equip Optimizer for Guillaume777's MultiSlots DerVVulfman 1 6,356 06-20-2012, 03:26 PM
Last Post: buddysievers
   MultiSlots! Store Patch - Advanced Shop DerVVulfman 0 5,605 10-24-2010, 03:39 AM
Last Post: DerVVulfman



Users browsing this thread: