Trying to pull off certain types of spells.

epiccorey

Veteran
Veteran
Joined
Jun 2, 2014
Messages
36
Reaction score
8
First Language
english
Primarily Uses
Ok I decided to open up my old Project where it is heavily Magic based. I have a question. I have a spell that I would like to do. It is like a damage undead spell. "Disrupt Undead" in D&D terms, essentially it is suppose to deal 1-6 damage to undead only. so if you use it on a goblin it either doesn't work or it heals him...something along those terms....anyone got any idea if I can pull this off
 

Blue001

Veteran
Veteran
Joined
Jan 13, 2014
Messages
231
Reaction score
112
First Language
English
Primarily Uses
RMMV
Go To Types, make a new ELEMENT called "Undead".
Then set your skill to do damage with that element in the top right hand corner under "Damage", element drop down.

Now, set the enemies you want the skill to work on to have the TRAIT, 'Element Rate' set to 100%... but this also means you need to set ALL other enemies to have 0% resist to that element.

For the ability to have them gain health from the spell on non undead, you'll have to get a plugin for that... Yanfly's "Element Core" plugin will do it.
 
Last edited:

epiccorey

Veteran
Veteran
Joined
Jun 2, 2014
Messages
36
Reaction score
8
First Language
english
Primarily Uses
a little time consuming but it will work Thanks. and you answered my next question..but My next question (3) is: ' is there a way to hinder a spells hit chance by wearing specific armor? but at the same time not hinder weapon damage, IE: Paladin wears heavy armor, and has a chance to fail his casting of disrupt undead spell but have him be unaffected with his sword attacks?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
not without a script or plugin to rewrite the entire skill sequence.
HIT% is a fixed number and actor-based, it completely ignores enemy values.
 

Aesica

undefined
Veteran
Joined
May 12, 2018
Messages
1,523
Reaction score
1,415
First Language
English
Primarily Uses
RMMV
Now, set the enemies you want the skill to work on to have the TRAIT, 'Element Rate' set to 100%... but this also means you need to set ALL other enemies to have 0% resist to that element.
As an alternative, you can set enemies you intend to be classed as "Undead" to be weak against the Undead element, then use the ternary operator in the damage formula to determine whether or not the target has a weakness, and to act accordingly:

b.elementRate(n) > 1 ? yourDamageFormulaHere : 0

Where "n" is the database index of your Undead element and "yourDamageFomrulaHere" is your damage formula (a.atk - b.def or whatever). Basically, this checks to see if the enemy has an element rate for "Undaed" above 100% (as in, has a weakness to) and if so, it returns your damage formula. If not, it returns 0 damage.
 

Blue001

Veteran
Veteran
Joined
Jan 13, 2014
Messages
231
Reaction score
112
First Language
English
Primarily Uses
RMMV
As an alternative, you can set enemies you intend to be classed as "Undead" to be weak against the Undead element, then use the ternary operator in the damage formula to determine whether or not the target has a weakness, and to act accordingly:

b.elementRate(n) > 1 ? yourDamageFormulaHere : 0

Where "n" is the database index of your Undead element and "yourDamageFomrulaHere" is your damage formula (a.atk - b.def or whatever). Basically, this checks to see if the enemy has an element rate for "Undaed" above 100% (as in, has a weakness to) and if so, it returns your damage formula. If not, it returns 0 damage.
Haha. clever. Never thought about doing it backwards. :)
 

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,863
Messages
1,017,053
Members
137,571
Latest member
grr
Top