Hero Roster

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
If you know what you're doing (or can pretend well enough).

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
 

Caedmon

Veteran
Veteran
Joined
Aug 9, 2012
Messages
248
Reaction score
16
First Language
English
Primarily Uses
I can't even pretend :)  Where do I toss this in?  I don't see this exact listing currently in the script.
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
Oh, put it anywhere below this script, it overwrites.
 

Caedmon

Veteran
Veteran
Joined
Aug 9, 2012
Messages
248
Reaction score
16
First Language
English
Primarily Uses
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?
 
Last edited by a moderator:

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
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.

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
 

Caedmon

Veteran
Veteran
Joined
Aug 9, 2012
Messages
248
Reaction score
16
First Language
English
Primarily Uses
Love is a strong word...... but i think I love you.  It worked like a charm!  You are the man.
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
Still easy.

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
 
Last edited by a moderator:

Caedmon

Veteran
Veteran
Joined
Aug 9, 2012
Messages
248
Reaction score
16
First Language
English
Primarily Uses
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
 
Last edited by a moderator:

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
Oops, haha. Edited previous post to fix that.
 

Caedmon

Veteran
Veteran
Joined
Aug 9, 2012
Messages
248
Reaction score
16
First Language
English
Primarily Uses
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/
 

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
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.
 

Caedmon

Veteran
Veteran
Joined
Aug 9, 2012
Messages
248
Reaction score
16
First Language
English
Primarily Uses
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.
 

Caedmon

Veteran
Veteran
Joined
Aug 9, 2012
Messages
248
Reaction score
16
First Language
English
Primarily Uses
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
 
Last edited by a moderator:

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
74 lines to explain a 20 line script.. terms... fine print... man

Here we go:

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
 

Caedmon

Veteran
Veteran
Joined
Aug 9, 2012
Messages
248
Reaction score
16
First Language
English
Primarily Uses
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.
 
Last edited by a moderator:

Vlue

Talent Extraordinaire
Member
Joined
Mar 13, 2012
Messages
589
Reaction score
378
First Language
English
Primarily Uses
Magic. And the fourth draw_actor_param line is the one you want to comment out.
 

Caedmon

Veteran
Veteran
Joined
Aug 9, 2012
Messages
248
Reaction score
16
First Language
English
Primarily Uses
I also found out I needed to bump the number on the other lines up 1, but it worked.  Thanks again!
 

armgnx

Warper
Member
Joined
Oct 8, 2014
Messages
1
Reaction score
0
First Language
Indonesia
Primarily Uses
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
 

JoePro

None Newb
Veteran
Joined
May 29, 2014
Messages
78
Reaction score
17
First Language
English
Primarily Uses
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!!!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
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'??

Forum statistics

Threads
105,860
Messages
1,017,040
Members
137,569
Latest member
Shtelsky
Top