Showing variables and stuff instead of MP Bar

Hey,

I thought that this would be the best place to post my question, since I'm looking for a script, even though I'm in fact not requesting a new one.

Indrah and Fomar made this game:

http://forums.rpgmakerweb.com/index.php?/topic/12570-in-search-of-immortality/

In the menu there is no mp bar, which is easy to do, but when you're in battle it shows various  informations in this place.

Every actor has its own variable or item etc. that can be displayed.

My question now is how can I make this happen. I'd need a similar system to show an actor specific varibale instead of the mp bar, different for each actor.

In my googling I found out, that it may have something to do with this script by modern algebra

But I just don't know how to make it display this different things for any actor, and if I write a variable as name of the MP bar, I have to show the complete bar with the gauge and the MP values. Just the name gets changed to the variable.

But I want it to be exactly like in the game from Indrah and Fomar.

Does anybody know how to do this?

Thanks in advance

Ice Cluster
/bump
/bump
/bump
Are you familiar with scripting? If so, the last 2 methods of Window_BattleStatus are the methods to be altered for that. If not give me a little while and I will help you out.

What battle system are you using? (You might want to add that info to the top too kinda helps)
Well, I can do very simple edits to scripts, but I'm not familiar with scripting things myself, so it would be very nice, if you'd help me out.

I'm currently using neon black's battle engine with mode 3 activated.
This should do it. You just need a couple notebox tags. One for the actor and one for the skills. The Instructions are in the top of the script. Let me know how it works out for you.

Spoiler
Code:
#<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>##                                                                              ##                              V's Variable Skills                             ##                    Noen Blacks Battle System: Mode 3 (Add-On)                ##                                 Version  0.1                                 ##                                                                              ##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~##                                Written By:  V                                ##                       Last Edited:  September 10, 2013                       ##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~##                                                                              ##<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>#  #==============================================================================##------------------------------------------------------------------------------## ** Disclaimer                                                                ##------------------------------------------------------------------------------##                                                                              ## This script was intended for Non-commercial use only, if you wish to use     ## this script in a commercial game please PM me at which ever site you found   ## this script. Either way please give me credit in your game script as the     ## writer of this script, and send me a PM abuot the release of the game/demo.  ##                                                                              ##------------------------------------------------------------------------------## ** How To Use                                                                ##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~##                                                                              ## * This script is semi-plug-and-play. You must be using                       ##                                                  Neon Blacks Battle Sysytem  ##                                                                              ## * ALL ACTORS MUST HAVE THIS TAG OR YOU WILL GET AN ERROR!                    ##                                                                              ##   Replace the words with the corresponding numbers                           ##                                                                              ##   <VBS: (Skill 1 Var), (Skill 1 Icon), (Skill 2 Var), (Skill 1 Icon)>        ##                                                                              ##   It should look something like this.                                        ##                                                                              ##   <VBS: 1, 22, 2, 23>                                                        ##                                                                              ##                                                                              ## * ALL SKILLS MUST HAVE THIS TAG OR YOU WILL GET AN ERROR!                    ##                                                                              ##   Replace the words with the corresponding numbers                           ##                                                                              ##   <VBS: (Var to deduct cost from)>                                           ##                                                                              ##   It should look something like this.                                        ##                                                                              ##   <VBS: 1>                                                                   ##                                                                              ##                                                                              ##                                                                              ##------------------------------------------------------------------------------## ** Description                                                               ##------------------------------------------------------------------------------##                                                                              ##  v0.1                                                                        ## ~=~=~=~                                                                      ##                                                                              ## This script is an Add-On for Noen Black's Battle System and has only been    ## tested for use in Mode 3.                                                    ##                                                                              ##------------------------------------------------------------------------------##==============================================================================#class Game_BattlerBase  def skill_mp_cost(skill)    skill.mp_cost  end  def skill_tp_cost(skill)    skill.tp_cost  end  def skill_cost_payable?(skill)     = /<VBS:\s*(\d*)>/i    note = $data_skills[skill.id].note.scan() if $data_skills[skill.id].note.scan() != nil    bv = $1.to_i    $game_variables[bv] >= skill_tp_cost(skill) && $game_variables[bv] >= skill_mp_cost(skill)  end  def pay_skill_cost(skill)     = /<VBS:\s*(\d*)>/i    note = $data_skills[skill.id].note.scan() if $data_skills[skill.id].note.scan() != nil    bv = $1.to_i    skill_mp_cost(skill) == 0 ? $game_variables[bv] -= skill_tp_cost(skill) : $game_variables[bv] -= skill_mp_cost(skill)  endendclass Window_BattleStatus < Window_Selectable  def draw_basic_area_bv2(rect, actor)  ## Draws the basic HUD items.    bottom = rect.y + rect.height    i_w = contents.text_size(actor.name).width    ncen = (rect.width - i_w) / 2    total_icons = actor.state_icons.size + actor.buff_icons.size    icen = [rect.width - total_icons * 24, rect.width % 24].max    faces = CP::BATTLERS.face    iy = faces ? bottom - line_height * 2 - 24 : rect.y    ny = faces ? rect.y : bottom - line_height * 3    draw_object_back(rect.x, ny- 25, rect.width, ncen)    draw_actor_name(actor, rect.x + ncen, ny - 25, rect.width)    draw_actor_icons(actor, rect.x + icen / 2, iy, rect.width - icen)  end  def draw_gauge_area_bv2(rect, actor)     dvas(rect, actor)  end  def dvas(rect, actor)     = /<VBS:\s*(\d*)\S*\s*(\d*)\S*\s*(\d*)\S*\s*(\d*)>/i    note = $data_actors[actor.id].note.scan() if $data_actors[actor.id].note.scan() != nil    var = $1.to_i    icon_id = $2.to_i    vara = $3.to_i    icon_ida = $4.to_i    draw_actor_hp(actor, rect.x, rect.y + 45, 100)    draw_icon(icon_id, rect.x, rect.y + 65)    draw_text(rect.x - 495, rect.y + 18, self.width, self.height, $game_variables[var], 2)    draw_icon(icon_ida, rect.x + 50, rect.y + 65)    draw_text(rect.x - 445, rect.y + 18, self.width, self.height, $game_variables[vara], 2)  endend
I adjusted the script to only display one variable per actor and changed the position of the variable text, to suit my resolution, so now it shows the variables just as I wanted.

Thanks for this.

Maybe you could add an option to have the variable cost negative, to make skills that restore the variable.
I'll check into that for you.
An even easier solution, you can set the skill to 0 cost and the set it to trigger a common event and restore the variable that way.

Original thread: https://forums.rpgmakerweb.com/threads/showing-variables-and-stuff-instead-of-mp-bar.17599/