Change Windows Skin not working

Hey there I'm nearly done working on a game and I was wanting to have it at the beginning where you can choose your text box colour between 3 choices because I've seen other RPG games with that feature. I have the texts named "RedSkin" "BlueSkin" "PurpleSkin" and have the show choices and when I click red I clicked ' Change WindowsSkin "RedSkin" ' but no matter what it always shows up as purple. If anyone knows the solution I'd greatly appreciate it.
Share a screenshot of your event and list what custom scripts your game is using
Screenshot 2024-05-20 121824.png
Would your problem perhaps be that all 3 of your choices use RedSkin?

It would also help to know the actual names + links to the scripts. The AMS is catching my eye
Oh lmao I forgot I had it set to that, but for some reason even though they're set as RedSkin it shows up as PurpleSkin. I just switched it back to check and its still showing as purple for them.
Also sure thing here's the AMS one

I can show the other ones too.

Also I just temporary removed the AMS to see if it made a difference and now the change windows skin is working. It's odd since my friends game has the same AMS and can change windows skin. I'd ask him but he's been offline for a while.
What is the windowskin graphic "TextSkin"? Is that purple in color? The script is using that as your windowskin for all your message windows:
Ruby:
class Window_Message < Window_Selectable

...

def refresh
 
self.contents.clear
self.contents.font.color = text_color($ams.message_box_text_color)
self.contents.font.name = $ams.font_type
self.contents.font.size = $ams.font_size
self.windowskin = RPG::Cache.windowskin($ams.message_box_skin) #<--- this line here
You have one of two options. Either make this script call (replacing the name accordingly):
Code:
$ams.message_box_skin = 'RedSkin'
or update the offending line I pointed out above with
Code:
self.windowskin = RPG::Cache.windowskin($game_system.windowskin_name)
The benefit of the latter is that all your windows (except for the name box) will be updated with the new windowskin using the Change Windowskin event command. The former will require you to make the script call + the event command every time you wish to change it.
Oh yeah the textskin was purple that explains it. Also I just added that new code into the script and it works perfectly. Thanks man that was very helpful I'll give you a special thanks in the credits to my game.

Original thread: https://forums.rpgmakerweb.com/threads/change-windows-skin-not-working.168831/