Hi all,
Currently trying to learn how the whole modding dealio works, and am struggling to understand how to add a sound into a function. I have a sound attached to the recipe (i.e. the crafting phase) which works fine, but I would like a separate sound to play at the end of the crafting action (the OnCreate), depending on whether the user succeeded or failed in the craft. Similar to how you get a wood breaking sound if you fail to pick up a crate with carpentry, but I struggled to find that to reference.
The current function is below - basically rolls to see if the user succeeds or fails in the craft, and rolls some flavour text options for each.
Could anyone help with advising on:
How to add a custom sound that plays solely for the player based on success (GemChance>=5), or failure?
Where to place these custom sounds in the mod file to permit the function to locate/use them?
Cheers,
Quincy