Help - How to show enemy state icon below the enemy in a sideview battle

MaxLionheart

Veteran
Veteran
Joined
Aug 23, 2015
Messages
100
Reaction score
30
First Language
French
Hi!

I have spent several hours trying to solve what appears to be a very simple problem... but I haven't been able to find out anything...

I'm using a lot of Yanfly's plugins, including BattleEngineCore, AnimatedSVEnemies, BuffStatesCore, etc.

Right now, when an enemy is affected by a state, the state icon is shown over the enemy's head. However, it looks pretty weird with how my enemy graphics are made. I'd like to have the enemy state icons shown below them.

Is there a simple way to do that?

Thanks in advance!
 

Raexxar

Veteran
Veteran
Joined
Jan 17, 2020
Messages
44
Reaction score
6
First Language
English
Primarily Uses
RMMV
Hi!

I have spent several hours trying to solve what appears to be a very simple problem... but I haven't been able to find out anything...

I'm using a lot of Yanfly's plugins, including BattleEngineCore, AnimatedSVEnemies, BuffStatesCore, etc.

Right now, when an enemy is affected by a state, the state icon is shown over the enemy's head. However, it looks pretty weird with how my enemy graphics are made. I'd like to have the enemy state icons shown below them.

Is there a simple way to do that?

Thanks in advance!
Propably yes, but you need to find in code where it is and change it to your liking. Firstly you can search in Yanfly's battle plugins he have everything sorted in his code. If you don't find anything you should check rpg_scenes and rpg_windows .js files in /Your Project/js/ folder. You should look for something similar named to Scene_Battle, Window_Battle or something like that. When you find it search in it for something about states etc.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
8,011
Reaction score
5,325
First Language
Dutch
Primarily Uses
RMXP

I've moved this thread to Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

Gregaur

Veteran
Veteran
Joined
Jan 3, 2017
Messages
134
Reaction score
20
First Language
french
Primarily Uses
RMMV
Hey
With the Yanfly Animated sideview Enemies you have fiew notepad :

English is not my native language but the note :
<Sideview Hide State Overlay>
doesn't do that ?

If not you can change your "hit box" size :
<Sideview Height: x>
It won't change the size of the picture but only how the game considerate its Height.
If you make it big enough the state icon can be outside the screen.
Not the best I know.

Third solution but not easiest
You create a special State for this kind of enemies
and if you apply a state to them, it apply a new version of it with out the icon (like you double all your state in the database)
 

MaxLionheart

Veteran
Veteran
Joined
Aug 23, 2015
Messages
100
Reaction score
30
First Language
French
Thanks for replying guys!

Propably yes, but you need to find in code where it is and change it to your liking. Firstly you can search in Yanfly's battle plugins he have everything sorted in his code. If you don't find anything you should check rpg_scenes and rpg_windows .js files in /Your Project/js/ folder. You should look for something similar named to Scene_Battle, Window_Battle or something like that. When you find it search in it for something about states etc.
Yes, I thought of playing in the base code, but I have no knowledge of programming, so I'm a bit afraid of trying to... Same for looking in Yanfly's code... I'll try to look into though.


Hey
With the Yanfly Animated sideview Enemies you have fiew notepad :

English is not my native language but the note :
<Sideview Hide State Overlay>
doesn't do that ?

If not you can change your "hit box" size :
<Sideview Height: x>
It won't change the size of the picture but only how the game considerate its Height.
If you make it big enough the state icon can be outside the screen.
Not the best I know.

Third solution but not easiest
You create a special State for this kind of enemies
and if you apply a state to them, it apply a new version of it with out the icon (like you double all your state in the database)
<Sideview Hide State Overlay> hides the state overlay, so things lke the animated poison bubbles or the sleep's Zs. This isn't what I'm trying to move (I'm not using them). I'm trying to move around the little square icons that indicate a state.

As for playing with Sideview Height... it actually worked! I never thought it wouldn't affect the sprite itself, but just the hitbox around the enemy. To move the icons below the enemies, I actually had to put a negative value (so my enemies are -80 pixels high, if it makes sense!) However, it creates another problem: all the battle animations are off the target now... but I can probably fix that by manipulating the animations themselves... or tweak something else... Anyway, thanks for the idea :)


By the way, I continued searching for a solution yesterday and I came upon an addon by DreamX called DreamX Battle Sprite Icons. There's an option called "Normal states Window Y" that seems to indicate we could move the "y" value of the icons. However, the way to change it is complicated as it's written in code:

this._battler.spritePosY() - this._battler.spriteHeight() - this.standardPadding() - (DreamX.Param.BSIIconHeight * 2) - (this.standardPadding() / 2)

I tried to change the "2" but I didn't seen any difference. As I don't understand how that formula works, could anyone help me understand how to change that formula to actually lower the y?

Thanks!
 

Gregaur

Veteran
Veteran
Joined
Jan 3, 2017
Messages
134
Reaction score
20
First Language
french
Primarily Uses
RMMV
I may be wrong but if you don't want to change the animation because it may change from a enemy to a other, you should play with the anchor (It's the pixel from where it start to count the height)
<Sideview Anchor Y: y.z>
But be carefull if you use some YEP_Action Battle, cause it use this Anchor for movement. It may look odd.

I think you can play with those two parameter without touching the animation.

But the second solution would be, maybe to play with the animation's location (head, center, foot) can be a solution.

If I understand it right :
Head is the Anchor Y minus the height
Foot is the Anchor Y
And Center is Anchor Y minus Height/2 (the middle)

You should play with that :)
 

MaxLionheart

Veteran
Veteran
Joined
Aug 23, 2015
Messages
100
Reaction score
30
First Language
French
I tried to play with the settings you mentionned, and yes, I've been able to position my little state icons and animations as I wanted :)

But I also completely messed up where the numbers on the enemies popped up, the animation of the enemy attacking my party (when an enemy attacked a hero, it came close to my hero but like it was 2 feet high in the air!) and other little stuff....

So it ended up being way too complicated in the end :S

BUT the good news is that thanks to your advice, I've been able to reposition the state icons closer to my enemies without affecting too much the rest...

TBH, I think I've hit a sweet spot at the moment... and I'm thinking it might even be better as it is than if I placed the icons underneath the enemies....

Oh well, thanks for your input, it's really appreciated and it helped me improve the overall look!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

The second draft of my script is almost done, and I don't think I'm going to write a third draft. I'll make changes to dialogue here and there, but I'm happy with the series of events the way they are.
How you feel about font and dialogue box changing for every main character while the minor cast and regular npc get their own styles? Too much?
Just found an obviously custom effect (i.e. edited by me) in my resources>sounds folder called "rip jaw off". Dear Lord what is wrong with me as a person that at some point I needed a sound *specifically* for THAT??
(...rhetorical question.)
so like with the whole 'familiarity breeds contempt thingy', how are you supposed to tell if your title screen/battle music gets really tedious after a few dozen plays or if you're just personally hella sick of it?

Forum statistics

Threads
107,521
Messages
1,030,240
Members
139,647
Latest member
JesuProYT
Top