RMMV YEP Buffs & States Core Mini & Frog States Assistance

Status
Not open for further replies.

Guy_Fightmaster

Veteran
Veteran
Joined
Aug 14, 2019
Messages
118
Reaction score
16
First Language
English
Primarily Uses
RMMV
Well, I never used Victor's plugins either because I'm a Yanfly fan as well. :kaopride:

Thank you! :kaocry: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. :kaoswt:
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. :kaohi:

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...
 

Anastasius

Veteran
Veteran
Joined
Feb 7, 2022
Messages
51
Reaction score
37
First Language
English
Primarily Uses
RMMV
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.
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>
 

Guy_Fightmaster

Veteran
Veteran
Joined
Aug 14, 2019
Messages
118
Reaction score
16
First Language
English
Primarily Uses
RMMV
No biggie. That code wasn't meant to work with C's plugin. Use her suggested code instead.
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...
 

Guy_Fightmaster

Veteran
Veteran
Joined
Aug 14, 2019
Messages
118
Reaction score
16
First Language
English
Primarily Uses
RMMV
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!
 

Anastasius

Veteran
Veteran
Joined
Feb 7, 2022
Messages
51
Reaction score
37
First Language
English
Primarily Uses
RMMV
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.
 

Guy_Fightmaster

Veteran
Veteran
Joined
Aug 14, 2019
Messages
118
Reaction score
16
First Language
English
Primarily Uses
RMMV
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.
 

ThreeSixNine

Veteran
Veteran
Joined
Jan 22, 2019
Messages
469
Reaction score
388
First Language
English
Primarily Uses
RMMV
Try adding to apply effect:
user._floatSprite = user.isFloating();
if (user.isFloating()) {
user.isFloating() = false
}

Remove Effect:
user.isFloating() = user._floatSprite;
 

Guy_Fightmaster

Veteran
Veteran
Joined
Aug 14, 2019
Messages
118
Reaction score
16
First Language
English
Primarily Uses
RMMV
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>
 

Anastasius

Veteran
Veteran
Joined
Feb 7, 2022
Messages
51
Reaction score
37
First Language
English
Primarily Uses
RMMV
Hi @jcmtexas01 , go to the plugin I gave you and copy and paste the code below:
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.
 
Last edited:

ThreeSixNine

Veteran
Veteran
Joined
Jan 22, 2019
Messages
469
Reaction score
388
First Language
English
Primarily Uses
RMMV
Try adding both new snippets before each refresh.

Ah, nevermind, I see what I did wrong. Thats definitely not gonna work like I suggested.
 
Last edited:

Guy_Fightmaster

Veteran
Veteran
Joined
Aug 14, 2019
Messages
118
Reaction score
16
First Language
English
Primarily Uses
RMMV
Hi @jcmtexas01 , go to the plugin I gave you and copy and paste the code below:
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.
 

Anastasius

Veteran
Veteran
Joined
Feb 7, 2022
Messages
51
Reaction score
37
First Language
English
Primarily Uses
RMMV
YES! YES! YES! Thank you very much! Everything works perfectly. SOLVED.
:kaojoy:
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.
 
Last edited:

ThreeSixNine

Veteran
Veteran
Joined
Jan 22, 2019
Messages
469
Reaction score
388
First Language
English
Primarily Uses
RMMV
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.
 

Guy_Fightmaster

Veteran
Veteran
Joined
Aug 14, 2019
Messages
118
Reaction score
16
First Language
English
Primarily Uses
RMMV
:kaojoy:
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!
 

Guy_Fightmaster

Veteran
Veteran
Joined
Aug 14, 2019
Messages
118
Reaction score
16
First Language
English
Primarily Uses
RMMV
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.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
9,730
Reaction score
6,178
First Language
Dutch
Primarily Uses
RMXP

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.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

Why the heck do I keep comparing my games to ones made by huge companies? I'd love them to have that level of polish but I'm simply not good enough.
Hell of a day at the London Games Market! :D

1656892272017.png

Check out my haul!

Forum statistics

Threads
123,297
Messages
1,155,602
Members
161,713
Latest member
randymacalaster
Top