04-15-2025, 06:27 PM 
(This post was last modified: 04-15-2025, 10:34 PM by kyonides.
 Edit Reason: Update 1
)
	
	
	Actors' Custom Windowskins
XP
by Kyonides
Introduction
![[Image: think.gif]](https://www.save-point.org/images/smilies/ejlol/think.gif) Do you need to change the look of all of your windows based on who's the current
 Do you need to change the look of all of your windows based on who's the current ![[Image: deedlit.gif]](https://www.save-point.org/images/smilies/ejlol/deedlit.gif) party leader?
 party leader?Then you definitely have to use this scriptlet for sure!
![[Image: wink.gif]](https://www.save-point.org/images/smilies/ejlol/wink.gif)
Setup
- This scriptlet should be placed among the very first scripts in the invisible custom script section below Scene_Debug.
 
- Go to the WinSkin module and add a new line per actor's ID like this:
 
Code:
Code:
SKINS[2] = "My Skin 2"If you forgot to add a custom windowskin for a given actor, it will use VX's or ACE's skin by default.
The Script
Code:
# * Actors' Custom Windowskins XP * #
#   Scripter : Kyonides
#   2025-04-15
# All Windowskins Need to be Placed in the Graphics/Windowskins directory!
module WinSkin
  SKINS = {} # <<== Leave it Alone!
  # Default Windowskin or Skin for Unlisted Actors
  SKINS.default = "Window"
  # Custom Windowskins
  SKINS[1] = "My Skin 1"
  SKINS[2] = "My Skin 2"
end
class Game_System
  attr_accessor :start_game
end
class Game_Party
  alias :kyon_skin_gm_pty_init :initialize
  def initialize
    kyon_skin_gm_pty_init
    $game_system.start_game = true
  end
  def leader_id
    @actors[0].id
  end
end
class Window_Base
  alias :kyon_skin_win_bs_up :update
  def initialize(x, y, width, height)
    super()
    update_windowskin
    place(x, y, width, height)
    reset_z
  end
  def place(x, y, w, h)
    self.x = x
    self.y = y
    self.width = w
    self.height = h
  end
  def reset_z
    self.z = 100
  end
  def update
    super
    update_windowskin
  end
  def update_windowskin
    if $game_system.start_game
      set_custom_windowskin
    else
      set_default_windowskin
    end
  end
  def set_custom_windowskin
    return if $game_party.leader_id == @actor_id
    @actor_id = $game_party.leader_id
    @windowskin_name = WinSkin::SKINS[@actor_id]
    $game_system.windowskin_name = @windowskin_name
    self.windowskin = RPG::Cache.windowskin(@windowskin_name)
  end
  def set_default_windowskin
    return if $game_system.windowskin_name == @windowskin_name
    @windowskin_name = $game_system.windowskin_name
    self.windowskin = RPG::Cache.windowskin(@windowskin_name)
  end
endTerms & Conditions
Free as in
![[Image: beer.gif]](https://www.save-point.org/images/smilies/ejlol/beer.gif) beer.
 beer.Include me in your game credits.
That's it!
![[Image: tongue.gif]](https://www.save-point.org/images/smilies/ejlol/tongue.gif) 
	
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
![[Image: SP1-Scripter.png]](https://www.save-point.org/images/userbars/SP1-Scripter.png)
![[Image: SP1-Writer.png]](https://www.save-point.org/images/userbars/SP1-Writer.png)
![[Image: SP1-Poet.png]](https://www.save-point.org/images/userbars/SP1-Poet.png)
![[Image: SP1-PixelArtist.png]](https://www.save-point.org/images/userbars/SP1-PixelArtist.png)
![[Image: SP1-Reporter.png]](https://i.postimg.cc/GmxWbHyL/SP1-Reporter.png)
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
	
	
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
![[Image: SP1-Scripter.png]](https://www.save-point.org/images/userbars/SP1-Scripter.png)
![[Image: SP1-Writer.png]](https://www.save-point.org/images/userbars/SP1-Writer.png)
![[Image: SP1-Poet.png]](https://www.save-point.org/images/userbars/SP1-Poet.png)
![[Image: SP1-PixelArtist.png]](https://www.save-point.org/images/userbars/SP1-PixelArtist.png)
![[Image: SP1-Reporter.png]](https://i.postimg.cc/GmxWbHyL/SP1-Reporter.png)
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE

 
 
 Actors' Custom Windowskins XP
 Actors' Custom Windowskins XP
 

 
 bug fix that will prevent your game from crashing because of the very first menu not being able to properly calculate the width or height of that first window. No further changes were needed this time.
 bug fix that will prevent your game from crashing because of the very first menu not being able to properly calculate the width or height of that first window. No further changes were needed this time.