Hero Roster

If you know what you're doing (or can pretend well enough).

Spoiler
Code:
class Window_RosterStatus  def draw_parameters(x, y)    draw_actor_param(@actor, x, y + line_height * 0, 0 + 2)    draw_actor_param(@actor, x, y + line_height * 1, 1 + 2)    draw_actor_param(@actor, x, y + line_height * 2, 4 + 2)    draw_actor_param(@actor, x, y + line_height * 3, 5 + 2)  endend
I can't even pretend 🙂  Where do I toss this in?  I don't see this exact listing currently in the script.
Oh, put it anywhere below this script, it overwrites.
You are the man Vlue!  I have a related question but considerably more difficult I believe.  I am using Gubid's Tactical Battle System for my game.  He has the option to set the "Move" for your character and I am wondering if there is a way to show "Move" on your Hero Roster.  He has 2 ways to calculate move for a character.  One is by using the note tags on your characters screen and the other way is to place it directly in the script lines.  I know this is not your script but was wondering if you can create a patch onto yours.  If not I totally understand.

EDIT:

Strangely enough someone asked Gubid something very similar and here is his response:

You can get the actors effective movement range by asking $game_actors[iD].base_move_range. This will return their effective movement range.

Would this help you in adding to the bottom of the Hero Roster stats?
Wouldn't be hard since you have the neccessary information right there for me. This replaces what I already have you:

And should work.. maybe. I can't test it.

Spoiler
Code:
class Window_RosterStatus  def draw_parameters(x, y)    draw_actor_param(@actor, x, y + line_height * 0, 0 + 2)    draw_actor_param(@actor, x, y + line_height * 1, 1 + 2)    draw_actor_param(@actor, x, y + line_height * 2, 4 + 2)    draw_actor_param(@actor, x, y + line_height * 3, 5 + 2)    change_color(system_color)    draw_text(x, y + line_height * 4, 72, 24, "Move: ")    change_color(normal_color)    draw_text(72, y + line_height * 4, 24, 12, @actor.base_move_range.to_s)  endend
Love is a strong word...... but i think I love you.  It worked like a charm!  You are the man.
Alright my favorite scripter here is another challenge for you.   Can you add this Kill Counter to your hero roster?

http://forums.rpgmakerweb.com/index.php?/topic/10358-request-kill-counter-for-specific-actor/
Still easy.

Spoiler
Code:
class Window_RosterStatus  def draw_parameters(x, y)    draw_actor_param(@actor, x, y + line_height * 0, 0 + 2)    draw_actor_param(@actor, x, y + line_height * 1, 1 + 2)    draw_actor_param(@actor, x, y + line_height * 2, 4 + 2)    draw_actor_param(@actor, x, y + line_height * 3, 5 + 2)    change_color(system_color)    draw_text(x, y + line_height * 4, 72, 24, "Move: ")    draw_text(x, y + line_height * 5, 72, 24, "Kills: ")    change_color(normal_color)    draw_text(72, y + line_height * 4, 24, 24, @actor.base_move_range.to_s,2)    draw_text(72, y + line_height * 5, 24, 24, @actor.kc_total_kill_count.to_s,2)  endend
Oh yeah?  Well still nothing but love.  Thanks Vlue.  I may have one more to ask you about but I want to test it first.

EDIT:

After testing it out I have a small issue with the numbers not lining up correctly.  See the attached picture.

Roster.png
Oops, haha. Edited previous post to fix that.
It's really close, which number adjusts the position of the number column?

Roster.png

Also I tested your roster with adding a piece of armor and 4 items and it works perfectly, I am using an Actor Inventory Script.  One thing I am wondering is can there be an empty slot if nothing is equipped?  I would have an empty picture and the word Empty next to it.

This is the link to the Actor Inventory Script if you need to see it.

http://forums.rpgmakerweb.com/index.php?/topic/16024-actor-inventory/
It should be lined up! The numbers are the same... ba.. oh. It was left-justified, instead of right-justified. Edited previous post again. If it's still not lined up correctly, just play around with the 72's if it's still not right.


Updated the script to allow options to show empty slots~ Whee.
Vlue it works!  Small change was I needed to change the 72 to 60:

Code:
draw_text(60, y + line_height * 4, 24, 24, @actor.base_move_range.to_s,2)draw_text(60, y + line_height * 5, 24, 24, @actor.kc_total_kill_count.to_s,2)

 

Otherwise it looks very slick.  Thank you for your help.
Hello again my favorite Vlue.  I have one more request for you 🙂  Along with the Kill count I would like to implement a death count, to catch how many times the actor has died.  I found a script by Dekita, but it doesn't seem to have the same calls as the kill count, hence I need your help again.  Here is the script link:

http://pastebin.com/bq4f2NC3
74 lines to explain a 20 line script.. terms... fine print... man

Here we go:

Spoiler
Code:
class Window_RosterStatus  def draw_parameters(x, y)    draw_actor_param(@actor, x, y + line_height * 0, 0 + 2)    draw_actor_param(@actor, x, y + line_height * 1, 1 + 2)    draw_actor_param(@actor, x, y + line_height * 2, 4 + 2)    draw_actor_param(@actor, x, y + line_height * 3, 5 + 2)    change_color(system_color)    draw_text(x, y + line_height * 4, 72, 24, "Move: ")    draw_text(x, y + line_height * 5, 72, 24, "Kills: ")    draw_text(x, y + line_height * 6, 72, 24, "Deaths: ")    change_color(normal_color)    draw_text(60, y + line_height * 4, 24, 24, @actor.base_move_range.to_s,2)    draw_text(60, y + line_height * 5, 24, 24, @actor.kc_total_kill_count.to_s,2)    draw_text(60, y + line_height * 5, 24, 24, @actor.death_counter.to_s,2)  endend
How do you work so fast?  It's kind of scary 🙂

How do I comment out the luck line?  I just realized this new death counter doesn't fit on the screen.
Magic. And the fourth draw_actor_param line is the one you want to comment out.
I also found out I needed to bump the number on the other lines up 1, but it worked.  Thanks again!
Umm , may i ask how to limit the Roster number to certain X . Like 50 or 20.

Because it goes like 99999999999 lol

thank you before
Im pretty sure Vlue based it on the actors in the database. If you have 9999999 actors in your game, I want to play it. Thats insane!!!

Original thread: https://forums.rpgmakerweb.com/threads/hero-roster.26859/