Últimos assuntos
Quem está conectado?
Há 1 usuário online :: 0 registrados, 0 invisíveis e 1 visitante Nenhum
[ Ver toda a lista ]
O recorde de usuários online foi de 13 em Sex Mar 04, 2022 3:18 am
Top dos mais postadores
Warrior_Maker | ||||
Tayllor | ||||
KingSora | ||||
~FullzDied | ||||
SynysterGates | ||||
NeeTo | ||||
Alumary | ||||
SameKage | ||||
samuel250 | ||||
Vitor-DR. |
[NP]Perfect Hud
2 participantes
TutoRPG :: Rpg Maker :: Rpg Maker XP :: Scripts :: Scripts para Netplays
Página 1 de 1
[NP]Perfect Hud
Perfect Hud [NP MASTER / UNP]
Modelo 1:
Modelo 2:
Modelo 1:
Modelo 2:
Criado:
- Criado por Faabinhuu;
- Mostra: HP / MP / Gold / Guilda / Exp / Nome / Level / Face
- Coroa para quem quiser por algum tipo de cash
Opcional:
Faça uma condição de classe para que cada classe seja adicionada uma FACE.
Script = Substitua o [WIN] Hud por este:
- Código:
#==============================================================================
# ** HUD
#------------------------------------------------------------------------------
# By Marlos Gama
# Modificado por Fabinhuu ;
#------------------------------------------------------------------------------
class Hud < Window_Base
def initialize
super(-16,-16,500,200)#(320,350,600,600)
self.back_opacity = 120
self.contents = Bitmap.new(width - 32, height - 32)
self.windowskin = RPG::Cache.windowskin("Blank")
refresh
end
def update
super
refresh if something_changed?
end
def something_changed?
return true if @old_exp != @actor.now_exp
return true if @old_hp != @actor.hp
return true if @old_sp != @actor.sp
return true if @old_level != @actor.level
return true if @old_name != @actor.name
return true if @old_name != @old_gold
return false
end
def refresh
self.contents.clear
@actor = $game_party.actors[0]
@old_exp = @actor.now_exp
@old_hp = @actor.hp
@old_sp = @actor.sp
@old_level = @actor.level
@old_name = @actor.name
@old_gold = $game_party.item_number(Item_Ouro::Item_Id.to_i).to_s
self.contents.clear
shud3 = RPG::Cache.picture("Face")
shud1 = shud3.width
shud2 = shud3.height
shud4 = Rect.new(0,0,shud1,shud2)
self.contents.blt(15,20,shud3,shud4)
hud3 = RPG::Cache.picture("hud")
hud1 = hud3.width
hud2 = hud3.height
hud4 = Rect.new(0,0,hud1,hud2)
self.contents.blt(0,0,hud3,hud4)
self.contents.font.size = 16
rect = Rect.new(-90, 16+1, self.contents.width - 8, 32)
self.contents.font.color = Color.new(0,0,0)
self.contents.draw_text(rect, "#{@old_name}", 1)
self.contents.draw_text(222, 18, 132, 32, "#{@actor.level}")
self.contents.draw_text(120, -5, 132, 32, "#{@old_gold}")
rectc = Rect.new(90, 12+1, self.contents.width - 8, 32)
self.contents.font.color = Color.new(0,255,255)
self.contents.draw_text(rectc, "#{@actor.guild}", 1)
# Hp
self.contents.font.color = Color.new(0,0,0)
hpbar = RPG::Cache.picture("HP")
hpbarwidth = hpbar.width * @actor.hp / @actor.maxhp
hpbarheight = hpbar.height
hpbar_rect = Rect.new(0,0,hpbarwidth,hpbarheight)
self.contents.blt(118,49,hpbar,hpbar_rect)
if $game_party.actors[0].level <= 21
self.contents.draw_text(155, 38, 132, 32, "#{@actor.hp}/#{@actor.maxhp}")
else
self.contents.draw_text(227, 28, 132, 32, "#{@actor.hp}/#{@actor.maxhp}")
end
# Sp
mpbar = RPG::Cache.picture("MP")
mpbarwidth = mpbar.width * @actor.sp / @actor.maxsp
mpbarheight = mpbar.height
mpbar_rect = Rect.new(0,0,mpbarwidth,mpbarheight)
self.contents.blt(118,69,mpbar,mpbar_rect)
if $game_party.actors[0].level <= 34
self.contents.draw_text(155, 58, 132, 32, "#{@actor.sp}/#{@actor.maxsp}")
xpbar = RPG::Cache.picture("XP")
xpbarwidth = xpbar.width * @actor.now_exp / @actor.next_exp
xpbarheight = xpbar.height
xpbar_rect = Rect.new(0,0,xpbarwidth,xpbarheight)
self.contents.blt(33,91,xpbar,xpbar_rect)
self.contents.draw_text(120, 81, 132, 32, "#{@actor.now_exp}/#{@actor.next_exp}")
end
end
end
##49 48
class Scene_Map
alias hud_main main
def main
@Hud = Hud.new
hud_main
@Hud.dispose
end
alias hud_update update
def update
hud_update
@Hud.update
end
end
class Game_Actor < Game_Battler
def now_exp
return @exp - @exp_list[@level]
end
def next_exp
return @exp_list[@level+1] > 0 ? @exp_list[@level+1] - @exp_list[@level] : 0
end
end
Se gostou do modelo 2 mude essa linha
- Código:
rectc = Rect.new(90, 12+1, self.contents.width - 8, 32)
self.contents.font.color = Color.new(0,255,255)
self.contents.draw_text(rectc, "#{@actor.guild}", 1)
por essa:
- Código:
rectc = Rect.new(75, 11+1, self.contents.width - 8, 32)
self.contents.font.color = Color.new(255,0,0)
self.contents.draw_text(rectc, "#{@actor.guild}", 1)
Barras:
- Spoiler:
HP
MP
XP
Se quiser deixar o nome da guild em vermelho como está no segundo
Mude (azul claro)
- Código:
self.contents.font.color = Color.new(0,255,255)
- Código:
self.contents.font.color = Color.new(255,0,0)
Pasta Pictures: [Nome da Imagem: "hud" sem aspas]
(Modelo 1)
- Spoiler:
- Spoiler:
Pasta Pictures: [Nome da Imagem: "face" sem aspas]
- Spoiler:
Ao usar dê os creditos
Creditos:
Faabinhuu;
E Warrior_Maker por trazer aqui
BOM PROVEITO !!
Re: [NP]Perfect Hud
ahh q droga,se fosse pro eo eu fazia kkk + 1cred muito legal!!
KingSora- Moderador Global
- Mensagens : 102
Cash : 38
Créditos : 11
Data de inscrição : 25/08/2012
Idade : 24
Localização : Itajuba
TutoRPG :: Rpg Maker :: Rpg Maker XP :: Scripts :: Scripts para Netplays
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
Ter Set 10, 2013 12:30 pm por lauk
» Sistema de Guild (do Eduardo)
Ter maio 14, 2013 8:54 pm por Khaws
» Sistema de Guild
Ter maio 14, 2013 6:48 pm por Khaws
» Teco Fabrica
Sáb Mar 23, 2013 8:18 am por ~FullzDied
» Apresentaçao
Sex Mar 01, 2013 6:58 pm por Sweeps
» Editando nick
Sex Mar 01, 2013 6:35 pm por Sweeps
» Sistema De Vila
Sex Fev 01, 2013 4:59 pm por ~FullzDied
» alguns tilesets
Sáb Dez 22, 2012 8:42 pm por Diegoslstuto
» Tilesets de natureza
Sáb Dez 22, 2012 8:40 pm por Diegoslstuto
» Olá, vim para trazer sistemas e muitas outras coisas
Qui Dez 13, 2012 3:09 pm por ~FullzDied
» [Recrutando] Bleach Online Dark Saga
Sáb Nov 10, 2012 8:23 pm por Hunter™
» Dragon Ball Fox
Dom Out 28, 2012 7:55 am por NeeTo
» Tutorial Mapper - Como avaliar um mapa
Sáb Out 13, 2012 12:45 pm por NeeTo
» Life RPG Maker 2.0
Qui Out 11, 2012 4:02 pm por SynysterGates
» Fórum decaido
Qui Out 11, 2012 2:16 pm por SynysterGates
» Dragon Ball Elite
Qua Out 10, 2012 3:07 pm por KingSora
» Auto Ataque por checkbox
Ter Out 09, 2012 7:35 pm por Warrior_Maker
» Pokémon Online - Xstrond Games BETA
Ter Out 02, 2012 10:29 pm por thales12
» Auto Correr Por CheckBox
Ter Out 02, 2012 10:03 pm por thales12
» Auto Loot para Eclipse Origins
Ter Out 02, 2012 10:02 pm por thales12
» Ganhar Item em Certo Nivel
Ter Out 02, 2012 9:58 pm por thales12
» SK - Lógica de Programação - Aula 3
Qua Set 26, 2012 7:05 pm por SameKage
» Distrito Rpg Maker 2.0 no Ar !!
Dom Set 23, 2012 7:59 pm por SameKage
» Sistemas que preciso
Sex Set 21, 2012 7:28 pm por KingSora
» [ALL] Títulos nos NPC's 1.0
Sex Set 21, 2012 5:38 pm por lucas100vzs
» Vídeo Tutorial Mapper Caverna - MMORPG 2D
Qui Set 20, 2012 8:16 pm por KingSora
» Sistema de plantar e colher
Ter Set 18, 2012 10:00 pm por SameKage
» Perfect engine
Ter Set 18, 2012 9:59 pm por SameKage
» O Seu pirata chegou !
Dom Set 16, 2012 7:58 pm por SameKage
» Novidades para tutorpg o que acha?
Sáb Set 15, 2012 7:03 pm por Guilherme Azevedo
» [ZIG ZAG GAMES] Age of Dragons
Sáb Set 15, 2012 1:56 pm por Guilherme Azevedo
» Me ajudem Pliss
Sex Set 14, 2012 9:48 am por KingSora
» SK - HTML - Aula 1
Qui Set 13, 2012 12:35 pm por SameKage
» Forum Decaindo
Ter Set 11, 2012 1:52 pm por Tayllor
» Meus 3 mapas
Ter Set 11, 2012 11:26 am por KingSora
» [Apresentação] Okumura-Rin~
Seg Set 10, 2012 5:43 pm por Warrior_Maker
» 3 primeiras sprites
Sex Set 07, 2012 6:19 pm por KingSora
» [EEB] Comando para Salvar Seu Game
Sex Set 07, 2012 5:06 pm por SynysterGates
» [Off] Olha Suas PM Tayllor
Sex Set 07, 2012 4:49 pm por Tayllor
» Fabrica da JCG Corp: Technology in designer [Fechada
Qui Set 06, 2012 6:15 pm por KingSora