MMORPG-extreme
Vous souhaitez réagir à ce message ? Créez un compte en quelques clics ou connectez-vous pour continuer.
Le Deal du moment : -14%
Apple MacBook Air (2020) 13,3″ Puce Apple M1 ...
Voir le deal
799 €

facets en combat [VX]

Aller en bas

facets en combat [VX] Empty facets en combat [VX]

Message  Hitsugaya Dim 27 Juin - 21:36

Voicin un script pour avoir les Faces des persos en combats.
créez un nouveau script au dessus de main nommez le comme vous le voulez et collez y ceci:

Script:

class Window_Base < Window

def draw_face(face_name, face_index, x, y, size = 96, opacity = 255)

bitmap = Cache.face(face_name)

rect = Rect.new(0, 0, 0, 0)

rect.x = face_index % 4 * 96 + (96 - size) / 2

rect.y = face_index / 4 * 96 + (96 - size) / 2

rect.width = size

rect.height = size

self.contents.blt(x, y, bitmap, rect,opacity)

bitmap.dispose

end

def draw_actor_face(actor, x, y, size = 96, opacity = 255)

draw_face(actor.face_name, actor.face_index, x, y, size, opacity)

end

end



class Window_BattleStatus < Window_Selectable



def initialize

super(0, 0, 416, 128)

@column_max = 4

@spacing = 0

refresh

self.active = false

end

def refresh

self.contents.clear

@item_max = $game_party.members.size

for i in 0...@item_max

draw_faces(i)

end

for i in 0...@item_max

draw_item(i)

end

end

def draw_faces(index)

actor = $game_party.members[index]

draw_actor_face(actor, actor.index * 96 + 2, 0, 96, 100)

end

def draw_item(index)

self.contents.font.color = normal_color

actor = $game_party.members[index]

draw_actor_name(actor, index * 96 + 2, 0)

draw_actor_state(actor, index * 96 + 2, 18, 48)

draw_actor_hp(actor, index * 96 + 2, 56, 86)

draw_actor_mp(actor, index * 96 + 2, 74, 86)

end

end


Screens:

facets en combat [VX] Faceset_combat
Hitsugaya
Hitsugaya
Admin

Messages : 75
Date d'inscription : 24/06/2010

https://mmorpg-extreme.forum-actif.net

Revenir en haut Aller en bas

Revenir en haut


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