Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Item Menu Setup

A topic by BlueDaBeDe created Mar 25, 2024 Views: 188 Replies: 3
Viewing posts 1 to 3

I have the setup to create a way for the players to use an item in my Menu step event. However, what I am struggling with is how to connect that to let the players use it. I need a way to connect activeTarget? so I can pick who to give the item to. Ex. what if during player 2s turn they want to use an item on player 1, or player 2 wants to use an item on themselves.

From what I understand, the menu only reads the action list because of  var _actionList = _unit.actions. How would you connect an already made inventory to be used and ignore the action list?

I'm Sean's video he mentions setting up the menu with structs - just do it. You have complete control and it's a LOT easier to access all the variables of each action and item.

If not you just need one of your menu functions in the script of the same name to beginAction appropriately. It should work straight out of the box.

Oh I actually got it working a while ago. I forgot to delete this post when I did.😬Thanks for trying tho.

Deleted 126 days ago