Vampires drink blood

Or you can add a few words to code 😉:
Code:
Game_BattlerBase.prototype.meetsUsableItemConditions = function(item) {
    return this.canMove() && this.isOccasionOk(item) && $dataItems[item.id].meta.vampire == this.meta.vampire;
};
Is that a script call, or do you save that as a plugin? I'd like to try this, but I dont know where to put the code.

It could be very handy to use this for many things, not only for vampirism.
Okay... how would a common event prevent that then?

By specifying it as only affecting one character, and handling the decrement manually instead of making the item consumable.
By specifying it as only affecting one character, and handling the decrement manually instead of making the item consumable.
That would be hard if people can become vampires, or when there are more vampires.

Dont get me wrong, it is a possible solution. I would just do it a bit different myself. And after this thread, I would even try the solution by @ATT_Turan instead of my own. And I might, in a different situation.

I actually like how 3 of us come with 3 completely different solutions. Just because yours isnt my first choice, doesnt mean it isnt a good solution.
As I said, specifically, it if it was one or two items, for one character, I would probably do it my way. Otherwise, I would look at something else.
I know. I wasn't trying to make your idea look bad or something.
Thank all you beautiful people for the recommendations. After reading everything here, I decided to go with a mix of JohnDoeNews and Tridium's methods, with healing vampires 100% while normal people get a disgusted state that's unremovable by everything except the Recover All function.
Thank all you beautiful people for the recommendations. After reading everything here, I decided to go with a mix of JohnDoeNews and Tridium's methods, with healing vampires 100% while normal people get a disgusted state that's unremovable by everything except the Recover All function.
Would you use a state or a class for vampires? And do you only have 1 steady vampire or can actors become a vampire? I know your question is answered, I am just curious about your game.
Would you use a state or a class for vampires? And do you only have 1 steady vampire or can actors become a vampire? I know your question is answered, I am just curious about your game.
I put neither for that since I was using the VisuMZ_1_ElementStatusCore plugin, so I just put down vampire in the "race" section. Though since I'm not great with script, I decided to go with your more simpler suggestion with Tridium's twist for the blood thing. As for the number of vampires, its 5 steady ones and no, the other actors can't become vampires since in my game's setting, vampires are born rather than turned.

Original thread: https://forums.rpgmakerweb.com/threads/vampires-drink-blood.159497/