Display showing HIT and EVA values as all 0's?

● ARCHIVED · READ-ONLY
Started by Rello 5 posts View original ↗
  1. Hey all,

    I've been re-writing my Equip scene quite a lot and I've noticed some odd. I included the display for HIT and EVA values, as well as their changes in value. The game recognizes when the values change (up arrow for increase, down arrow for decrease, and equals for no change), but it's only displaying the values as 0's. It's a custom function to show the numbers, but it's showing the other stats just fine (basically Parameters, not Ex-Parameters. I'll post my code below, and I know it looks terrible (I'm currently in the process of re-writing it but I don't think hardcoding the stats would cause this bug).

    Drawing the current values:

    draw_number(x + 104, y + 22*8, 100, @actor.hit, 4, 0, Color.new(255,255,255,100)) draw_number(x + 104, y + 22*9, 100, @actor.eva, 4, 0, Color.new(255,255,255,100))Just some naming for the future use.

    new_value8 = @temp_actor.hit new_value9 = @temp_actor.evaDrawing the new values.

    draw_number(-2, dy + 22 * 8, contents.width-4, new_value8, 4, 2, Color.new(255,255,255,100))    draw_number(-2, dy + 22 * 9, contents.width-4, new_value9, 4, 2, Color.new(255,255,255,100))Calling the values.

    draw_new_param_rello(drx + 22, dy, param_id) if @temp_actor #...lines not involving anything related to this draw_current_param_rello(dx, dy)What happens:

    Spoiler
    6yje4o.png
    The axe being changed raises Evasion, which the game recgonizes as going down when unequipped- but just 0's are shown. I don't understand. Could anybody help me out? :]
  2. I'm at work, so I can't check RPG Maker to be sure, BUT I know some of the Sp/Ex-params are percentages. Try changing

    @actor.hitto

    (@actor.hit*100)and see if that works. (and of course try the same for @actor.eva)

    Like I said, I might be wrong, but it's the only reason I can think of off the top my head.
  3. That was it! Thank you! I knew they were percentages, I just thought, you know, 65%, not 0.65.

    Thanks again! :D
  4. Not a problem :)
  5. This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.