WR Heart rpg
Vuoi reagire a questo messaggio? Crea un account in pochi clic o accedi per continuare.

Soma Hud

Andare in basso

iconvx Soma Hud

Messaggio Da LusianL il Gio Mag 10, 2012 1:27 pm

Soma hud


Autore:Soma

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

Screen

Soma Hud Tt10

Script
Spoiler:

Codice:
#==============================================================================
# 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.

_________________________________________________
Premi RpgMaker
Spoiler:


Soma Hud SCContest1OctSoma Hud SCContest3OctSoma Hud SCContest3OctSoma Hud SCContest3OctSoma Hud SCContest2OctSoma Hud SCContest2OctSoma Hud Bestpixel2Soma Hud BestresourCSist2Soma Hud Mostproductive1Soma Hud Iconap13Soma Hud Iconap14Soma Hud Iconap15Soma Hud Iconap16
Soma Hud Screen10
LusianL
LusianL

Data d'iscrizione : 07.07.11
Età : 119
Località : Charsetlandia

Torna in alto Andare in basso

Torna in alto

- Argomenti simili

 
Permessi in questa sezione del forum:
Non puoi rispondere agli argomenti in questo forum.