Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Edit to the HP/SP system

okay,

1.
find
(Scene_Battle4 line 341)
Code:
@active_battler.sp -= @skill.sp_cost

and replace with this
Code:
@active_battler.hp -= @skill.sp_cost

2.
find and delete this:
(Window_Base line 240-269)
Code:
  #--------------------------------------------------------------------------
  # * Draw SP
  #     actor : actor
  #     x     : draw spot x-coordinate
  #     y     : draw spot y-coordinate
  #     width : draw spot width
  #--------------------------------------------------------------------------
  def draw_actor_sp(actor, x, y, width = 144)
    # Draw "SP" text string
    self.contents.font.color = system_color
    self.contents.draw_text(x, y, 32, 32, $data_system.words.sp)
    # Calculate if there is draw space for MaxHP
    if width - 32 >= 108
      sp_x = x + width - 108
      flag = true
    elsif width - 32 >= 48
      sp_x = x + width - 48
      flag = false
    end
    # Draw SP
    self.contents.font.color = actor.sp == 0 ? knockout_color :
      actor.sp <= actor.maxsp / 4 ? crisis_color : normal_color
    self.contents.draw_text(sp_x, y, 48, 32, actor.sp.to_s, 2)
    # Draw MaxSP
    if flag
      self.contents.font.color = normal_color
      self.contents.draw_text(sp_x + 48, y, 12, 32, "/", 1)
      self.contents.draw_text(sp_x + 60, y, 48, 32, actor.maxsp.to_s)
    end
  end

3. search (CTRL+F) with draw_actor_sp
and delete this
Code:
draw_actor_sp(actor, *, **)
(* and ** are wild cards they are each time different.)
in
Window_Help (line 43)
Menu_Status (line 35)
Window_Skillstatus(line 26)
Window_Target(line 32)
Window_Status(line 29)
Window_Battlestats(line 41)

If you don't get I can give you a Demo
~The Crimson Ninja
 
Instead of deleting the whole method, just delete these lines within the method:
Code:
self.contents.draw_text(x, y, 32, 32, $data_system.words.sp)
self.contents.draw_text(sp_x, y, 48, 32, actor.sp.to_s, 2)
self.contents.draw_text(sp_x + 48, y, 12, 32, "/", 1)
self.contents.draw_text(sp_x + 60, y, 48, 32, actor.maxsp.to_s)
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top