I’ve been playing a lot of modded terraria, especially a mod called Homeward Journey.
What interests me is one of its late bosses called “World’s End Everlasting Falling Whale” which will always kill you in one hit due to its absurd damage stats.
The only way to be able to fight this boss is by equipping an accessory called “Whale Bone Charm”.
What it does is that if a player takes a hit, the damage taken cannot exceed 30% of the player’s max life.
I’d like to implement a similar gimmick to this:
A post-game superboss with damage dealt so absurd that damage reduction is useless. (Done by giving her a seperate moveset with absurd damage formula).
You’re not supposed to fight her without an accessory based on the Whale Bone Charm, which reduces it down to only dealing 30% of Max HP.
The plugins i use is mostly Yanfly Engine Plugins, so i hope it’s compatible with it too.
I’d like to also implement it to an enemy (A special boss you can encounter early, but you encountered them late and easily defeated them, so it can have the effect where it cannot take more than probably 10% of its max hp as damage.)
What i am requesting, is a plugin (or note tag if it’s possible) that’s compatible with Yanfly Engine Plugins, that adds an effect similar to the Whale Bone Charm (damage taken cannot exceed a certain % of the target’s max hp.) Thanks
TIL this software has one button delete. Anyway, if it’s just this one item, or all items or abilities that do this have the same percentage, you can do this pretty easy with Yanfly Auto Passive States. Create a state and apply it to the Whale Bone Charm. Then, in the attack skill, and any other skill the enemy uses, change the damage formula to say IF that state is present, the skill does the lesser of (normal formula) or (0.3 * b.mhp). It’s been a minute, so I don’t have the formula off the top of my head, but maybe I can come back to this later.
As a similar way of doing what you are talking about, you could create a Bad Boss element type, and give all the actors 1000% element rate for Bad Boss. Then give the Whale Bone Charm 10% element rate for Bad Boss damage. Or whatever numbers you want to use.
I think you can do this without a new plugin. Buffs & States Core has a Custom React Effect that runs on the state holder right before the damage lands, so it can cap the number there. Make a state with this in its notebox:
<Custom React Effect>
if (value > 0 && this.isHpEffect()) {
value = Math.min(value, Math.floor(target.mhp * 0.30));
}
</Custom React Effect>
Then with Auto Passive States, put <Passive State: x> on the accessory, where x is that state’s ID, so whoever wears it always has it. For your early boss, make a copy of the state with 0.10 instead of 0.30 and put <Passive State: x> in the enemy’s notebox, since Auto Passive States works on enemies too.