The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

Trinket Costumes (Ab+ / Rep)
Spore64  [developer] 17 Jan, 2021 @ 6:48am
Modded Trinket Support
There's a lot to say about the modded trinket support. This mod includes a couple of functions to make adding a costume for your trinket a childsplay!

The most important are:
-- ctc:RegisterTrinketCostume(trinketId, costume path)
This function register your costumes automatically into a custom table.
It takes:
trinketId = The Id your trinket is assigned to. Make sure this is done global in your mod
costume path = the same path your costume is stored via 'GetCostumeIdByPath'.
You can find here an example mod on how this function is used.[pastebin.com]

Huge thank you to siraxtas for making the modded trinket support indefinitly better!

--------------------------------------------------------------------------------------------------------------------------

This part of the site is currently under construction. For more informations please check the `ctc_trinket` file in the mod itself or wait until this site is up to date.

I wish good modding:)
-- ctc:AddMoreCostumes(trinketId, costumeId, costumeId, costumeId, costumeId)
This function allows you to assign for more costumes to your trinket. It can only be used in combination with ctc:registerTrinketCostume() and requires the string used in the function to be set to "true".
It takes:
trinketId = The Id your trinket is assigned to. Make sure this is done global in your mod
costumeId = The ID the costume which belongs to the trinket is assined to it. Make sure is done global in your mod
You can find here an example mod on how this function is used.[pastebin.com]

-- ctc:UpdateConditions(player, trinketId, conditionNum)
This function is used in combination with ctc:AddMoreCostumes(). It allows you to switch between the costumes you registered in ctc:AddMoreCostumes().
It takes:
player = the player
trinketId = The Id your trinket is assigned to. Make sure this is done global in your mod
conditionNum = every costume has one condition attached to it. This takes the now fullfilled condition number and turn it to 'true'. This results in the mod switching the out the costume which is currently assigned to the trinket.
You can find here an example mod on how this function is used.[pastebin.com]

-- ctc:IsTrinketSmelted(player, trinketId)
This small function returns 'true' if a trinket is smelted and not hold by the player. 'false' otherwise. This function is at the moment at a base state and will further down the line be updated to a more complex version
Last edited by Spore64; 19 Sep, 2021 @ 6:31am