HP and Object interaction

Hi guys

Is there a way to do a plugin such as HP and Object interaction? I am a newbie to RMMV learning to code JS

For example, player click at object A and select restore HP, and then HP restored (please see an image below)

Is there a conceptual to code this ? or is there a simple way or plugin out there ?

Any suggestions are appreciated

object interaction.PNG
there is a link between the map and the party, for *damage* purposes.
it could be a matter of just reversing the sum, for healing.
I suggestion you to brows all of yanfly plugin
because you are newbie to plugin
and what many of basic tutorial like somerandomdude driffwood
before you go out to asking
you lack many basic of rpgm program
and there are easy path and hard path
better know your engine before make a decision
For example, player click at object A and select restore HP, and then HP restored
is there a reason why it cant just be an event? its a very basic event to do.
show choices > change HP (or change parameter if its to change MaxHP)
Like @Tiamat-86 said, you can do this simply using events ^^
if you are new to MV, why not try the inbuilt tutorial? learn the system, see what you can event alone
without much effort of JS before creating plugins? or find them?

I've moved this thread to Plugin Requests. Thank you.


I've moved this to Plugin Requests as that is what you are asking for, but as others have said, it's not necessary to accomplish. This can be done rather simply with events.

Original thread: https://forums.rpgmakerweb.com/threads/hp-and-object-interaction.119122/