The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

Pudding And Wakaba [REP/RGON/WIP]
Dangan2020 2022 年 4 月 30 日 下午 8:21
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
< >
正在显示第 1 - 2 条,共 2 条留言
리셰  [开发者] 2022 年 5 月 1 日 上午 12:56 
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]
最后由 리셰 编辑于; 2022 年 5 月 1 日 上午 12:57
Dangan2020 2022 年 5 月 1 日 上午 3:50 
I finally got it to work, thanks for the help!
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50