cptscrimshaw
Member
I'm starting to set up some custom Item Actions for different items in my game (which is super easy by the way!), and I've run into a problem I should probably solve before creating any more actions.
Let's say that I want to have several items that are in the "Consumable" Item Category in the inventory database, but each of them performs a different function when I click "Consume" from the inventory menu (e.g., Health potion regenerates health, magic potion fills up magic bar, onion calls an animation to put them in a pot on the stove, or any other random function I'd want to call).
It appears that the CategoryActionItemSet will allow you to have have multiple actions for a specific category, but I don't want a menu of 25 things every time I click on an item in the inventory with 24 of them disabled. I'd just want the action that would specifically apply to the item selected to show up. I figure I could do this by creating individual categories for each item that has a function I want to call, but I'm sure there is a better way to do it and that would make the database quite messy.
Thoughts?
Thanks for all your help - totally appreciate how responsive you are as a developer.
Let's say that I want to have several items that are in the "Consumable" Item Category in the inventory database, but each of them performs a different function when I click "Consume" from the inventory menu (e.g., Health potion regenerates health, magic potion fills up magic bar, onion calls an animation to put them in a pot on the stove, or any other random function I'd want to call).
It appears that the CategoryActionItemSet will allow you to have have multiple actions for a specific category, but I don't want a menu of 25 things every time I click on an item in the inventory with 24 of them disabled. I'd just want the action that would specifically apply to the item selected to show up. I figure I could do this by creating individual categories for each item that has a function I want to call, but I'm sure there is a better way to do it and that would make the database quite messy.
Thoughts?
Thanks for all your help - totally appreciate how responsive you are as a developer.