TP bar in the menu

Hello.

I looking for a way to just add a TP bar below the MP bar in the Menu screen

and in the status screen too. Like in the Yanfly menu engine:

https://yanflychannel.wordpress.com/rmvxa/menu-scripts/ace-menu-engine/

I just need the TP bar draw, not a whole script with a lot of stuffs

that I will never use.

So if someone has a little script to share ^^:

Thanks in advance.
You can use the Yanfly Ace Menu Engine for that, it add's nothing, unless you add some stuff to it. 😉
Using it for myself and never had any issues, I still use it without the base script of Yanfly. No problems there. 🙂 (\s/)
You can use the Yanfly Ace Menu Engine for that, it add's nothing, unless you add some stuff to it. 😉

Using it for myself and never had any issues, I still use it without the base script of Yanfly. No problems there. 🙂 (\s/)
https://yanflychannel.wordpress.com/rmvxa/menu-scripts/ace-menu-engine/
Hi Princess.

I tried it and i have MP and TP on the same gauge cutted in the half like in battle mode.

EDIT: Plus that stuck with a quest système i wanted to use. It remove the "Quests" menu.
Try this snippet, extracted from Yanfly's Ace Menu Engine script:
 
class Window_Base < Window

#--------------------------------------------------------------------------
# overwrite method: draw_actor_simple_status
#--------------------------------------------------------------------------
def draw_actor_simple_status(actor, dx, dy)
    dy -= line_height / 2
    draw_actor_name(actor, dx, dy)
    draw_actor_level(actor, dx, dy + line_height * 1)
    draw_actor_icons(actor, dx, dy + line_height * 2)
    dw = contents.width - dx - 124
    draw_actor_class(actor, dx + 120, dy, dw)
    draw_actor_hp(actor, dx + 120, dy + line_height * 1, dw)
    draw_actor_mp(actor, dx + 120, dy + line_height * 2, dw/2 + 1)
    draw_actor_tp(actor, dx + 120 + dw/2, dy + line_height * 2, dw/2)
  end
end

If this is not what you have in mind, could you please specify exactly how you want the TP bar to be drawn.
Hi Susan.

I have the TP bar with your sample, but not like I would like to.

This is what I got and what I wanted on tne next pics.

EDIT: I realy dont know about scripting, but forcing my self to

understand a little bit, I found out that:

class Window_Base < Window

#--------------------------------------------------------------------------
# overwrite method: draw_actor_simple_status
#--------------------------------------------------------------------------
def draw_actor_simple_status(actor, dx, dy)
    dy -= line_height / 2
    draw_actor_name(actor, dx, dy)
    draw_actor_level(actor, dx, dy + line_height * 1)
    draw_actor_icons(actor, dx, dy + line_height * 2)
    dw = contents.width - dx - 124
    draw_actor_class(actor, dx + 120, dy, dw)
    draw_actor_hp(actor, dx + 120, dy + line_height * 1, dw)
    draw_actor_mp(actor, dx + 120, dy + line_height * 2, dw)
    draw_actor_tp(actor, dx + 120, dy + line_height * 3, dw)
  end
end

But I realy dont know how to show a TP bar in the Status menu.

Menu TP bar.png

Status TP bar.png
For the Status Window, I have to remove the states icons in this snippet to make way for the TP bar.

Try this snippet, and see if it suits you better:

class Window_Base < Window

 

#--------------------------------------------------------------------------

# overwrite method: draw_actor_simple_status

#--------------------------------------------------------------------------

def draw_actor_simple_status(actor, dx, dy)

    dy -= line_height / 2

    draw_actor_name(actor, dx, dy)

    draw_actor_level(actor, dx, dy + line_height * 1)

    draw_actor_icons(actor, dx, dy + line_height * 2)

    dw = contents.width - dx - 124

    draw_actor_class(actor, dx + 120, dy, dw)

    draw_actor_hp(actor, dx + 120, dy + line_height * 1, dw)

    draw_actor_mp(actor, dx + 120, dy + line_height * 2, dw)

    draw_actor_tp(actor, dx + 120, dy + line_height * 3, dw)

  end

end

 

class Window_Status < Window_Selectable

  def draw_basic_info(x, y)

    draw_actor_level(@actor, x, y + line_height * 0)

    draw_actor_hp(@actor, x, y + line_height * 1)

    draw_actor_mp(@actor, x, y + line_height * 2)

    draw_actor_tp(@actor, x, y + line_height * 3)

  end

end

 

Hope this helps. ^^
Awsome! Thank you+1

And glade to be your "1000" post

Café time!

EDIT: 1001 and 1002, reversed counted, btw yohoho!
Try this snippet, extracted from Yanfly's Ace Menu Engine script:

class Window_Base < Window

#--------------------------------------------------------------------------

# overwrite method: draw_actor_simple_status

#--------------------------------------------------------------------------

def draw_actor_simple_status(actor, dx, dy)

    dy -= line_height / 2

    draw_actor_name(actor, dx, dy)

    draw_actor_level(actor, dx, dy + line_height * 1)

    draw_actor_icons(actor, dx, dy + line_height * 2)

    dw = contents.width - dx - 124

    draw_actor_class(actor, dx + 120, dy, dw)

    draw_actor_hp(actor, dx + 120, dy + line_height * 1, dw)

    draw_actor_mp(actor, dx + 120, dy + line_height * 2, dw/2 + 1)

    draw_actor_tp(actor, dx + 120 + dw/2, dy + line_height * 2, dw/2)

  end

end

If this is not what you have in mind, could you please specify exactly how you want the TP bar to be drawn.
Hey I'd love to use this in my commercial project as well, do you require credit? 🙂
Hi, JAD94! Thanks for asking!

I don't need any credit for that snippet.

If you want to credit someone, please credit Yanfly. ^^

Good luck with your commercial project. ^^
Thank you 🙂

And ok will do, I have a couple of Yanfly's scripts in my project so he's definitely been credited already 🙂

Original thread: https://forums.rpgmakerweb.com/threads/tp-bar-in-the-menu.36896/