[Solved] Damage Skill That Also Heals

Status
Not open for further replies.

DragonRose35

Scaleything
Veteran
Joined
May 31, 2017
Messages
49
Reaction score
0
First Language
English
Primarily Uses
RMMV
It... works how I was suggested, but it doesn't do damage or heal. And this entire conversation is confusing me terribly...

Skill Screenshot:
upload_2018-10-17_18-19-46.png

Notebox Formula:

<MP Cost: 50%>

<Enemy or Actor Select>

<Single or Multiple Select>

<damage formula>
if (target.isActor){
value = -(Math.round((a.mat * 8) * 0.25))
} else {
value = a.mat * 8 - b.mdf * 4
}
</damage formula>

Battle Proof of 0 Damage:
upload_2018-10-17_18-32-10.png

Same with the healing... it heals for 0 when I select the party. But the plugins work.

And I also figured out why it would only select the Bat B. Because for some reason mouse control is enabled with the plugin, which confused me.

~ Dragon
 

Junane

Veteran
Veteran
Joined
Feb 10, 2018
Messages
86
Reaction score
10
First Language
English
Primarily Uses
RMMV
your "IsActor" check is missing a (), and thus should read as "if (target.isActor()){"
 

DragonRose35

Scaleything
Veteran
Joined
May 31, 2017
Messages
49
Reaction score
0
First Language
English
Primarily Uses
RMMV
Okay, so the damage works now, but the healing still doesn't.

~ Dragon
 

Junane

Veteran
Veteran
Joined
Feb 10, 2018
Messages
86
Reaction score
10
First Language
English
Primarily Uses
RMMV
Earlier in this thread, I suggested you change <damage formula> to a <Pre-Damage Eval> via the Skill Core:

<Pre-Damage Eval>
if (this.isHpEffect() && value > 0){
if (target.isActor()){
value = Math.round(-value * 0.25);
}
}
</Pre-Damage Eval>
 

DragonRose35

Scaleything
Veteran
Joined
May 31, 2017
Messages
49
Reaction score
0
First Language
English
Primarily Uses
RMMV
You are absolutely right. I am so sorry!

I took that suggestion and fixed it. And it works now!

Thank you so much~!

~ Dragon
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
6,050
Reaction score
4,261
First Language
Dutch
Primarily Uses
RMXP

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Can the Eternal Dreamers finish off the final boss? We'll see!
Fekken kill me. I unknowingly swapped out two important events's codes and saved the game to test it. I'm just doing this for fun and the fun has now been replaced with excruciating torture.
Is this how game developers feel all the time?

EDIT:
WAIT HOLY S***
MY LAST POST ASKING FOR HELP ON AN EVENT ACTUALLY SAVED IT
OH MY GOD
Coffee + Silk Coconut Milk + Splenda Zero = Not ..... awful :/ .
I was making a cutscene where Hero's dad got killed by the dragon but when he lose its say game over and send you to the tittle screen. How can remove game over for that cutscene
My new RPG Maker music pack, Emotional: Redemption, is now in progress and will be coming to RPG Maker soon. It is an album that focuses on emotional themes including the darker forms of sorrow and despair. Below is a demo of a composition from the album.

Forum statistics

Threads
94,446
Messages
920,991
Members
124,260
Latest member
Charles2020
Top