Gaming@NINA

Ending IGN's monopoly, one play at a time

Forums · Help me on RPG Maker XP!

starrodkirby86

0 +0

Jun 21 '05

It's okay if you don't have an answer to this querstion, it might be harder for some people. OKay here it is! WHen I got the script for side-view battling (LOcated at www.phylomortis.com) I decided to test-battle. And besides the error _________________ (Which appears commonly) when I battled the Monsters the Status (YOu know the HP,MP) is not there!
Here is my code for Window BattleStatus, which was my only problem. Can you try and correct it? [glow=red,2,300]Thanks in advance![/glow]
[code]#==============================================================================
# ■ Window_BattleStatus
#------------------------------------------------------------------------------
#  バトル画面でパーティメンバーのステータスを表示するウィンドウです。
#==============================================================================

class Window_BattleStatus < Window_Base
# ------------------------------------
def initialize
    super(0, 320, 640, 160)
    self.contents = Bitmap.new(width - 32, height - 32)
    @level_up_flags = [false, false, false, false]
    refresh
  end
# ------------------------------------
  def dispose
    super
  end
# ------------------------------------
  def level_up(actor_index)
    @level_up_flags[actor_index] = true
  end
# ------------------------------------
  def refresh
    self.contents.clear
    @item_max = $game_party.actors.size
    for i in 0...$game_party.actors.size
      actor = $game_party.actors[i]
      actor_x = i * 160 + 4
      draw_actor_name(actor, actor_x, 0)
      draw_actor_hp(actor, actor_x, 32, 120)
      draw_actor_sp(actor, actor_x, 64, 120)
      if @level_up_flags[i]
        self.contents.font.color = normal_color
        self.contents.draw_text(actor_x, 96, 120, 32, "Your level raised!")
      else
        draw_actor_state(actor, actor_x, 96)
      end
    end
  end
# ------------------------------------
def update
    super
    if $game_temp.battle_main_phase
      self.contents_opacity = 255
    end
  end
end[/code]
Rating: 0

-tails07-!imx

0 +0

Jun 22 '05

the side view battle script requires you to add images of the battler you want in the pictures folder.
Rating: 0

starrodkirby86

0 +0

Jun 22 '05

Yeah, I found that out and also I managed to fix the problem. It seemeed that the update window was tampered. Thanks.
Rating: 0