-
Notifications
You must be signed in to change notification settings - Fork 0
Prerequisites
Sanio edited this page Oct 3, 2024
·
4 revisions
To ensure a smooth time with your own code, it's recommended to do the following:
- Create a uniquely-named folder anywhere inside your mod folder to store your sprites in as to avoid mod conflict
- For vanilla characters, name your files with PlayerType numbers instead of their names. This makes it a lot easier and faster to add. For example, "0_MrDolly.png" or "MrDolly_0.png" would represent the Unique Mr. Dolly sprite for Isaac, "1_MrDolly.png" or "MrDolly_1.png" for Magdalene, etc. Name them however you wish as long as the PlayerType numbers are included.
The mod adds a global that you'll use to call all API functions, named "UniqueItemsAPI". Add a check to see that the global variable exists before proceeding with any code, or else your mod will error. All functions that are mentioned in further pages are to be prefixed with "UniqueItemsAPI." to be called upon correctly.
if not UniqueItemsAPI then return end
--codeor
if UniqueItemsAPI then
--code
end