New account registration is temporarily disabled.

RPG MAKER MV - I NEED SUGGESTION ON HOW TO DO A SKILL/MAGIC.

Posts

Pages: 1
So, I want to design a skill that will revive an ally, BUT.... would kill the user. So a sacrifice if you will, so how exactly would I do this? Thanks in advance.
Marrend
Guardian of the Description Thread
21806
Off the top of my head, I'd run the state removal through the skill properties as normal, and the HP restoration, and state application go through a function.

So, the damage calculation bar might look like...

sacrifice(b.mhp, a)

...whereas the `sacrifice` function, itself, might look like...

function sacrifice(value, user) {
	user.addNewState(user.deathStateId());
	return value;
};
...that? I'm looking through MZ's code-base, and taking semi-educated guesses, here. MV's implementation might look similar, though.

*Edit: You might be able to have this kind of effect without calling a plug-in, or script. Like, you might be able to do something like...

b.mhp; a.addnewState(a.deathStateID());

...this directly into the damage calculation bar? I've not dabbled in this kind of thing, myself, so, I'll apologize in advance if it doesn't work.
I appreciate the information and advice you have shared.
Pages: 1