Jump to content
Rpg²S Forum

Soma Hud


Lusianl
 Share

Recommended Posts

Soma hud

 

Autore:Soma

 

Descrizione

Imposta un hud con hp,mp,livello e gold con le variabili

 

Screen:

http://i42.servimg.com/u/f42/13/12/87/37/tt10.png

 

Istruzioni

 

Impostare la variabile a tua scelta, esempio [001 Hud]

[001 Hud] = 1 =si vede il livello e il nome

[001 Hud] = 2 si vedono gli hp e gli mp

[001 Hud] = 3 Si vedono i gold

 

Script

 

 

#==============================================================================
# Hud System
# Version 2.5 Final?
# Author: Soma
# Date: August 14, 2008
#=============================================================================
#Soma's Hud V 1.0
#Version 1.0
#Shows Hp and Mp
#Version 1.5 Updates
#Shows Hp and Mp
#Shows the players name
#Lets you turn off and on hud with Switch 1
#Version 2.0 Updates
#Shows Players Level
#Shows Gold
#Switches 1-3 used to turn on and off (1= Name and level) (2= Hp and Mp)
#(3=Gold)
#Verison 2.5 Updates
#Just to let you all know this might be my final Hud System Update
#Switched Switches to Variable 1 set from 1-3 for hud same
#=============================================================================
#If you have any questions or comments on my script feel free to message me
#teenemo@yahoo.com I rarely check my email if you have my space just message
#me there and I will get back to you as soon as I can
#=============================================================================
#If you can think of any way to make this script better please message me and
#I will try and use yuo idea in it and if you want credit for your ideas just
#tell me and I will be gald to add your name to the list
#=============================================================================
#CREDITS
#=============================================================================
#Philip aka Soma (me) creator of this script
#=============================================================================
# Part 1 Switch 1 Name and Level
#=============================================================================
class Window_Hud < Window_Base
def initialize
super(0,0,545,145)
self.opacity = 0
self.visible = false
refresh
end
def refresh
self.contents.clear
actor = $game_actors[1]
draw_actor_name(actor, 390, 0)
draw_actor_level(actor, 450, 0 + WLH * 0)
end
def update
self.visible = true if $game_variables[1] >= 1
refresh
end
end
class Scene_Map
alias hud_main main
alias hud_update update
alias hud_terminate terminate
def main
@hud = Window_Hud.new
hud_main
end
def update
@hud.update
hud_update
end
def terminate
@hud.dispose
end
end
#=============================================================================
#Part 2 Switch 2 Gold
#=============================================================================
class Window_Hu < Window_Base
def initialize
super(0,0,545,145)
self.opacity = 0
self.visible = false
refresh
end
def refresh
self.contents.clear
draw_currency_value($game_party.gold, 400, 60, 96)
end
def update
self.visible = true if $game_variables[1] >= 3
refresh
end
end
class Scene_Map
alias hu_main main
alias hu_update update
alias hu_terminate terminate
def main
@hu = Window_Hu.new
hu_main
end
def update
@hu.update
hu_update
end
def terminate
@hu.dispose
end
end
#=============================================================================
#Part 3 Switch 3 HP And MP
#=============================================================================
class Window_hp < Window_Base
def initialize
super(0,0,545,145)
self.opacity = 0
self.visible = false
refresh
end
def refresh
self.contents.clear
actor = $game_actors[1]
draw_actor_hp(actor, 400, 18, 96)
draw_actor_mp(actor, 400, 38, 96)
end
def update
self.visible = true if $game_variables[1] >= 2
refresh
end
end
class Scene_Map
alias hp_main main
alias hp_update update
alias hp_terminate terminate
def main
@hp = Window_hp.new
hp_main
end
def update
@hp.update
hp_update
end
def terminate
@hp.dispose
end
end

 

 

 

Bug

Non funziona bene con il fog system di shuuchan, rende la fog più scura se apri e chiudi il menù e blocca la pioggia se attiva.

http://www.freankexpo.net/signature/1129.png

2986.png

BIM_Banner3.png

Premi RpgMaker

 


http://www.rpg2s.net/forum/uploads/monthly_01_2017/msg-293-0-48316500-1483794996.jpghttp://www.rpg2s.net/dax_games/r2s_regali2.pngContesthttp://rpg2s.net/gif/SCContest1Oct.gifhttp://rpg2s.net/gif/SCContest3Oct.gifhttp://rpg2s.net/gif/SCContest2Oct.gifhttp://rpg2s.net/gif/SCContest3Oct.gifhttp://rpg2s.net/gif/SCContest3Oct.gifhttp://rpg2s.net/gif/SCContest3Oct.gifhttp://rpg2s.net/gif/SCContest2Oct.gifhttp://rpg2s.net/gif/SCContest3Oct.gifhttp://rpg2s.net/gif/SCContest1Oct.gifhttp://rpg2s.net/gif/SCContest2Oct.gif http://rpg2s.net/gif/SCContest1Oct.gif http://rpg2s.net/gif/SCContest2Oct.gif http://rpg2s.net/gif/SCContest2Oct.gifhttp://rpg2s.net/gif/SCContest1Oct.gifhttp://www.rpg2s.net/awards/bestpixel2.jpghttp://www.rpg2s.net/awards/bestresourCSist2.jpghttp://www.rpg2s.net/awards/mostproductive1.jpghttp://i42.servimg.com/u/f42/13/12/87/37/iconap13.pnghttp://i42.servimg.com/u/f42/13/12/87/37/iconap14.pnghttp://i42.servimg.com/u/f42/13/12/87/37/iconap15.pnghttp://i42.servimg.com/u/f42/13/12/87/37/iconap16.pnghttp://i42.servimg.com/u/f42/13/12/87/37/screen10.pnghttp://www.rpgmkr.net/contest/screen-contest-primo.pnghttp://www.makerando.com/forum/uploads/jawards/iconawards3.png

Link to comment
Share on other sites

Non funziona bene con il fog system di shuuchan, rende la fog più scura se apri e chiudi il menù e blocca la pioggia se attiva.

Strana cosa... non dovrebbe esser difficile modificarlo per renderlo compatibile però! ^ ^

 

HUD su mappa chiesto più e più volte! ^ ^ Utile per mezzzi BS ad eventi o giochi su mappa! ^ ^

(\_/)
(^ ^) <----coniglietto rosso, me!
(> <)


Il mio Tumblr dove seguire i miei progetti, i progetti della Reverie : : Project ^ ^

http://i.imgur.com/KdUDtQt.png disponibile su Google Play, qui i dettagli! ^ ^

http://i.imgur.com/FwnGMI3.png completo! Giocabile online, qui i dettagli! ^ ^

REVERIE : : RENDEZVOUS (In allenamento per apprendere le buone arti prima di cominciarlo per bene ^ ^) Trovate i dettagli qui insieme alla mia intervista (non utilizzerò più rpgmaker) ^ ^

 

SUWOnzB.jpg 🖤
http://www.rpg2s.net/dax_games/r2s_regali2s.png E:3 http://www.rpg2s.net/dax_games/xmas/gifnatale123.gif
http://i.imgur.com/FfvHCGG.png by Testament (notare dettaglio in basso a destra)! E:3
http://i.imgur.com/MpaUphY.jpg by Idriu E:3

Membro Onorario, Ambasciatore dei Coniglietti (Membro n.44)

http://i.imgur.com/PgUqHPm.png
Ufficiale
"Ad opera della sua onestà e del suo completo appoggio alla causa dei Panda, Guardian Of Irael viene ufficialmente considerato un Membro portante del Partito, e Ambasciatore del suo Popolo presso di noi"


http://i.imgur.com/TbRr4iS.png<- Grazie Testament E:3
Ricorda...se rivolgi il tuo sguardo ^ ^ a Guardian anche Guardian volge il suo sguardo ^ ^ a te ^ ^
http://i.imgur.com/u8UJ4Vm.gifby Flame ^ ^
http://i.imgur.com/VbggEKS.gifhttp://i.imgur.com/2tJmjFJ.gifhttp://projectste.altervista.org/Our_Hero_adotta/ado2.png
Grazie Testament XD Fan n°1 ufficiale di PQ! :D

Viva
il Rhaxen! <- Folletto te lo avevo detto (fa pure rima) che non
avevo programmi di grafica per fare un banner su questo pc XD (ora ho di
nuovo il mio PC veramente :D)

Rosso Guardiano della
http://i.imgur.com/Os5rvhx.png

Rpg2s RPG BY FORUM:

Nome: Darth Reveal

 

PV totali 2
PA totali 16

Descrizione: ragazzo dai lunghi capelli rossi ed occhi dello stesso colore. Indossa una elegante giacca rossa sopra ad una maglietta nera. Porta pantaloni rossi larghi, una cintura nera e degli stivali dello stesso colore. E' solito trasportare lo spadone dietro la schiena in un fodero apposito. Ha un pendente al collo e tiene ben legato un pezzo di stoffa (che gli sta particolarmente a cuore) intorno al braccio sinistro sotto la giacca, copre una cicatrice.
Bozze vesti non definitive qui.

Equipaggiamento:
Indossa:
60$ e 59$ divisi in due tasche interne
Levaitan

Spada a due mani elsa lunga

Guanti del Defender (2PA)
Anello del linguaggio animale (diventato del Richiamo)

Scrinieri da lanciere (2 PA)

Elmo del Leone (5 PA)

Corazza del Leone in Ferro Corrazzato (7 PA)

ZAINO (20) contenente:
Portamonete in pelle di cinghiale contenente: 100$
Scatola Sanitaria Sigillata (può contenere e tenere al sicuro fino a 4 oggetti curativi) (contiene Benda di pronto soccorso x3, Pozione di cura)
Corda
Bottiglia di idromele
Forma di formaggio
Torcia (serve ad illuminare, dura tre settori)

Fiasca di ceramica con Giglio Amaro (Dona +1PN e Velocità all'utilizzatore)
Ampolla Bianca

Semi di Balissa

 

CAVALLO NORMALE + SELLA (30 +2 armi) contentente:
66$
Benda di pronto soccorso x3
Spada a due mani

Fagotto per Adara (fazzoletto ricamato)


 

Link to comment
Share on other sites

Strana cosa... non dovrebbe esser difficile modificarlo per renderlo compatibile però! ^ ^

 

Si, un buon scripter non avrebbe problemi, ma non faccio parte della categoria, ho solo segnalato perchè ho visto che insieme davano problemi.=)

http://www.freankexpo.net/signature/1129.png

2986.png

BIM_Banner3.png

Premi RpgMaker

 


http://www.rpg2s.net/forum/uploads/monthly_01_2017/msg-293-0-48316500-1483794996.jpghttp://www.rpg2s.net/dax_games/r2s_regali2.pngContesthttp://rpg2s.net/gif/SCContest1Oct.gifhttp://rpg2s.net/gif/SCContest3Oct.gifhttp://rpg2s.net/gif/SCContest2Oct.gifhttp://rpg2s.net/gif/SCContest3Oct.gifhttp://rpg2s.net/gif/SCContest3Oct.gifhttp://rpg2s.net/gif/SCContest3Oct.gifhttp://rpg2s.net/gif/SCContest2Oct.gifhttp://rpg2s.net/gif/SCContest3Oct.gifhttp://rpg2s.net/gif/SCContest1Oct.gifhttp://rpg2s.net/gif/SCContest2Oct.gif http://rpg2s.net/gif/SCContest1Oct.gif http://rpg2s.net/gif/SCContest2Oct.gif http://rpg2s.net/gif/SCContest2Oct.gifhttp://rpg2s.net/gif/SCContest1Oct.gifhttp://www.rpg2s.net/awards/bestpixel2.jpghttp://www.rpg2s.net/awards/bestresourCSist2.jpghttp://www.rpg2s.net/awards/mostproductive1.jpghttp://i42.servimg.com/u/f42/13/12/87/37/iconap13.pnghttp://i42.servimg.com/u/f42/13/12/87/37/iconap14.pnghttp://i42.servimg.com/u/f42/13/12/87/37/iconap15.pnghttp://i42.servimg.com/u/f42/13/12/87/37/iconap16.pnghttp://i42.servimg.com/u/f42/13/12/87/37/screen10.pnghttp://www.rpgmkr.net/contest/screen-contest-primo.pnghttp://www.makerando.com/forum/uploads/jawards/iconawards3.png

Link to comment
Share on other sites

Ho trovato per caso online delle informazioni che dicono dell'esistenza di una versione che mostra fino a 4 pg nell'HUD . . .

Non mi sono messo a cercarla, comunque, perchè credo che sia scriptata male come questa . . .

 

 

EDIT - Per ingannare l'attesa degli anime del weekend, mi sono messo a riscriverlo . . .

Come sempre, per VX, non è testato, quindi, eventualmente, provatelo a vostro rischio . . .

Potete scegliere l'ID della variabile per decidere cosa visualizzare (adesso dovete azzerarla per rendere l'HUD invisibile, ed assegnarle un valore da 1 a 3, come in precedenza, per renderlo visibile) . . .

 

 

#==================================================================
# giver's rewrite
#==================================================================
class Window_Hud < Window_Base
 #
 DATA_TYPE_VARID = 100
 #
 def initialize
wx = Graphics.width - 204
super(wx,0,204,142)
self.opacity = 0
self.visible = ($game_variables[DATA_TYPE_VARID] > 0)
refresh if self.visible
 end
 def refresh
self.contents.clear
hvar = $game_variables[DATA_TYPE_VARID]
if hvar >= 1
  @actor = $game_party.members[0]
  draw_actor_name(@actor, 0, 0)
  draw_actor_level(@actor, 116, 0)
end
if hvar >= 2
  @hhp = @actor.hp
  draw_actor_hp(@actor, 48, 18, 119)
  @hmp = @actor.mp
  draw_actor_mp(@actor, 48, 38, 119)
end
if hvar == 3
  @gold = $game_party.gold
  draw_currency_value(@gold, 48, 60)
end
 end
 def update
self.visible = ($game_variables[DATA_TYPE_VARID] > 0)
refresh if self.visible and ($game_party.members[0] != @actor or
		  @actor.hp != @hhp or @actor.mp != @hmp or @gold != $game_party.gold)
 end
end
class Scene_Map
 alias hud_start start
 alias hud_update update
 alias hud_terminate terminate
 def start
@hud = Window_Hud.new
hud_start
 end
 def update
@hud.update
hud_update
 end
 def terminate
   hud_terminate
@hud.dispose
 end
end
#==============================================================================
# Hud System
# Version 2.5 Final?
# Author: Soma
# Date: August 14, 2008
#=============================================================================
# Soma's Hud V 1.0
# Version 1.0
# Shows Hp and Mp
# Version 1.5 Updates
# Shows Hp and Mp
# Shows the players name
# Lets you turn off and on hud with Switch 1
# Version 2.0 Updates
# Shows Players Level
# Shows Gold
# Switches 1-3 used to turn on and off (1= Name and level) (2= Hp and Mp)
# (3=Gold)
# Verison 2.5 Updates
# Just to let you all know this might be my final Hud System Update
# Switched Switches to Variable 1 set from 1-3 for hud same
#=============================================================================
# If you have any questions or comments on my script feel free to message me
# teenemo@yahoo.com I rarely check my email if you have my space just message
# me there and I will get back to you as soon as I can
#=============================================================================
# If you can think of any way to make this script better please message me and
# I will try and use yuo idea in it and if you want credit for your ideas just
# tell me and I will be gald to add your name to the list
#=============================================================================
#CREDITS
#=============================================================================
# Philip aka Soma (me) creator of this script
#=============================================================================

 

 

Edited by giver

 


SCRIPT RGSS (RPG Maker XP) VINTAGE LIBRARY [2018+]


Breaking (in ogni senso) News: "Treno deraglia per via del seno di Sakurai Aoi . . ." - Info nello spoiler !!

 


http://afantasymachine.altervista.org/_altervista_ht/NOOOOOOOOOilMIOtreninooooo_500.gif


Non riesco a smettere di essere affascinato da immagini come questa . . .

http://anime.vl-vostok.ru/art/photos2011/17/78049800/wall_VladAnime_WWA_1885-1680x1050.jpg


Alcuni wallpapers che faccio ruotare sul mio vecchio PC . . .


http://afantasymachine.altervista.org/_altervista_ht/gits_window.jpg

http://afantasymachine.altervista.org/_altervista_ht/madoka_group01.jpg
http://afantasymachine.altervista.org/_altervista_ht/arisu_picipici_01.jpg
http://afantasymachine.altervista.org/_altervista_ht/phantom_wp01_einzwei.jpg


La parte più spassosa della mia vita è quando gli altri cercano di spiegarmi i miei pensieri . . .


BBCode Testing


Typeface & Size



Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...