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,522
Reaction score
14,255
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,452
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

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,047
Members
137,569
Latest member
Shtelsky
Top