Vampire Death Condition?

I'm pretty new with RPG Maker, but I'm learning pretty quickly. Girlfriend had an idea for a vampire game and I was trying to figure out how you can control the Death status for vampires against specific weapons (i.e. stakes). Like bringing health down to 0 with a conventional non-wooden weapon would give them the "weakened" status, and could only be killed with a specific weapon type. What is the best way to execute this?

What are some creative things you guys have come up with involving vampires, or even just conditional immortality in general?

Thanks 🙂
Just a heads up - creative things such as you suggest is exactly what this particular forum is for. However, the other question "what is the best way to execute this" is more about implementation. "How do I...?" questions belong in the Support forum for the engine you are using. So it would be best to keep that query to one side.
Well we can stick with the creative part of the post then. I can continue to work out the implementation on my own, and if I run into problems I will be sure to post in the proper section. Thanks for the reply.
Well, Yanfly had you covered. He made a greater undead passive state so you give the monster the passive state and it can only be killed by fire as their killing blow. You can give the stakes ''vampire execute'' element with anything other than that unable to do that damage except maybe holy water so that is why I did not name the element just ''wood'' since many other things are able to kill vampires. Here ''http://yanfly.moe/2016/12/21/tips-tricks-greater-undead-resident-evil-rpg-maker-mv/'' is a link for the page and if you do not want to check the link here is the notetag for the passive state taken from Yanfly's page. (with alterations for you that include where you must put your element id to)

<Custom Passive Condition>
// Check if the undead death flag has not been triggered
condition = !user._undeadDeath;
</Custom Passive Condition>

<Custom React Effect>
// Check if this action recovers HP
if (this.isHpRecover()) {
// Make it deal damage instead
value = Math.abs(value);
}
</Custom React Effect>

<Custom Respond Effect>
// Check if the target's HP is 0 or less
if (target.hp <= 0) {
// Get this action's elements
var elements = this.getItemElements();
// Create a list of the elements that can kill this undead (so write down the element id of the elements you want to execute the vampires with)
var killingElements = [x, y];
// Set the initial kill flag to false
var killed = false;
// Loop through the killing elements
while (killingElements.length > 0) {
// Get the currently looped killing element
var elementId = killingElements.shift();
// Check if the action's elements have a killing element
if (elements.contains(elementId)) {
// If it does, set the kill flag to true
killed = true;
}
}
// Check if the kill flag has activated
if (killed) {
// Set the undead death flag to true
target._undeadDeath = true;
// Refresh the target
target.refresh();
} else {
// Otherwise, set the target's HP to 1
target.setHp(1);
}
}
</Custom Respond Effect>
Some good stuff to digest. Been a long time since I flexed any scripting muscles. There are definitely some things I overlooked when it comes to vampires.
@RyFry90 You do not really need scripting for that one. Like I said, things are quite easy. I have a vampire playable character myself, so I am good on this case but not all vampires are able to get killed by specific elements. For example impailing the heart of a vampire would kill it, but if we would impale the heart of any creature with a stake, it would be fatal for them too. It is like a discussion in LoL where we discussed Vayne's Silver Bolts. It says that Vayne coats her arrows with a substance that is toxic to evil beings, so how can it affect clearly good champions. Someone said that maybe it is not just toxic to evil, but toxic to everybody. What am I telling is, a specific way to kill something is not the way to go. What if the characters have no stakes in a boss battle? It is not like you can escape to get a stake, or kill the boss in any way whatsoever.

I say widen the elements required to kill it.

-A vampire can die from Holy Water, which is basically water enhanced by divine energy so you can say a vastly concentrated light energy can harm and possibly kill them.
-Vampires have a very lethal affection to sunlight, and possibly starlight as well (looking at a scientific approach) so astral magic can also kill them by the way you look at it.
-In Twilight vampires are killed by getting their bodies burnt after their head it chopped off. Twilight has a horrible story but it is right about the thing that vampires are super duper weak against being burnt to a crisp.

Do not make it a ''take this thing to defeat this or just lose'' and more of a ''pick your poison'' kind of thing, so it can be interesting.

If you are going for the ''weakness'' route it is even easier. Add this passive state to the vampire enemies for example.

Vampire Weakness - Passive State
-Physical Damage parameter to %10
-Magical Damage parameter to %10
-Elemental Resistance against the killer element by %100000 so it is an instakill.
<Passive Condition: HP Below 10%>
@fireflyege good stuff.

-Vampires have a very lethal affection to sunlight, and possibly starlight as well (looking at a scientific approach) so astral magic can also kill them by the way you look at it.

I'm currently thinking of using Light/Dark magic, but the "Light" is more of a holy thing, and not sunlight. Adding some sort of astral magic could spice it up a bit. Especially with the vampires.

The gal and I have actually been watching Vampire Diaries recently (We also crammed in Buffy and Angel over the winter). Currently at the end of season 6. Still more of a Twilight style drama, but certainly a bit more bearable. I like their use of items to either help or hurt vampires. Not sure if you are familiar with it. They use an herb called "Vervain" to combat vampires. You can add it to your drink to resist compulsion and to give any vampire a good shock when they try to feed from you. Injecting them with it can put them into a severely weakened state. Of course any skin contact creates a painful burn. It's kind of like their version of holy water. They also utilize daylight rings (because let's face it, a vampire able to go out in daylight opens up the plot quite a bit).

For some reason it is an extreme rarity to see them kill a vampire by beheading or fire. Probably because they LOVE to keep characters alive beyond their plot usefulness.

They do an interesting thing for the humans involving immortality. Some mortal characters wear rings that can bring them back to life if their cause of death was supernatural. For instance, if a vampire was driving a car a ran down somebody that was wearing that ring, they would be brought back to life.

A special item like that seems just a little OP though.
@RyFry90 well then do not make vampires that overpowered much. For example in Twilight werewolves are actually obsolete compared to vampires. I wonder what Stephenie Meyer was smoking when she wrote Benjamin. You know, the vampire who controls the elements. I am not against vampire elementalist but really, innate elementalism? What is she having because I wanna have some too.

Also any kind of light is known to weaken a vampire. It could be sunlight, starlight or holy it does not really matter because they are all efffective on a vampire.

I will give you an example of Victoria, the vampress in my project. Victoria is a vampire blood mage, and to get protected from the light of day and elemental attacks she prefers to stay in a human form, where she transforms her huge wings to tiny bat wings, and her skin color to skin just like any other human. She also loses some of her life draining abilities and supernatural advantages. In my world light and fire does not kill a vampire but they weaken them. She can still hunt in the day but emptying a vessel is harder since she is not as vampire as she is in the night. In battle, she can transform to her full state when she has enough bloodlust. Think adrenaline, you are so emotionally fired up that you do not care whatever pain would you be taking at that time. Victoria feels the same when she gets transformed, but of course it lasts for a short state. She gets the full benefits when she gets to her vampire form but she is still good when concealing her form.

Why am I telling you this? Well concealing your strenghts are sometimes needed to conceal your weaknesses, and it is not that hard to perform as a mage. I think a vampire mage must enjoy that advantage but I will not comment on vampires who do not have such merits. Shame on them, having eternal life and not studying immensely powerful and flexible things like magic.

Also the potion you are talking about is basically the Black Blood Potion from The Witcher 3. Yanfly also has a state for that. When they try to lifesteal off from you, they get damage instead. This can make your mortals not feel like blood bags when a vampire comes around. Here http://yanfly.moe/2016/09/09/tips-tricks-black-blood-potion-the-witcher-3-rpg-maker-mv/ is the link and if you do not want to check it here is the whole code for the black blood state. You really do not need to change anything, just copy paste it and you are fine.

<Guard HP Life Steal>

<Custom Respond Effect>
// Check if this is an HP effect and if the target received HP damage.
if (this.isHpEffect() && target.result().hpDamage > 0) {
// Declare the type of Life steal it is.
var type = 'hp';
// Check if it is physical
if (this.isPhysical()) {
// And add the Physical type
type += 'Physical';
// Check if it is magical
} else if (this.isMagical()) {
// And add the Magical type
type += 'Magical';
// If it is neither physical or magical
} else {
// Then add the certain hit type.
type += 'Certain';
}
// Get the skill's life steal rate.
var rate = this.getLifeStealRate(target, target.result().hpDamage, 'hp');
// Add it to the user's life steal rate.
rate += user.getLifeStealRate(type + 'Rate', target);
// Get the skill's life steal flat amount.
var flat = this.getLifeStealFlat(target, target.result().hpDamage, 'hp');
// Add it to the user's life steal flat amount.
flat += user.getLifeStealFlat(type + 'Flat', target);
// Calculate the damage to be dealt.
var dmg = Math.floor(target.result().hpDamage * rate + flat);
// If the damage is above zero...
if (dmg > 0) {
// Make a copy of the user's current results.
var result = JsonEx.makeDeepCopy(user._result);
// Make the user lose HP.
user.gainHp(-dmg);
// Start the damage popup.
user.startDamagePopup();
// Start an animation on the user.
user.startAnimation(2);
// Clear the user's results.
user.clearResult();
// Return the user's results to what they were before.
user._result = result;
}
}
</Custom Respond Effect>
I would personally make them weak to fire, but in a slightly different way.

Vampires can only take damage if they're inflicted with a "burn" status. They should also have an effect where any fatal attack would leave them at 1 HP instead of killing them. Making it so that exploiting a vampires weakness isn't too overwhelming for the vampire. The vampire regenerates X% health every turn so it may have a chance to recover from a bad situation, unless it gets hit with another attack right after hitting 1HP. The burn floor damage should take effect before the regeneration. So you'd need to use an ally's heal spell to heal the vampire from 1HP before it's the vampire's turn if you don't want it to die.
Do not make it such a complex thing. Make it possible for the vampire to get overwhelmed. You know what infuriates the player? People that can only be killed or damaged by such things. Vampires needing to get burnt to just take damage would ruin the whole game.

So tell me, if an enemy simply forces you to exploit a weakness why would you be rewarded less for doing it? Exploiting enemy weakness is a choice, and is meant to be. Not only you are forcing people to exploit an enemy's weakness to do anything at all, you are not rewarding them enough. So, you want to force people to find and exploit weaknesses? Fine. But make the weakness actually reward the player. Just ''Dealing damage'' is not really considered a reward for me and that would make me quit a game entirely because how poor the balancing would be.

Also why do have vampires health regeneration of any sort? They must feed from the living just because they lack life regeneration of any sort, giving in battle regeneration to them is wise to you? This idea you have just written about this vampire is not a vampire that is weak to fire. It is about a boring vampire that forces you to use a single element. Lore wise I would stop caring all about your story if I see this one, because they must lore-wise make sense as well.

Also another thing, making it so that the weakness would not overwhelm the vampire. Why? Weaknesses are meant to overwhelm that particular person who have that weakness. But they have other strenghts to justify that. For example, you would give fire resistance to a person that has pyrophobia because that would ''overwhelm'' that person? No unless that person finds a way such as a fire protection ring or something like that but no innate advantage would be a work of a wise person.

Give the vampire huge attack, make the vampire get very excessive lifesteal values and make them actually weak to fire to the point it overwhelms the vampire but is not required to kill it. Make the lifesteal the only way for the vampire to actually heal, so that you can counter it with the anti life steal potion we talked earlier. A vampire still can recover back from a hard situation, it just needs to lifesteal like most vampires but it will heal. In your system as a vampire I can simply defend and defend and defend until my innate life regen kicks in and if I fall below 1 health oh well unless I get burned I am immortal heck I do not need to defend I can literally wait for hours at 1 health unless I am fighting with an army of fire elementals.
@fireflyege you know, I JUST commented on another post using vampires as an example using something very similar that @Rayhaku808

There IS a way to accomplish this without frustrating the player, but it involved dragging the story into horror territory. The vampire is vulnerable to one thing (one very specific thing) and (at least this segment of) the plot revolves around finding this one vampire's weakness, crafting it, then using it.

You encounter it randomly as you explore. It won't die but you can drive it off (or maybe knock it out) and get away. Heck, if you knock it out, you can have the characters try stuff like dismembering and burning it... but it STILL comes back. However, once you get the thing you need to kill it, then you still need to fight it again, get it down to the level where it can be killed, then kill it. Then (and ONLY then) do you get the xp and rewards.

Another game did something similar to what Rayhaku8 was talking about (Wendigo).

The key to that is to make it so that you can get away (or otherwise end the battle without "winning") if you don't have what you need to kill the enemy.

Still, mechanics like this probably don't need to be used if you want to keep the tone light or if encounters are particularly frequent.
And another thing is that it would force the player to finding that thing required to kill the vampire. And forcing the player to do something with no other way to achieve the same result ALWAYS frustrates the player.

It also does not make sense for the creature to have only one weakness. In Allods, astral demons were the world's main threat and their weakness was meteorite iron, so the level 37 quest map is a frozen island because they decided to use a necromancer in their ranks, which infiltrated the meteorite iron mines with a horde of undead since the undead can destroy the meteorite iron and the demons would be without a weakness. Why can't vampires do the same and what is stopping them from doing it?

Also what if the vampire is a serious boss battle. You end the battle without winning and go fetch the resource, you do not even get the exp and gold which you fought so well for. I do not quite catch your theme with vampires unless it is specifically aimed to frustrate the player.
Enemies with this kind of mechanic should always considered to be "boss battles" though should not necessarily be static encounters.

You can still run the enemy off, just not kill it.

and the weakness need not necessarily be particularly rare. It can be a relatively common weakness. The point is that the player must be forced to find it, obtain it, and use it.

You're thinking of battles over the course of a single fight. With what I'm talking about, the fight itself is part of a bigger picture, part of the puzzle that the player has to solve. Without combat rewards, the player begins to understand that this is a battle of attrition against a single unkillable enemy.

Remember, I'm talking about how these mechanics work in a horror setting (or simply for an area that is frightening). In a standard rpg (especially in one with high encounter rates), this kind of thing is generally a bad idea..... but in a horror scene, it builds the tension because you're being hunted by a thing you can't kill. You can drive it off, but that's only temporary. You'll run out of resources and it'll keep coming.

This is something that must be executed well... but when it is, it makes a good game great (think about Nemesis and Jack Baker from the resident evil series.)

Original thread: https://forums.rpgmakerweb.com/threads/vampire-death-condition.79141/