OK merci je vais essayer ^^
=begin #========================================================= ===================== ** Actor Windowskin Author: Hime Date: May 24, 2012 ------------------------------------------------------------------------------** Change log May 24 - initial release ------------------------------------------------------------------------------This script allows you to set windowskins based on which actor is in your party, based on the priority specified in the configuration. #========================================================= ===================== =end $imported = {} if $imported.nil? $imported["Tsuki_ActorWindowskin"] = true #========================================================= ===================== # ** Configuration #========================================================= ===================== module Tsuki module Actor_Windowskin
# Skins that should be loaded for each actor, by actor ID Skins = { 1 => "Window", 2 => "Bubble", 3 => "Frame" }
Priority = [1, 2, 3]
#automatically generated Skin_Keys = Skins.keys.sort_by{|num| Priority.index(num)} rescue Skins.keys.sort end end #========================================================= ===================== # ** Rest of the script. #========================================================= ===================== class Game_Party < Game_Unit
def has_actor?(actor_id) @actors.include?(actor_id) end end
class Game_Party < Game_Unit
#just hacking around to make it work.. alias :th_actor_windowskin_add_actor :add_actor def add_actor(actor_id) th_actor_windowskin_add_actor(actor_id) SceneManager.goto(Scene_Map) if SceneManager.scene_is? (Scene_Map) end
alias :th_actor_windowskin_remove_actor :remove_actor def remove_actor(actor_id) th_actor_windowskin_remove_actor(actor_id) SceneManager.goto(Scene_Map) if SceneManager.scene_is? (Scene_Map) end end
class Window_Base < Window include Tsuki::Actor_Windowskin
alias :th_actor_windowskin_init_window :initialize def initialize(x, y, width, height) th_actor_windowskin_init_window(x, y, width, height) set_windowskin end
def set_windowskin filename = "" for actor_id in Skin_Keys if $game_party.has_actor?(actor_id) filename = Skins[actor_id] break end end self.windowskin = Cache.system(filename) unless filename.empty? end end
Voilà un très bon script mes j'ai un petit problème il me dit graphic/système/bubble mes je trouve pas je change dans 1 2 ou 3 ou même dans le '''' mes rien a faire merci de m'aider
|