Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.



 
InícioÚltimas imagensProcurarRegistarEntrar
A Equipe Central RPG Maker deseja a todos Boas Vindas!
Olá galera venho aqui pedir para ajuda a vocês pesso que postem conteúdo em nossa comunidade irei ajudar a vocês também.
Agora nossa comunidade também tem o famoso projeto de ouro porem da nossa comunidade leva um nome diferente leva o nome Osca de Ouro entre no tópico de Notícias e fique por dentro das novidades.

 

 aE VAI SCRIPTS!!!

Ir para baixo 
AutorMensagem
JuziN
Membro
Membro
JuziN


Sexo : Masculino
Mensagens : 5

aE VAI SCRIPTS!!! Empty
MensagemAssunto: aE VAI SCRIPTS!!!   aE VAI SCRIPTS!!! Icon_minitimeSex Jan 07, 2011 3:38 pm

bASTA COPIAR E COLAR EM CIMA DO MAIN E USAR,CRÉDS PARA MIM E LUKY(MRM)



Código:
#---------------------------------------------------#
#Hp Mp Abaixo do Hero                              #
#Credito para o "dodoop" porque ele feis versão Xp  #
#by:Luky                                            #
#version: VX                                        #
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#---------------------------------------------------------------------#
#Cria uma janela que fica debaixo do personagem monstrando o seu HP,MP#
#atravez de barras cujo não necessitão de imagens.#-------------------#
#-------------------------------------------------#
module Luky
#-----------------------------------------------------------------------#
#A adicione aqui a velocidade de atualização quanto maior o número mais #
#devagar a hud sera atualizada porem voce tera menos bugs de lentidão  #
#de jogo.OBS:È recomendado 1!                                          #
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
  MINI_HUD_ATUALIZAÇÂO = 1
#--------------------#
#Opacidade da janela.#
#~~~~~~~~~~~~~~~~~~~~#
  MINI_HUD_OPACITY = 0
#---------------------#
#Opacidade das barras.#
#~~~~~~~~~~~~~~~~~~~~~#
  MINI_HUD_OPACITY_2 = 255
end
class Mini_Hud < Window_Base
  def initialize
      super($game_player.screen_x-35,$game_player.screen_y-15,70,50)
      self.contents = Bitmap.new(width - 32, height - 32)
      refresh
    end
  def refresh
    self.contents.clear
    self.opacity = Luky::MINI_HUD_OPACITY
    self.contents_opacity = Luky::MINI_HUD_OPACITY_2
    actor = $game_party.members[0]
    draw_mini_hud_bar(2,0,actor.hp,actor.maxhp,width=30,height=2,bar_color = Color.new(255,0,0,255),end_color = Color.new(100,0,0,255))
    draw_mini_hud_bar(2,4,actor.mp,actor.maxmp,width=30,height=2,bar_color = Color.new(0,0,255,255),end_color = Color.new(0,0,100,255))
  end
end
class Scene_Map
  alias mini_hud_main main
  def main
    @Mini_hud = Mini_Hud.new
    mini_hud_main
    @Mini_hud.dispose
  end
  alias mini_hud_update update
  def update
    mini_hud_update
    if Luky::MINI_HUD_ATUALIZAÇÂO == 0
    @Mini_hud.update if @Mini_hud.visible = true
    @Mini_hud.refresh if @Mini_hud.visible = true
    elsif Luky::MINI_HUD_ATUALIZAÇÂO == 1
    @Mini_hud.update if @Mini_hud.visible = true if Graphics.frame_count % 10 == 0
    @Mini_hud.refresh if @Mini_hud.visible = true if Graphics.frame_count % 10 == 0
    elsif Luky::MINI_HUD_ATUALIZAÇÂO == 2
    @Mini_hud.update if @Mini_hud.visible = true if Graphics.frame_count % 20 == 0
    @Mini_hud.refresh if @Mini_hud.visible = true if Graphics.frame_count % 20 == 0
    elsif Luky::MINI_HUD_ATUALIZAÇÂO == 3
    @Mini_hud.update if @Mini_hud.visible = true if Graphics.frame_count % 30 == 0
    @Mini_hud.refresh if @Mini_hud.visible = true if Graphics.frame_count % 30 == 0
    elsif Luky::MINI_HUD_ATUALIZAÇÂO == 4
    @Mini_hud.update if @Mini_hud.visible = true if Graphics.frame_count % 40 == 0
    @Mini_hud.refresh if @Mini_hud.visible = true if Graphics.frame_count % 40 == 0
    elsif Luky::MINI_HUD_ATUALIZAÇÂO == 5
    @Mini_hud.update if @Mini_hud.visible = true if Graphics.frame_count % 50 == 0
    @Mini_hud.refresh if @Mini_hud.visible = true if Graphics.frame_count % 50 == 0
    else
    @Mini_hud.update if @Mini_hud.visible = true if Graphics.frame_count % 50 == 0
    @Mini_hud.refresh if @Mini_hud.visible = true if Graphics.frame_count % 50 == 0
    end
    @Mini_hud.x = $game_player.screen_x-35
    @Mini_hud.y = $game_player.screen_y-15
  end
end
class Window_Base < Window
  def draw_mini_hud_bar(x, y, min, max, width = 152, height = 6,
      bar_color = Color.new(150, 0, 0, 255),
      end_color = Color.new(255, 255, 60, 255))
    for i in 0..height
      self.contents.fill_rect(x + i, y + height - i, width + 1, 1, Color.new(50, 50, 50, 255))
    end
    for i in 1..(height - 1)
      r = 100 * (height - i) / height + 0 * i / height
      g = 100 * (height - i) / height + 0 * i / height
      b = 100 * (height - i) / height + 0 * i / height
      a = 255 * (height - i) / height + 255 * i / height
      self.contents.fill_rect(x + i, y + height - i, width, 1, Color.new(r, b, g, a))
    end
    for i in 1..( (min / max.to_f) * width - 1)
      for j in 1..(height - 1)
        r = bar_color.red * (width - i) / width + end_color.red * i / width
        g = bar_color.green * (width - i) / width + end_color.green * i / width
        b = bar_color.blue * (width - i) / width + end_color.blue * i / width
        a = bar_color.alpha * (width - i) / width + end_color.alpha * i / width
        self.contents.fill_rect(x + i + j, y + height - j, 1, 1, Color.new(r, g, b, a))
      end
    end
  end
end
#-------------------------------------------------------------------------------#
#                          F i m  d o  S c r i p t s                          #
#===============================================================================#
Ir para o topo Ir para baixo
 
aE VAI SCRIPTS!!!
Ir para o topo 
Página 1 de 1
 Tópicos semelhantes
-
» Evolução - Sem Scripts!
» scripts de coordenadas no mapa
» Scripts de status e level 999
» Sistema de Cheats 2 em 1(Sem Scripts)
» Scripts do Dark Chocobo

Permissões neste sub-fórumNão podes responder a tópicos
 :: Rpg Maker VX :: Scripts-
Ir para: