For example, this basic but super useful function:
All it does is replace one inventory item with another at the same index, so if you're mixing drinks in the inventory, you'd just call:
Also note that invCustom needs to be changed to whatever the name of your inventory window is.
EDIT: My sincere apologies, I'm going to get myself into trouble by not reading the forum rules. I now realise this doesn't fit the guidelines for a module on this board.
I have a few of these handy functions which I think would be really helpful, especially for beginners, I was thinking of putting them together in a sort of handy-helper library.
They include handy functions that:
-capitalise the first letter of a string
-highlight the inventory cursor over a hotspot
-Character.InRect() -check if a character is within a rectangle
If there's interest in this sort of thing, maybe we can put together an open source collection of handy helper functions?