04-15-2025, 05:48 PM 
(This post was last modified: 04-15-2025, 10:26 PM by kyonides.
 Edit Reason: ACE + VX
)
	
	
	Actors' Custom Windowskins
VX + ACE
by Kyonides
Introduction
 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  party leader?
 party leader?Then you definitely have to use this scriptlet for sure!

Setup
- This scriptlet should be placed among the very first scripts in the Materials section.
 
- Go to the WinSkin module and add a new line per actor's ID like this:
 
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.
VX Script
Code:
# * Actors' Custom Windowskins VX * #
#   Scripter : Kyonides
#   2025-04-15
# All Windowskins Need to be Placed in the Graphics/System 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_winskin_gm_pty_stp_start_mbrs :setup_starting_members
  def setup_starting_members
    kyon_winskin_gm_pty_stp_start_mbrs
    $game_system.start_game = true
  end
  def leader_id
    @actors[0]
  end
end
class Window_Base
  alias :kyon_winskin_win_bs_up :update
  def initialize(x, y, width, height)
    super()
    update_windowskin
    place(x, y, width, height)
    default_settings
    create_contents
    @opening = @closing = false
  end
  def place(x, y, w, h)
    self.x = x
    self.y = y
    self.width = w
    self.height = h
  end
  def default_settings
    self.z = 100
    self.back_opacity = 200
    self.openness = 255
  end
  def update
    kyon_winskin_win_bs_up
    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
    filename = WinSkin::SKINS[@actor_id]
    self.windowskin = Cache.system(filename)
  end
  def set_default_windowskin
    return if @windowskin_name
    @windowskin_name = "Window"
    self.windowskin = Cache.system(@windowskin_name)
  end
endVX ACE Script
Code:
# * Actors' Custom Windowskins ACE * #
#   Scripter : Kyonides
#   2025-04-15
# All Windowskins Need to be Placed in the Graphics/System 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_winskin_gm_pty_stp_start_mbrs :setup_starting_members
  def setup_starting_members
    kyon_winskin_gm_pty_stp_start_mbrs
    $game_system.start_game = true
  end
  def leader_id
    @actors[0]
  end
end
class Window_Base
  alias :kyon_winskin_win_bs_up :update
  def initialize(x, y, width, height)
    super
    update_windowskin
    update_padding
    update_tone
    create_contents
    @opening = @closing = false
  end
  def update
    kyon_winskin_win_bs_up
    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
    filename = WinSkin::SKINS[@actor_id]
    self.windowskin = Cache.system(filename)
  end
  def set_default_windowskin
    return if @windowskin_name
    @windowskin_name = "Window"
    self.windowskin = Cache.system(@windowskin_name)
  end
endTerms & Conditions
Free as in
 beer.
 beer.Include me in your game credits.
That's it!
 
	
"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 VX + ACE
 Actors' Custom Windowskins VX + ACE
 

 

 Ooops! It would certainly crash!
 Ooops! It would certainly crash!  
  
	 
	 
 