Hi,
I made inventory containers with this tutorial:
TUTORIALFor now, it looks like this:
And submenu looks like this:
1. Everything works fine beside "Use" button. When I click it - nothing happens, but I set the potion item to add 25 points to my character's health (in my game I called it "Max Health"):
So, when player lost his health and try to use the potion - simply nothing happens. The quantity is still the same and health doesn't change.
2. As you can see on the first screenshot, player has 6 potions. But the thing is, I programmed only 3:
This is the issue for whole inventory, because when I add one key in start inventory section, my player after spawn got them by two. So, it basically means that my start inventory multiplies somehow by 2 and I don't know where ;/
Especially Animate Use (one of the settings at the top of the menu part) - if it's enabled and the menu screen pauses the game, actually using the item would be delayed until the menu is closed due to the item action being paused as well.
I also assume Max Health is the Consumable type status value for your health, not the one that defines the max health a combatant can have. Otherwise that'd just increase the possible max health and not regain health :)
2) Sounds like you either add the player combatant twice or your start schematic where the player is added is running twice.
E.g. setting the schematic in UI > Start Menu as the start schematic and also using it in your scene (e.g. on the game starter or as an auto machine).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
2. Yes, I had Start Schematic in UI > Start Menu and in ORK Game Starter :D So now everything is fine in the inventory :) Thanks!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I set "Useable in" to Both, as you can see on the screenshot. Is there any other option to use it outside the battle?
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Max Health is the CAP on health. (normal value)
Health (consumable) is the actual health value that would be healed/damaged.
So setting the potion to Max Health is like increasing character maximum HP.
That is assuming the status values themselves are set up accordingly, to what it looks like.
Hope that helps
The use of an item in a menu screen would usually open a combatant selection to select the group member to use the item on, unless that's specifically set up to not be that way (which it doesn't seem to be based on your screenshots). Might be that you didn't set up the combatant selection (most likely no UI box selected) and that should show an error or warning in the console about that.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Also, I set the "Use" option like this:
There is something called "Use Combatant Part", but it doesn't change anything.
The combatant selections set up as default in the Geneal Settings should have a UI box selected in their setups.
The Use Combatant Part option would only be used if there is a Combatant menu part in the menu screen that displays the group members - in which case that part would get focus to select the target for the item.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!