Items related Qeustion

Hi Guys and Girls


I am busy building my game and i stumble on a problem


i am busy with a harvest moon kinda game with hunger and stamina


i use for this 'Bravo Hunger/Thirst/Sleep System' script.


Now i made a item that takes a bit of hunger away and heals you a bit ( an apple)


i thought that i was right with this but i cant use it from the menu it just gives the negative sound


i do not know how to make it work so that i can use it from the menu and in battle.


i added a screenshot for make clarence.


thank you a bunch already


mr rob

itemprobleem.png
He cant use it because he got full HP.


A Workaround would be:


Create a empty state, than let the Item Add that state and in the next line let the Item Remove that state.


Now you can use the Item even if you got full health.
sorry @Bex but i do not quite understand you
The item has the effect to recover HP, and that is the only effect the base engine sees.


To prevent players from loosing items by extra key presses, a recovery item is only allowed to work when there are points to recover.


That beep says "I already have full HP, using that item would make no sense now".
thank you for your reply @Andar. do you know how i can work around that?
don't give it a healing effect - if the engine doesn't see such an effect, it lets you use the item without problems.
Perhaps include the recovery effect through the Note section? So the basic engine won't see anything and won't restrict the use of the apple.
You can have your apple regenerate HP over time using a HP Regen State, but why use the apple at all when you're already at full health? Was there a different goal you had in mind?
You can have your apple regenerate HP over time using a HP Regen State, but why use the apple at all when you're already at full health? Was there a different goal you had in mind?



He also uses a stamina script, wich means the player could also use the apple to restore stamina. Look at his screenshot.
Yes a stamina system.


I solved it by puzzling myself but still thank you all. @frzhrt834 in the note box? How would i do that?
@Mr Rob i allready posted the Workaround for you.


Database - Items - Your Item -  And in the Box where you add the 12 Hp you insert a 2nd and a 3rd effect like i mentioned above and your item will work like you want it without


further changes. Add State - Counterattack , next line Remove State -Counterattack. But insteed of using the state counterattack u create a new empty one so its less confusing


and using this item not removing the state by acident.


Now you can  use the Item(Apple) even with Full HP.
Its working 


Thank you all!

Original thread: https://forums.rpgmakerweb.com/threads/items-related-qeustion.73691/