TP bar in the menu

Fridjah

Veteran
Veteran
Joined
Jan 13, 2015
Messages
155
Reaction score
7
First Language
French
Primarily Uses
RMVXA
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.
 

Gothic Lolita

YouTube Starlet
Veteran
Joined
Oct 21, 2014
Messages
1,132
Reaction score
197
First Language
German
Primarily Uses
RMMV
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/)
 

Fridjah

Veteran
Veteran
Joined
Jan 13, 2015
Messages
155
Reaction score
7
First Language
French
Primarily Uses
RMVXA
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.
 
Last edited by a moderator:

Susan

Veteran
Veteran
Joined
Sep 1, 2014
Messages
2,748
Reaction score
8,346
First Language
No idea...
Primarily Uses
RMMV
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.
 

Fridjah

Veteran
Veteran
Joined
Jan 13, 2015
Messages
155
Reaction score
7
First Language
French
Primarily Uses
RMVXA
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
 
Last edited by a moderator:

Susan

Veteran
Veteran
Joined
Sep 1, 2014
Messages
2,748
Reaction score
8,346
First Language
No idea...
Primarily Uses
RMMV
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. ^^
 

Fridjah

Veteran
Veteran
Joined
Jan 13, 2015
Messages
155
Reaction score
7
First Language
French
Primarily Uses
RMVXA
Awsome! Thank you+1

And glade to be your "1000" post

Café time!

EDIT: 1001 and 1002, reversed counted, btw yohoho!
 
Last edited by a moderator:

JAD94

The lunar knight
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
189
First Language
English
Primarily Uses
RMMV
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? :)
 

Susan

Veteran
Veteran
Joined
Sep 1, 2014
Messages
2,748
Reaction score
8,346
First Language
No idea...
Primarily Uses
RMMV
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. ^^
 

JAD94

The lunar knight
Veteran
Joined
Feb 18, 2014
Messages
662
Reaction score
189
First Language
English
Primarily Uses
RMMV
Thank you :)

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

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,018
Members
137,563
Latest member
MinyakaAeon
Top