Le Deal du moment : -50%
-50% Baskets Nike Air Huarache Runner
Voir le deal
69.99 €

Aller en bas
LightNox
LightNox
Membre

Nombre de messages : 1759
Age : 33
Localisation : Chez Moi ^^
Date d'inscription : 10/04/2008

LN - HudEx (Simple) Empty LN - HudEx (Simple)

Ven 28 Sep 2012 - 18:45
LN - HudEx (Simple)


Auteur : LightNox

Version du script : v1.0

Principe du script : Permet d'afficher sur la map plein d'information concernant le héro jouer

Instructions : Placer le script en dessous de matériel

Screens :
LN - HudEx (Simple) Sans_t14

Script :
Code:
#-------------------------------------------------------------------------------
# * LN - HudEx
#-------------------------------------------------------------------------------
class Window_HudEx < Window_Base
#-------------------------------------------------------------------------------
  def initialize
    super(90, 300, 390, 115)
    self.opacity = 255
   
    @hp = 0
    @mhp = 0
    @mp = 0
    @mmp = 0
    @tp = 0
   
    refresh
  end
#-------------------------------------------------------------------------------
  def refresh
    self.contents.clear
    actor = $game_party.leader
    draw_actor_hp(actor, 0, 0, 110)
    draw_actor_mp(actor, 0, 32, 110)
    draw_actor_tp(actor, 0, 64, 110)
    draw_actor_face(actor, 115, 0, 96)
    draw_text(230, 0, width, line_height, actor.name)
    draw_character(actor.character_name, actor.character_index, 230, 90)
    draw_text(260, 25, 25, line_height, actor.level, 2)
    draw_text(230, 25, 120, 25, "Niv:")
    draw_text(245, 68, width, line_height, actor.class.name)
   
    @hp = $game_actors[1].hp
    @mhp = $game_actors[1].mhp
    @mp = $game_actors[1].mp
    @mmp = $game_actors[1].mmp
    @tp = $game_actors[1].tp
  end
end
#-------------------------------------------------------------------------------
  def update
    if $game_actors[1].hp != @hp or $game_actors[1].mhp != @mhp or $game_actors[1].mp != @mp or $game_actors[1].mmp != @mmp or $game_actors[1].tp != @tp
      refresh
    end   
  end
#-------------------------------------------------------------------------------
class Scene_Map
#-------------------------------------------------------------------------------
  alias hudex_main main
  alias hudex_update update
  alias hudex_terminate terminate
#------------------------------------------------------------------------------- 
  def main
    @hud = Window_HudEx.new
    hudex_main
  end
#-------------------------------------------------------------------------------
  def update
    @hud.update
    hudex_update
  end
#-------------------------------------------------------------------------------
  def terminate
    @hud.dispose
  end
end
#-------------------------------------------------------------------------------

+5 pts de participations
Balbereith
Balbereith
Staffeux retraité

Nombre de messages : 4129
Age : 31
Localisation : dans l'ombre...
Distinction : Péripatéticienne à temps perdu
Helly n°666 [Coco' ;D]
mon ptit balbounet p'tit jardinier en herbe(les râteaux ça le connait) [tonton Adurna]
Cultivateur professionnel de la commu' (il a de bons outils en de nombreux exemplaires LN - HudEx (Simple) 522164 ) [Coco' Smile]
Date d'inscription : 13/05/2009

LN - HudEx (Simple) Empty Re: LN - HudEx (Simple)

Ven 28 Sep 2012 - 23:48
+5pts de participations, mais il y a eu un fail à l'hébergement de l'image non ?
LightNox
LightNox
Membre

Nombre de messages : 1759
Age : 33
Localisation : Chez Moi ^^
Date d'inscription : 10/04/2008

LN - HudEx (Simple) Empty Re: LN - HudEx (Simple)

Sam 29 Sep 2012 - 10:31
fail de l'hébergement de l'image Oo? moi je la vois très bien x)
Contenu sponsorisé

LN - HudEx (Simple) Empty Re: LN - HudEx (Simple)

Revenir en haut
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum