MV YEP Buffs & States Core Mini & Frog States Assistance

Well, I never used Victor's plugins either because I'm a Yanfly fan as well. 😤

Thank you! 😢That mean's there's no Frog.png file inside your img/sv_enemies folder.
Can you show a screenshot of your FROG state notetags where you used my code?

By the way, caethyril's plugin works perfectly in my fresh project.

EDIT 1:
If you've got time I can help you all night until we get both your FROG and MINI state to work. 😅
Don't worry, since your FROG and MINI states work fine in a fresh project it means this is just a matter of time before we fix this. 👋

EDIT 2:
If we manage to figure out the incompatibility issues this will be finished. The MINI state thanks to caethyril's plugin will work for both actors and enemies. Since you already said ThreeSixNine's FROG state for actors works perfectly we'll combine that with my extension to enemies and you're done.
UPDATE:
FROG works and is 99% completed! Adding a sprite in the SV-enemies resolved the issue. However, YEP_AnimatedSVEnemies <Floating> trait stays applied to FLYING enemies. So a way to prevent a floating frog enemy would be preferred.

MINI still only works on the player, sample below:
JavaScript:
<Custom Apply Effect>
if (user.isActor())
{
    user.battler().scale.x = 0.3;
    user.battler().scale.y = 0.3;
}
else
{
    user.scale.x=0.3;
    user.scale.y=0.3;
}
</Custom Apply Effect>

<Custom Remove Effect>
if (user.isActor())
{
    user.battler().scale.x = 1;
    user.battler().scale.y = 1;
}
else
{
    user.scale.x=1;
    user.scale.y=1;
}
</Custom Remove Effect>

EDIT:
Forgot to add C's plugin for MINI. One sec...
Are you using animated Sideview battlers by Yanfly?
Yes.
UPDATE:
MINI still only works on the player, sample below:
JavaScript:
<Custom Apply Effect>
if (user.isActor())
{
    user.battler().scale.x = 0.3;
    user.battler().scale.y = 0.3;
}
else
{
    user.scale.x=0.3;
    user.scale.y=0.3;
}
</Custom Apply Effect>

<Custom Remove Effect>
if (user.isActor())
{
    user.battler().scale.x = 1;
    user.battler().scale.y = 1;
}
else
{
    user.scale.x=1;
    user.scale.y=1;
}
</Custom Remove Effect>
No biggie. That code wasn't meant to work with C's plugin. Use her suggested code instead.
Spoiler: C's MINI State Notetag
JavaScript:
<Custom Apply Effect>
if (user.isEnemy()) user._tempScale = 0.3;
user.battler().scale.x = 0.3;
user.battler().scale.y = 0.3;
</Custom Apply Effect>

<Custom Remove Effect>
if (user.isEnemy()) delete user._tempScale;
user.battler().scale.x = 1;
user.battler().scale.y = 1;
</Custom Remove Effect>
No biggie. That code wasn't meant to work with C's plugin. Use her suggested code instead.
Spoiler: C's MINI State Notetag
JavaScript:
<Custom Apply Effect>
if (user.isEnemy()) user._tempScale = 0.3;
user.battler().scale.x = 0.3;
user.battler().scale.y = 0.3;
</Custom Apply Effect>

<Custom Remove Effect>
if (user.isEnemy()) delete user._tempScale;
user.battler().scale.x = 1;
user.battler().scale.y = 1;
</Custom Remove Effect>
You rock! MINI is SOLVED. Now, to find a way to prevent enemies in the FROG state from flying...
You rock! MINI is SOLVED.
😂
Now, to find a way to prevent enemies in the FROG state from flying...
Why not just call it a flying frog? 😊

Joking aside, I'm making no guarantees I can figure out something. So for now just call it the FLYING FROG state.
FROG is at a 99% solution, and I seek to prevent <Floating> (YEP_AnimatedSVEnemies) enemies from floating in FROG state.

MINI is SOLVED. Thank you very much, Anastasius!

PLEASE DO NOT close the thread until FROG is g2g. I am standing by for community assistance. Thanks!
FROG is at a 99% solution, and I seek to prevent <Floating> (YEP_AnimatedSVEnemies) enemies from floating in FROG state.
By the way, per YEP_AnimatedSVEnemies.js version 1.20, the <Floating> notetag within enemies will generate errors if any version of YEP_X_ActSeqPack2.js hadn't been installed before it. So I presume you have YEP Action Sequence Pack 2 installed, yes?

If so, you should be aware of an issue when those two are used together. But that's a problem for another thread.
By the way, per YEP_AnimatedSVEnemies.js version 1.20, the <Floating> notetag within enemies will generate errors if any version of YEP_X_ActSeqPack2.js hadn't been installed before it. So I presume you have YEP Action Sequence Pack 2 installed, yes?

If so, you should be aware of an issue when those two are used together. But that's a problem for another thread.
Yes, it is installed and I have never had the issue described. Thank you for the heads up.
Try adding to apply effect:
user._floatSprite = user.isFloating();
if (user.isFloating()) {
user.isFloating() = false
}

Remove Effect:
user.isFloating() = user._floatSprite;
Try adding to apply effect:
user._floatSprite = user.isFloating();
if (user.isFloating()) {
user.isFloating() = false
}

Remove Effect:
user.isFloating() = user._floatSprite;
Here is what I tried, and it failed:

JavaScript:
<Custom Apply Effect>
user._originalSprite = user._battlerName || '';
user._battlerName = 'Frog';
user.refresh();
user._floatSprite = user.isFloating();
if (user.isFloating()) {
user.isFloating() = false
}
</Custom Apply Effect>

<Custom Remove Effect>
user._battlerName = user._originalSprite;
user.refresh();
user.isFloating() = user._floatSprite;
</Custom Remove Effect>
Hi @jcmtexas01 , go to the plugin I gave you and copy and paste the code below:
Spoiler: Anti-Flying Frog State Modification
JavaScript:
if (Imported.YEP_X_AnimatedSVEnemies) {
    Sprite_Battler.prototype.addFloatingHeight = function() {
        value = 0;
        if (this._enemy && this._enemy.isFloating() && !this._battler.isStateAffected(11)) {// replace 11 with the ID number of your FROG state
        var c = Graphics.frameCount + this._svRand;
        var s = this._enemy.floatSpeed();
        var rate = this._enemy.floatRate();
        value += Math.cos(c / s) * rate - rate;
        var height = this._enemy.floatHeight();
        value -= height / this._enemy.spriteHeight();
        }
        return value;
    };
}
Replace 11 with the ID number of your FROG state. Note that this will overwrite this particular function so this may cause compatibility issues with plugins that use Sprite_Battler.prototype.addFloatingHeight(). Please don't forget to place my plugin below YEP_X_AnimatedSVEnemies.

Also, please keep in mind that while the above worked for me, there's no guarantee it will work for you.
Try adding both new snippets before each refresh.

Ah, nevermind, I see what I did wrong. Thats definitely not gonna work like I suggested.
Hi @jcmtexas01 , go to the plugin I gave you and copy and paste the code below:
Spoiler: Anti-Flying Frog State Modification
JavaScript:
if (Imported.YEP_X_AnimatedSVEnemies) {
    Sprite_Battler.prototype.addFloatingHeight = function() {
        value = 0;
        if (this._enemy && this._enemy.isFloating() && !this._battler.isStateAffected(11)) {// replace 11 with the ID number of your FROG state
        var c = Graphics.frameCount + this._svRand;
        var s = this._enemy.floatSpeed();
        var rate = this._enemy.floatRate();
        value += Math.cos(c / s) * rate - rate;
        var height = this._enemy.floatHeight();
        value -= height / this._enemy.spriteHeight();
        }
        return value;
    };
}
Replace 11 with the ID number of your FROG state. Note that this will overwrite this particular function so this may cause compatibility issues with plugins that use Sprite_Battler.prototype.addFloatingHeight(). Please don't forget to place my plugin below YEP_X_AnimatedSVEnemies.

Also, please keep in mind that while the above worked for me, there's no guarantee it will work for you.
YES! YES! YES! Thank you very much! Everything works perfectly. SOLVED.
Thank you to everyone who assisted me in achieving the desired end state. You are much appreciated.
YES! YES! YES! Thank you very much! Everything works perfectly. SOLVED.
😂
Are you really sure? I'll delete the fresh project I made for this thread if you're really sure. Otherwise I'll keep it in case you have further issues later on.

Just keep in mind that both the plugins C and I gave you may conflict with plugins that also affect YEP_X_AnimatedSVEnemies.

You should firstly credit @caethyril for the MINI state and ThreeSixNine for the FROG state. I merely extended the latter's solid code to suit your additional requirements.

You can close this thread if you want but you can always reopen it later. Just tell your friendly global moderator whenever you want to close or reopen a thread.

Good night Mr Texas Guy.
I'm always willing to help out when I can! I love learning new things, especially when it comes to coding and RPG Maker, and this is a great place for just that.
😂
Are you really sure? I'll delete the fresh project I made for this thread if you're really sure. Otherwise I'll keep it in case you have further issues later on.

Just keep in mind that both the plugins C and I gave you may conflict with plugins that also affect YEP_X_AnimatedSVEnemies.

You should firstly credit @caethyril for the MINI state and ThreeSixNine for the FROG state. I merely extended the latter's solid code to suit your additional requirements.

You can close this thread if you want but you can always reopen it later. Just tell your friendly global moderator whenever you want to close or reopen a thread.

Good night Mr Texas Guy.
Awesome sounds good. When I finally complete my project. I will look up each old thread and give credit where it is due. Thank you again!
I'm always willing to help out when I can! I love learning new things, especially when it comes to coding and RPG Maker, and this is a great place for just that.
Same, minus the coding lol! I really appreciate your help with FROG.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/yep-buffs-states-core-mini-frog-states-assistance.144189/