RPG maker VX


Unirse al foro, es rápido y fácil

RPG maker VX
RPG maker VX
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.
Últimos temas
» Script de menu
por maxi Jue 04 Dic 2014, 1:44 pm

» Ayuda intro animado!!!
por maxi Miér 03 Dic 2014, 9:41 pm

» ayuda con este engin
por maxi Miér 03 Dic 2014, 8:42 am

» Hud de Vida 100% Personalizable - Engine Sencillo! Sin Scripts :)
por davidaikago Jue 20 Nov 2014, 10:58 am

» Ultimate parallax control by:GDS [ace]
por arellano Miér 08 Oct 2014, 8:28 pm

» Script Touhou (animated) Map name (v1.4)
por davidaikago Miér 08 Oct 2014, 2:09 pm

» tutorial puerta nueva
por davidaikago Miér 08 Oct 2014, 9:08 am

» cámara de fotos
por davidaikago Miér 08 Oct 2014, 9:05 am

» Imperial Action System II Demo
por davidaikago Miér 08 Oct 2014, 8:47 am

» VE Batalla animada [ACE]
por FhierusIV Jue 18 Sep 2014, 10:57 am

» Nuevo Reglamento del Foro [Vigente desde Septiembre 2014]
por maxi Miér 17 Sep 2014, 8:37 am

» MOG|Animated Title
por Souta21 Mar 09 Sep 2014, 7:24 pm

» Tutorial Engine - Cambiar Character al Equipar Objeto
por maxi Lun 21 Jul 2014, 10:19 am

» Script de climas
por gambasoxd Sáb 19 Jul 2014, 8:58 am

» Script de contraseña(codigo) para abrir un cofre
por rpgame Jue 03 Jul 2014, 6:03 pm

¿Quién está en línea?
En total hay 1 usuario en línea: 0 Registrados, 0 Ocultos y 1 Invitado

Ninguno

[ Ver toda la lista ]


El record de usuarios en línea fue de 117 durante el Mar 09 Ago 2011, 3:39 pm

[ACE]HUD de Angelo Brando 8)

3 participantes

Ir abajo

[ACE]HUD de Angelo Brando 8) Empty [ACE]HUD de Angelo Brando 8)

Mensaje por franciscojapones Mar 27 Nov 2012, 2:02 pm

Hola :3. Aqui les traigo un aporte, un script de Brandon que te crea una simple pero util HUD para los que les gustan.

#Como activarla:
Para que se vea la HUD = Activa el Interruptor 201
Para que se vea el HP en la HUD = Activa el Interruptor 202
Para que se vea el MP en la HUD = Activa el Interruptor 203
Para que se vea el Arma que esta utilizando el primer personaje = Activa el Interruptor 204
#Como se ve en el juego (Muestra Sepsi de HDN)
[Tienes que estar registrado y conectado para ver esa imagen]
Script:
Código:

#==============================================================================
# ■ Angelo HUD v2.5
#------------------------------------------------------------------------------
#  Created by Brandon *** 8(13) customization options *** Plug N' Play!
#==============================================================================

            #==================================================#
            #                  ▼ UPDATE LOG                  #
            #--------#--------------------------------#--------#
                    #  v1  ● first release.        #
                    #  v1.2 ● not released,        #
                    #        ● add HUDVISIBLESWITCH  #
                    #        ● add HP, MPSWITCH      #
                    #  v1.5 ● not released,        #
                    #        ● add FONT NAME & SIZE  #
                    #  v1.8 ● not released,        #
                    #        ● add WEAPONSWITCH      #
                    #  v1.9 ● not released          #
                    #        ● *BUG* Lag            #
                    #        ● *BUG* Texts disappea- #
                    #          rence.                #
                    #  v2  ● second release        #
                    #        ● fixed v1.9 *BUGS*    #
                    #        ● add R, G, B _BLA &    #
                    #          _BDA                  #
                    #        ● *BUG* Transfer Player #
                    #          crash.                #
                    #  v2.1 ● third release        #
                    #        ● fixed v2 *BUG*        #
                    #        ● changed update method #
                    #        ● changed Scene_Map    #
                    #          update and dispose    #
                    #          methods.              #
                    #        ● *BUG* Lag            #
                    #  v2.2 ● fourth release        #
                    #        ● fixed v2.1 *BUG*      #
                    #        ● now HUD will only re- #
                    #          fresh when the stats  #
                    #          change.              #
                    #        ● improved performance  #
            #--------#--------------------------------#--------#
            #  v2.5 ● current release                        #
            #        ● improved stability                      #
            #        ● added a option to link with other Angelo#
            #          scripts                                #
            #        ● --------------------------------        #
            #        ● added gold count if Angelo Menu is pre- #
            #          sent.                                  #
            #==================================================#
            #        ▼ THANKS TO:                              #
            #              ● King of Sadism                  #
            #              ● YF                              #
            #              ● Valiant                          #
            #              ● Amy Pond                        #
            #              ● Jet                              #
            #==================================================#

#------------------------------------------------------------------------------
# ▼ Customization Options
#----------------------------#-------------------------------------------------
#  ● HUD_VISIBLE_SWITCH    #
#- - - - - - - - - - - - - #
#  Define the switch that you want to use to turn the HUD 'ON' or 'OFF', by de-
#  fault it's 1. When the switch is turned 'ON' the HUD will be turned 'ON' too,
#  and when the switch is turned 'OFF' the HUD is turned 'OFF' too.
#------------------------------#-----------------------------------------------
#  ● FONT_NAME & FONT_SIZE  #
#- - - - - - - - - - - - - - #
#  In FONTNAME you define the font that you want to use with the HUD information.
#  In FONTSIZE you define the size of the font you've decided in FONTNAME.
#-------------------#----------------------------------------------------------
#  ● HP_SWITCH    #
#- - - - - - - - -#
#  Define the switch that you want to use to turn the HP Display 'ON' or 'OFF',
#  by default it's 2. When the switch is turned 'ON' the HP Display will be
#  turned 'ON' too, and when the switch is turned 'OFF' the HP Display is turned
#  'OFF' too.
#-------------------#----------------------------------------------------------
#  ● MP_SWITCH    #
#- - - - - - - - -#
#  Define the switch that you want to use to turn the MP Display 'ON' or 'OFF',
#  by default it's 3. When the switch is turned 'ON' the MP Display will be
#  turned 'ON' too, and when the switch is turned 'OFF' the MP Display is turned
#  'OFF' too.
#------------------------------#-----------------------------------------------
#  ● WEAPON_AND_NAME_SWITCH  #
#- - - - - - - - - - - - - - #
#  Define the switch that you want to use to turn the Currently Equipped Weapon
#  Display and Actor Name 'ON' or 'OFF', by default it's 4. When the switch is
#  turned 'ON' this option will be turned 'ON' too, and when the switch is 
#  turned 'OFF' this option is turned 'OFF' too.
#---------------------#--------------------------------------------------------
#  ● R, G, B _BLA  #
#- - - - - - - - - -#
#  Define the amount of each color(Red, Green, Blue) presented in the lighter a-
#  rea of the Back of the HUD. By default it's black which means that R, G and B
#  are setted to '0'.
#---------------------#--------------------------------------------------------
#  ● R, G, B _BDA  #
#- - - - - - - - - -#
#  Define the amount of each color(Red, Green, Blue) presented in the darker a-
#  rea of the Back of the HUD. By default it's black which means that R, G and B
#  are setted to '0'.
#------------------------------------------------------------------------------
# ▼ Post Scriptum
#------------------------------------------------------------------------------
#  ● "I want to turn all the HUD or only some part of her at the same time with
#      the same switch, it's possible?"
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#              Yes, just set the parts you wanted in the same
#              switch as the HUDVISIBLESWITCH.
#------------------------------------------------------------------------------
#  ● "Which values you recommend to use in FONTSIZE?"
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#              Use between 8 and 18, or the text will be too
#              small or too bigger. But some times it depends
#              on your FONTNAME.
#------------------------------------------------------------------------------
#  ● "Which values you recommend to use in R, G, B _BLA and _BDA?"
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#              You MUST use ONLY values between 0 and 255.
#------------------------------------------------------------------------------

module ANGELO

  HUD_VISIBLE_SWITCH = 201

  FONT_NAME = "Times New Roman"
  FONT_SIZE = 16

  HP_SWITCH = 202
  MP_SWITCH = 203
  WEAPON_AND_NAME_SWITCH = 204
 
  #=======IMPORTANT=======IMPORTANT=======IMPORTANT=======IMPORTANT=======IMPORTANT
  #      * * *  IF YOU ARE USING OTHER ANGELO SCRIPTS, ENABLE THIS  * * *
  #=======IMPORTANT=======IMPORTANT=======IMPORTANT=======IMPORTANT=======IMPORTANT
 
  ENABLE_ANGELO_LINK = false

  R_BLA = 0
  G_BLA = 0
  B_BLA = 0

  R_BDA = 0
  G_BDA = 0
  B_BDA = 0

end

#------------------------------------------------------------------------------
#      !!!!DO NOT EDIT FROM HERE UNLESS YOU KNOW WHAT YOU'RE DOING!!!!
#------------------------------------------------------------------------------

include ANGELO

class AngeloHUD < Window_Base
  def initialize
        super(-16, -16, Graphics.width + standard_padding * 2, Graphics.height + standard_padding * 2)
        self.opacity = 0
        $AngeloHUD = true
        refresh
    end

  def refresh
    self.contents.clear
    self.contents.font = Font.new(FONT_NAME, FONT_SIZE)
    actor = $game_party.members[0]
    @hp = actor.hp
    @mp = actor.mp
    @mhp = actor.mhp
    @mmp = actor.mmp
    index = 0
    colorback = Color.new(R_BLA, G_BLA, B_BLA, 150)
    colorback2 = Color.new(R_BDA, G_BDA, B_BDA, 190)
 
    if $game_switches[HUD_VISIBLE_SWITCH] == true

        unless $game_switches[HP_SWITCH] == false
          self.contents.fill_rect(3, 364, 238, 16, colorback)
          self.contents.fill_rect(3, 368, 238, 8, colorback2)
          draw_gauge(19, 353, 200, actor.hp_rate, hp_gauge_color1, hp_gauge_color2)
          draw_text(40, 354, 100, 32, Vocab::hp_a)
          draw_current_and_max_values(90, 358, 116, actor.hp, actor.mhp, hp_color(actor), normal_color)
        end

        unless $game_switches[MP_SWITCH] == false
          self.contents.fill_rect(3, 395, 238, 16, colorback)
          self.contents.fill_rect(3, 399, 238, 8, colorback2)
          draw_gauge(19, 384, 200, actor.mp_rate, mp_gauge_color1, mp_gauge_color2)
          draw_text(40, 385, 100, 32, Vocab::mp_a)
          draw_current_and_max_values(90, 389, 116, actor.mp, actor.mmp, mp_color(actor), normal_color)
        end

        unless $game_switches[WEAPON_AND_NAME_SWITCH] == false
          self.contents.fill_rect(-64 + 85, 376, 125, 19, colorback)
          self.contents.fill_rect(-64 + 90, 376, 115, 19, colorback2)
          draw_actor_name(actor,  -40 + 92, 373, 100)
              return unless actor.equips[index]
          draw_icon(actor.equips[index].icon_index, -64 + 92, 372, true)#(actor.equips[index], -64 + 92, 376, true)
        end

        end
      def hud_changed
        return true if @hp != $game_party.members[0].hp
        return true if @mp != $game_party.members[0].mp
        return true if $game_switches[HP_SWITCH] != "OFF"
        return true if $game_switches[MP_SWITCH] != "OFF"
        return true if $game_switches[WEAPON_AND_NAME_SWITCH] != "OFF"
        return true if $game_switches[HUD_VISIBLE_SWITCH] != "OFF"
        return false
        end     
      end
     
    def update
        super
        refresh if hud_changed     
      end
    end

    class Scene_Map
      alias hud_main create_all_windows
     
      def create_all_windows
        create_hud_window
        hud_main
      end
      def create_hud_window
        @hud = AngeloHUD.new
        if ENABLE_ANGELO_LINK && $Menu_Angelo == true
        @gold = Window_Gold.new
        @gold.opacity = 0
        @gold.x = 544 - @gold.contents.width - 10
        @gold.y = 375
        end
      end
    end
   
Espero que les sirva este aporte.
CREDITOS: Brandon.

Salu2
franciscojapones
franciscojapones
500
500

Masculino

Edad 24

Cantidad de envíos 1255

Maker Cash 1917

Reputación 151


Extras
Sobre mí::

Volver arriba Ir abajo

[ACE]HUD de Angelo Brando 8) Empty Re: [ACE]HUD de Angelo Brando 8)

Mensaje por wsbp Vie 30 Nov 2012, 8:07 am

Pregunta! Como Activo Lo Interruptores?
wsbp
wsbp
0
0

Masculino

Edad 27

Cantidad de envíos 1

Maker Cash 1

Reputación 0


Volver arriba Ir abajo

[ACE]HUD de Angelo Brando 8) Empty Re: [ACE]HUD de Angelo Brando 8)

Mensaje por emmux Vie 30 Nov 2012, 12:35 pm

La verdad es que se ve bastante bonito xd
Ademas con el icon de arma...

+1
emmux
emmux
Administrador
Administrador

Masculino

Edad 32

Cantidad de envíos 1303

Maker Cash 6711

Reputación 189


Volver arriba Ir abajo

[ACE]HUD de Angelo Brando 8) Empty Re: [ACE]HUD de Angelo Brando 8)

Mensaje por franciscojapones Vie 30 Nov 2012, 1:04 pm

wsbp escribió:Pregunta! Como Activo Lo Interruptores?

Mira, esto es facil :3.

En el default del RPGMakerVX Ace solo hay hasta 100 interruptores, abres un evento, vas a la ventana de condiciones, en interruptores y cambias el maximo a 205.

Luego en un evento cuando quieras que la HUD aparesca vas a los comandos:
Pagina 1 -> Interruptores -> escoges el interruptor 201, aceptar en ON, y haces lo mismo con el 202, 203, y 204. Asi ya se activara. Si quieres quitar la HUD haces lo mismo excepto que pones OFF en vez de ON. Y listu.

Espero que te sirva, salu2 :3
franciscojapones
franciscojapones
500
500

Masculino

Edad 24

Cantidad de envíos 1255

Maker Cash 1917

Reputación 151


Extras
Sobre mí::

Volver arriba Ir abajo

[ACE]HUD de Angelo Brando 8) Empty Re: [ACE]HUD de Angelo Brando 8)

Mensaje por Contenido patrocinado


Contenido patrocinado


Volver arriba Ir abajo

Volver arriba


 
Permisos de este foro:
No puedes responder a temas en este foro.