I need full control over the Effects an item gives when consumed. how do i do that?

i admit its a bit unusual what i try to do, but I want a robust and type-safe implementation, so I need it exactly as I'm describing. Roughly simplified: I want to create a new subtype of items, which has certain constant properties. All these items have a value for HP and MP regeneration, TP usage cost and EXP gain. For this I want to use special handling in scripts so that I have full control over everything exactly what happens and so I can avoid random bullshit errors which often torpedo my plan by letting something happen that wasn't intended was. so the items were not always usable outside of combat, even if the opposite was desired. i own the VisuStella_MZ wave plugins but these have been of limited help to be honest. Screenshot (1349)_cr.png
Why do you have the effect in both the note and the damage formula?
good question, forgot to remove that, its a untested prototype of another item. the effect in the damage formular is going to be removed.
Why do you have the effect in both the note and the damage formula?
good question, forgot to remove that, its a untested prototype of another item. the effect in the damage formular is going to be removed.
Okay. What is VS doing or not doing that it shouldn't/should in what you're trying to do?
Okay. What is VS doing or not doing that it shouldn't/should in what you're trying to do?
Mainly the Item Accessibility. the use of the <JS Item Enable> Notetag from the "Items_and_Equips_Core_VisuStella_MZ" plugin doesnt fully overwrite it, which is a bit annoying. i guess it has something to do with the Damage type, as healing with full health doesnt make sense normally. However, the purpose of my question is a bit more fundamental, as i want to proactively prevent this kind of nonsense by taking full control of what happens so that unintentional engine side effects don't break what i wanted to do. i could, of course, change the damage type to change the Accessibility in the menu, but that's only healing the symptoms. This is why I need to know how i do exactly that. the database inherit plugin could help, as it kinda allows me to emulate what i know from object-oriented programming (i have some java experience, although its more novice level to be honest), but that has also its limitations.
Mainly the Item Accessibility. the use of the <JS Item Enable> Notetag from the "Items_and_Equips_Core_VisuStella_MZ" plugin doesnt fully overwrite it, which is a bit annoying. i guess it has something to do with the Damage type, as healing with full health doesnt make sense normally. However, the purpose of my question is a bit more fundamental, as i want to proactively prevent this kind of nonsense by taking full control of what happens so that unintentional engine side effects don't break what i wanted to do. i could, of course, change the damage type to change the Accessibility in the menu, but that's only healing the symptoms. This is why I need to know how i do exactly that. the database inherit plugin could help, as it kinda allows me to emulate what i know from object-oriented programming (i have some java experience, although its more novice level to be honest), but that has also its limitations.
When you say item accessibility, do you want to prevent certain actors from being chosen as targets, or prevent the item from being selected *at all* from the item menu?
When you say item accessibility, do you want to prevent certain actors from being chosen as targets, or prevent the item from being selected *at all* from the item menu?
I actually want that it can be used also from the menu, even if the target is at full health. But, again, i want to have more control over what happens in general, so if i know how i do that i probably can fix the other issues i have with that as well.
Please just tell me how to gain this control. Specifically: how can I outsource the damage calculation to a script so that I can equip it with my own parameters?
what is the best way to create a new subgroup of items? I imagine it to be similar to the inheritance from other object-oriented languages, but I don't know whether the databaseInherite plugin is sufficient there.
In order to outsource the damage calculation to a script, you would have to have a plugin overwrite Game_Action's makeDamageValue function.
In order to outsource the damage calculation to a script, you would have to have a plugin overwrite Game_Action's makeDamageValue function.
ok, then it seems like i need really to look how to write a plugin myself... well, shouldn't be that hard, I guess.

Original thread: https://forums.rpgmakerweb.com/threads/i-need-full-control-over-the-effects-an-item-gives-when-consumed-how-do-i-do-that.153691/