MoonBunny

Veteran
Veteran
Joined
Oct 4, 2020
Messages
39
Reaction score
33
First Language
English
Primarily Uses
RMMV
I'm making some use of YED Invert Target. With this in place, I want the player to be able to cast spells that would cause HP Recovery, and instead have them deal HP Damage to certain enemies (such as undead). Is this feasible within the base engine, or will I need another plugin?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,724
Reaction score
8,508
First Language
German
Primarily Uses
RMMV
invert target only allows you to change targeting, not skill effect.

theoretically it is possible to give a skill multiple effects by damage coding - you can use javascript commands inside the damage formula, for example if target is enemy then do that. You don't even need plugins for that.

unfortunately I think that in the case of your skill the required code is a bit complex and long for the limited space of the damage formula, so it is probably better to look for a plugin.
 

MoonBunny

Veteran
Veteran
Joined
Oct 4, 2020
Messages
39
Reaction score
33
First Language
English
Primarily Uses
RMMV
invert target only allows you to change targeting, not skill effect.

theoretically it is possible to give a skill multiple effects by damage coding - you can use javascript commands inside the damage formula, for example if target is enemy then do that. You don't even need plugins for that.

unfortunately I think that in the case of your skill the required code is a bit complex and long for the limited space of the damage formula, so it is probably better to look for a plugin.
I'm fully aware that Invert Target is only to change target, not effect. That's why I asked for a method to change the effect on specific enemies.
I can experiment around with the damage formula, but if you happen to know a plugin then I'd appreciate it, because I haven't found one yet.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,724
Reaction score
8,508
First Language
German
Primarily Uses
RMMV
I would have linked or mentioned it if I knew one.
It should be possible to do with yanfly's action sequences and lunatic coding, but I don't know enough of them to point you to which plugins.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,410
Reaction score
15,213
First Language
English
Primarily Uses
RMMV

I've moved this thread to Plugin Requests. Thank you.

 

JamesRyan

Game Designer
Veteran
Joined
Sep 13, 2014
Messages
724
Reaction score
235
First Language
Vietnamese
Primarily Uses
RMMV
I have been using this for my games without issues. Just need the help of other plugins, with a little setup. If you are interesting, I can tell you about that.
 

MoonBunny

Veteran
Veteran
Joined
Oct 4, 2020
Messages
39
Reaction score
33
First Language
English
Primarily Uses
RMMV
I have been using this for my games without issues. Just need the help of other plugins, with a little setup. If you are interesting, I can tell you about that.
That would be great! I'm not opposed to adding more plugins, as long as there's no conflict with what I currently use.
 

JamesRyan

Game Designer
Veteran
Joined
Sep 13, 2014
Messages
724
Reaction score
235
First Language
Vietnamese
Primarily Uses
RMMV
That would be great! I'm not opposed to adding more plugins, as long as there's no conflict with what I currently use.
I cannot guarantee that there will be no conflict, but most likely no because one is from Yanfly (Damage Core) and another from NeMV (NeMV's Tag Plugin). The tag one does not do anything at all (so there should be no conflict), just only allow you to give a tag to an object for further use and it is the best fit for the lunatic mode from Yanfly plugins. This is how I make use of these two plugins:
- Damage Core to alter the traditional damage formula and uses it in lunatic mode.
- Tag to give a specific tag to your object (enemies, items, armor, weapon, etc) to make use of it in Damage Core (In this case, a tag "Undead" to your enemies is useful).

So how to do this?
- First, with the Tag plugin, give a tag "Undead" to your enemies by putting this note tag into their note boxes (Remember tags are case sensitive, meaning "Undead" is different from "undead", so please type them correctly):
Code:
<Tags: Undead>
- Next, it is time to use the Damage Core from Yanfly. Let's change your damage type from your skill to HP Recover, and wipe all the values in the traditional damage formula box, and put the below note tag in your skill note box:
Code:
<damage formula>
//Set the damage here (HP recover in this case). I use the user's MAT as an example. You can change it.
dmg = user.mat;
//Check if the target is undead. We tagged it before.
if target.hasTag("Undead"){
//As this is an HP Recover type, the damage is a negative number, so adding a - symbol will make it a positive number as an HP Damage. Value refers to the damage dealt.
value = -dmg;}
else{
//if not an undead, do the normal heal.
value = dmg;}
</damage formula>

The Tag plugin from NeMV is a very powerful one, so if you are used to the lunatic modes from Yanfly's plugins, it will be a perfect combination.
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
940
Reaction score
410
First Language
english
Primarily Uses
RMMV
yanfly element core can do this with element absorb. the notetag lets element rate go lower then 0% and gives element rate -200% (turn default 100% into -100%). a negative element rate flips damage into healing and vice versa.
just need to make an element type for healing magic and give <element absorb: healingID> notetags to undead monsters = hurt by healing
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts


1,Randomly generate events with planted spawner events(great flexibility for customization and auto-match player's level)
2,Randomly enter roguelike dungeon
3,Player can exit dungeon or back to town or choose to challenge BOSS at the end of each dungeon
4,Dungeon maps can be randomly generated by a third-party tool
Got locked out of the house yesterday... best friends who had the spare ghosted me. Locksmith had to literally drill thru the lock bc they couldn't pick it. Whole process took 4 hours and far too much money. And they have to come back next week bc they don't have the right cylinder, cause it's an old interlocking lock. I'm livid lol
 I’m probably going to regret this, but I need kobolds for my project and I’ve decided to sprite them myself. This is Attempt #1, front view only.

KoboldFront.gif
It's a shame that Selection Control will not be ported to MZ. I found a neat way of using it to enable ways for tanks to protect squishies. lol
Lately I have been taking a break from game and resource making so I won't get burnt out. But I am also interested in the Game Jams this site periodically holds. It'd be great if I knew when the next one, if any, is planned.

Forum statistics

Threads
115,354
Messages
1,089,218
Members
150,029
Latest member
Cwiras
Top