I have a polymorph ability that is mechanically similar to a rage ability, so it is important that the target’s base stats are taken into consideration. The enemy transform function does not serve my purpose, I only want to change the sprite of the affected enemy.
I was able to find the code for swapping enemy sprites and patch it into Yanfly’s Enemy Transformations example to get it reverting back perfectly… with the one exception that it does not change the correct sprite.
I’m using
This happened in my attempts before downloading the prerequisite yanfly plugins for the Enemy Transform function, and persisted after I removed every non-prerequisite plugin, so it doesn't seem related to that.
I have not found a different index based on screen position to call, even if it was based on the x position, that would be an okay workaround. I also tried
As a secondary question, is there any etiquette regarding opening multiple support threads at the same time, time between making new threads, or asking multiple questions within a single thread? I wasn't sure who/where would be the right place to ask.
I was able to find the code for swapping enemy sprites and patch it into Yanfly’s Enemy Transformations example to get it reverting back perfectly… with the one exception that it does not change the correct sprite.
I’m using
BattleManager._spriteset._enemySprites[target.index()].bitmap = ImageManager.loadEnemy("Cockatrice");, but the sprite that is changed is based on the order of the enemy with the highest y position to the lowest… Not their index in the troop. In the first image, Bat A was targeted, gains the state counter and mechanical effects of the state, but Bat B is the one whose sprite changes. If I position them awkwardly like the second image, the effect lines up with the enemy that actually has the state.This happened in my attempts before downloading the prerequisite yanfly plugins for the Enemy Transform function, and persisted after I removed every non-prerequisite plugin, so it doesn't seem related to that.
I have not found a different index based on screen position to call, even if it was based on the x position, that would be an okay workaround. I also tried
BattleManager._spriteset._enemySprites[this._targetIndex].bitmap = ImageManager.loadEnemy("Cockatrice");, but it didn't seem to parse.As a secondary question, is there any etiquette regarding opening multiple support threads at the same time, time between making new threads, or asking multiple questions within a single thread? I wasn't sure who/where would be the right place to ask.