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.

how can i add HP / SP/ wulfman limitbreak with bar o.o

Hi I am having trouble adding some life bars while in battle and I dont know how to add DerVVulfmans limit break script to my game. By the way I am using RTAB Battle system I dont know if that has something to do with it. Any advice please I am stuck
 
You really want to use a custom HP/SP/EXP script to your project that includes Limit Break...and don't have Limit Break bars, right?

The basics for a Limit Break bar is that it resembles the code for an HP bar (ie copy/paste the sucker). But you will also need to revise some features in 'copied' bar. First, you will need to rename the def to work with Limit Break. You need to refer to the limitbreak value in the script. And you probably want a different color combination.

And... just in case, there is a little 'Cheapo Limit Bar' script-ette in the Limit Break topic's first page for you to examine. It isn't much... merely the basics. But it should help.
 
Crap I got no luck Wulfman. I pasted the cheapo bars on top of my main and I keep getting Syntax error. I pasted the limit break script and it doesnt seem to cause any problems. I know I am a complete noob at this sorry.
 
Just 'what' bar script are you using (or want to use) for your HP and SP bars? At least with that, one can see about crafting a matching LB bar.

Use a link to the original bar script if possible.
 
Dang, Got me again. I guess I am not using a bar. I thought the Cheapo bar script WAS a bar. So can you recommend me any bars that work with RTAB battle system? I really want to use your limit break script.
 
recca27;276695 said:
Dang, Got me again. I guess I am not using a bar. I thought the Cheapo bar script WAS a bar. So can you recommend me any bars that work with RTAB battle system? I really want to use your limit break script.

Gauges work with RTAB:
'Cogwheel' Shou's Gauge: http://members.jcom.home.ne.jp/cogwheel/script/gauge.html
CogWheel Plug 'n' Play Menu Bars by syvkal: http://www.rmxp.org/forums/showthread.php?t=4121
Slanted Bar for RTAB by Clive: http://www.rmxp.org/forums/showthread.php?t=7915 (Already includes Overdrive/Limit Bar)
Trickster's Plug & Play Gradient Bars: http://www.rmxp.org/forums/showthread.php?t=5719
 
That system rewrites the Gauge_Rect def to use a mere 6 values instead of the 12+ values required for all the various bars in RTAB alone (atb, delay, combined skills... etc).

Here's a little scriptette for you:
Code:
#Limit Break Bar Patch
#for CogWheel Plug 'n' Play Menu Bars
#Patch by DerVVulfman (09/12/2007)
#
#==============================================================================
# ** Window_Base
#------------------------------------------------------------------------------
#  This class is for all in-game windows.
#==============================================================================

class Window_Base < Window
  #=========================================================================
  # * Draw Actor Limit Break Bar
  #     actor : Actor
  #     x     : draw spot x-coordinate
  #     y     : draw spot y-coordinate
  #     width : draw spot width
  #=========================================================================
  def draw_actor_lb(actor, x, y, width = 144)
    rate = actor.limitbreak.to_f / LB_MAX
    plus_x = 0
    rate_x = 0
    plus_y = 15
    plus_width = 0
    rate_width = 100
    height = 7
    # Adjust Bar Color based on Gradiation
    color1 = Color.new(14 * rate, 80 - 24 * rate, 80 * rate, 192)
    color2 = Color.new(62 * rate, 240 - 72 * rate, 240 * rate, 192)
    lb = (width + plus_width) * actor.limitbreak * rate_width / 100 / LB_MAX
    # Draw Bar Graph
    cw_gauge(x + width * 0 / 100, y + 25, width, 10, lb, color1, color2)
  end
end
This is to be placed BELOW Limit Break so Limit Break accesses the newly re-defined draw_actor_lb def (replacing the one in Limit Break). But, it uses the revised cw_gauge system in the bars you're using, so they work in tandem. ;)
 

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