The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

Pudding And Wakaba [REP(+)/RGON/WIP]
Dangan2020 30 Apr, 2022 @ 8:21pm
Need some help regarding Costume Protector
Hi I need some help with a mod of my own that I'm making: how did you implement the Character Costume Protector? When I do that this always remove the hair of the character I gave them
< >
Showing 1-2 of 2 comments
리셰  [developer] 1 May, 2022 @ 12:56am 
You have to include the Character Costume Protector lua file into your mod, If you subscribed CCP, check the CCP mod folder, there will be a lua file called characterCostumeProtector.lua

You have to copy-paste that lua file into your mod.

local myMod = RegisterMod("Modname", 1) local costumeProtector = include("scripts/characterCostumeProtector.lua") costumeProtector:Init(myMod)

Then, Register CCP into your character
function myMod:PlayerInit(player) costumeProtector:AddPlayer( player, Isaac.GetPlayerType("Alpha", false), "gfx/characters/costumes/character_alpha.png", 67, --A separate costume that is added for all cases that you ever gain flight. "gfx/characters/costumes/character_alpha.png", --Your character's spritesheet, but customized to have your flight costume. Isaac.GetCostumeIdByPath("gfx/characters/costume_alpha_hair.anm2") --Your character's additional costume. Hair, ears, whatever. ) end myMod:AddCallback(ModCallbacks.MC_POST_PLAYER_INIT, myMod.PlayerInit)

You can check details of howtos in here[github.com]
Last edited by 리셰; 1 May, 2022 @ 12:57am
Dangan2020 1 May, 2022 @ 3:50am 
I finally got it to work, thanks for the help!
< >
Showing 1-2 of 2 comments
Per page: 1530 50