Making skills do more/less damage depending on states the target has?

ALTERED STATE ?

They/Them
Veteran
Joined
Sep 9, 2012
Messages
181
Reaction score
271
First Language
English
Primarily Uses
RMMV
How can I make a skill/anything that can inflict damage do more/less/no damage depending what State(s) the target


Preferably without Events, Using Yanfly's Buff & States Core Lunatic Mode


I have no skill in JavaScripting


(Yes I did search but I didn't find anything, could have been the phrases)
 
Last edited by a moderator:

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,350
Reaction score
14,059
First Language
English
Primarily Uses
RMVXA
This has worked so far for me. Post this code in the notes section of the state you wish to reduce the damage the target takes:


<Custom React Effect>


value -= 25;


</Custom React Effect>


If you wish it to be more damage, change the - to +. Change the 25 to whatever amount of damage you wish blocked.


If you need it to block a percent of damage instead, you'll need someone a little more proficient in JavaScript than me, though I think it could be easily edited to do that instead.


For no damage, just make the state give an element rate of 0 to whatever element the skill is you wish to have do no damage. No need for lunatic code for that one.
 
Last edited by a moderator:

Victor Sant

Veteran
Veteran
Joined
Mar 17, 2012
Messages
1,694
Reaction score
1,451
First Language
Portuguese
Primarily Uses
Why not simply add an element to the skill and make the state change the resistance against that element?
 
Last edited by a moderator:

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

Latest Threads

Latest Posts

Latest Profile Posts

I was away this days here in the forum but it was for a good cause!
The trailer of the demo of Luke Inn is on youtube and I am so happy!
I need to see the bugs of the game but I am happy that I have new content to show!

The last part of the modern interior will be ready soon. This will be a B-tile. With interior items for the kitchen, bathroom, toilet and storage room.
This frantic shooting ARPG plugin for MZ looks really great. Here is the link to a post from the official Japanese RPG Maker forum.
We start in 5 minutes!

Forum statistics

Threads
102,935
Messages
996,096
Members
134,388
Latest member
ransen
Top