Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Make LockeZ's Sacrifice script Blizzard Compatible
#1
Hey MechanicalPen, do you remember this script?

Code:
#==============================================================================
# ** Window_Skill
#------------------------------------------------------------------------------
#  This window displays usable skills on the skill and battle screens.
#==============================================================================

class Window_Skill < Window_Selectable
  #--------------------------------------------------------------------------
  # * Draw Item (Rewrite for HP costs.
  #     index : item number
  #--------------------------------------------------------------------------
  def draw_item(index)
    skill = @data[index]
    if @actor.skill_can_use?(skill.id)
      self.contents.font.color = normal_color
    else
      self.contents.font.color = disabled_color
    end
    x = 4 + index % 2 * (288 + 32)
    y = index / 2 * 32
    rect = Rect.new(x, y, self.width / @column_max - 32, 32)
    self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
    bitmap = RPG::Cache.icon(skill.icon_name)
    opacity = self.contents.font.color == normal_color ? 255 : 128
    self.contents.blt(x, y + 4, bitmap, Rect.new(0, 0, 24, 24), opacity)
    self.contents.draw_text(x + 28, y, 204, 32, skill.name, 0)
    #draw costs
    if LockeZ::HP_Sacrifice_Action['Skill'].include?(skill.id)
      self.contents.font.color = text_color(2) #hp in red.
      action = LockeZ::HP_Sacrifice_Action['Skill'][skill.id];
      if action[1] == 'integer'
        cost = action[2].to_i
        self.contents.draw_text(x + 232, y, 48, 32, cost.to_s, 2)
      elsif action[1] == 'percent'
        cost = action[2].to_i
        self.contents.draw_text(x + 232, y, 48, 32, cost.to_s + "%", 2)
      end
    else
      self.contents.draw_text(x + 232, y, 48, 32, skill.sp_cost.to_s, 2)
    end
  end
end

It's to display the HP cost of LockeZ's HP Sacrifice script in the battle menu. Could you make it compatible with Blizzard's Stormtronics Custom battle menu so it can be displayed at the skill menu of the CMS?

The script can be found here:

http://downloads.chaos-project.com/scrip...dition.txt
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Script compatibility help Lord Vectra 3 3,555 07-25-2021, 11:42 PM
Last Post: DerVVulfman
   Adding face script on Cogwheel's RTAB Battle Status rekkatsu 15 12,810 08-25-2020, 03:09 AM
Last Post: DerVVulfman
   "Wait" in the script Whisper 13 13,653 04-28-2020, 04:06 PM
Last Post: Whisper
   Skill Cooldown script Fenriswolf 11 14,062 12-10-2019, 11:10 AM
Last Post: Fenriswolf
   Help iwth script (RGSS Player crash) Whisper 3 6,514 06-17-2017, 05:03 PM
Last Post: Whisper
   Help modifying a script Keeroh 7 8,922 06-11-2017, 04:43 PM
Last Post: DerVVulfman
Question  Mog Menu script: help me stop the crazy picture movement during transitions Zachariad 4 8,600 05-31-2017, 05:10 AM
Last Post: Zachariad
   Actor names in Quest Script jreagan406 5 7,575 03-07-2017, 08:06 AM
Last Post: JayRay
   Bizarre issue with Lanzer counter script. Steel Beast 6Beets 2 6,595 10-04-2016, 11:46 AM
Last Post: Steel Beast 6Beets
   Moonpearl script Animated Battlers help!! x(( Starmage 11 13,776 05-21-2016, 05:34 AM
Last Post: Starmage



Users browsing this thread: