Save-Point
Display State Ranks in Status Screen - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Games Development (https://www.save-point.org/forum-4.html)
+--- Forum: Code Support (https://www.save-point.org/forum-20.html)
+--- Thread: Display State Ranks in Status Screen (/thread-5644.html)



Display State Ranks in Status Screen - Melana - 11-19-2015

I think I need your help.

I want to show the state ranks of my actors in the status screen (silence 100%, paralyze 70%...and so on)

I can do it with the elements like that

Code:
self.contents.draw_text(115, 351, 176, 32, "#{(@actor.element_rate(3)).to_i}%", 2)

and also the names of the states

Code:
self.contents.draw_text(115, 329, 48, 32, $data_states[2].name)

but I'm not able to figure it out how to do the same thing with the rank itself.

Maybe someone can give me a hint. ^^


RE: Display State Ranks in Status Screen - kyonides - 11-20-2015

You know, you don't need those parentheses in red "#{(@actor.element_rate(3)).to_i}%". This would be more than enough to print it on screen "#{@actor.element_rate(3).to_i}%" as part of the window contents.

From outside the actor class...
$game_party.actors[Actor's Index].state_ranks[State Index]

Once you have a specific actor...
@actor.state_ranks[State Index]


RE: Display State Ranks in Status Screen - Melana - 11-20-2015

Okay, that works.

Thank you :)

Usually it showed only numbers from 1 - 6 but I managed it to show the %.


RE: Display State Ranks in Status Screen - marketing small business ideas - 04-02-2017

My brother recommended I would possibly like this web site. He was totally right. This publish actually made my day. You cann't believe simply how much time I had spent for this information! Thanks!