Add HIT and CRIT to status window
RGSS3 Script RequestsHey ♫,
Here you go, took no time at all:
Here you go, took no time at all:
Code:
class Window_Status < Window_Selectable #-------------------------------------------------------------------------- # * Refresh #-------------------------------------------------------------------------- def refresh contents.clear draw_block1 (line_height * 0) draw_horz_line(line_height * 1) draw_block2 (line_height * 2) draw_block3 (line_height * 7) draw_block4 (line_height * 14) end #-------------------------------------------------------------------------- # * Draw Parameters #-------------------------------------------------------------------------- def draw_parameters(x, y) y-=line_height 6.times {|i| draw_actor_param(@actor, x, y + line_height * i, i + 2) } draw_sparam(x, y + line_height * 6, (@actor.hit*100).to_i.to_s+"%","HIT") draw_sparam(x, y + line_height * 7, (@actor.cri*100).to_i.to_s+"%","CRI") end def draw_sparam(x, y, value, name) change_color(system_color) draw_text(x, y, 120, line_height, name) change_color(normal_color) draw_text(x + 120, y, 36, line_height, value, 2) endend
thanks, that is just what I wanted!
Original thread: https://forums.rpgmakerweb.com/threads/add-hit-and-crit-to-status-window.41929/
