Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New BattleStatus
#1
New BattleStatus
by FearTheRedeemer
Nov 8 2006

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


I havnt made any script before but this is more of an edit. Simply it shows the Battle HP/SP and stuff horizontally rather than vertically. No reason to credit me on this cos it is very easy to do... But you gotta start somewhere...

Code:
#==============================================================================
# ** Window_BattleStatus_New
#------------------------------------------------------------------------------
# FearTheRedeemer - fear.the.redeemer@gmail.com
# v0.2
# 7 November 2006 - 7/11/06
#==============================================================================

class Window_BattleStatus < Window_Base
  # Edit this to change the mode...
  FTR_MODE = 1 # (1: Shorter HP/SP Bars, still has [Normal]) (2: Longer HP/SP Bars has MaxHP/SP)

  def refresh

    if FTR_MODE == 1
      actorhp_x = 125
      actorsp_x = 250
      bar_width = 120
    end
    if FTR_MODE == 2
      actorhp_x = 125
      actorsp_x = 300
      bar_width = 160
    end

    self.contents.clear
    @item_max = $game_party.actors.size
    for i in 0...$game_party.actors.size
      actor = $game_party.actors[i]
      actor_y = i * 30 + 4
      draw_actor_name(actor, 0, actor_y)
      draw_actor_hp(actor, actorhp_x, actor_y, bar_width)
      draw_actor_sp(actor, actorsp_x, actor_y, bar_width)
      if FTR_MODE == 1
        if @level_up_flags[i]
          self.contents.font.color = normal_color
          self.contents.draw_text(actor_x, 375, actor_y, 32, "LEVEL UP!")
        else
          draw_actor_state(actor, 375, actor_y)
        end
      end
    end
  end
end


ill make a few more edits to show longer hp/sp bars but im still learning ruby. The actors still appear behind this text so you will need to use a side view thingy for this to even look ok...

EDIT: If you dont want to make a whole bunch of new sprites you can try this http://www.dubealex.com/asylum/index.php...opic=11534
Just use the script and credit who ever needs it...
UPDATE: updated the script to have 2 different modes. Simply change the value FTR_MODE to either 1 or 2. If you want me to change anything or add more things just reply to this...
}




Users browsing this thread: