I have a question regarding skills, their animations and YEP action sequence plugins:
Is it possible to make a simple skill that joins at least two different animations: for example a simple punch and an elemental effect in continuity? That would make the developing easier... but i wanted to ask if it works with srpg
In your action sequence (Yanfly) use the following code:
eval: BattleManager.actionAnimation(i, ["target"]);
You can replace target with user (if you want the animation to play on user)
replace i with the id of the animation
Insert some WAIT: X as well
So an example would be:
<target action>
eval: BattleManager.actionAnimation(32, ["target"]);
WAIT: 24
eval: BattleManager.actionAnimation(33, ["target"]);
WAIT: 24
</target action>
If you are allergic to javascript then Yanfly does offer the notetag:
ANIMATION X: target, (mirror)
You should check out the
Yanfly wiki
Is it possible to use an actor class as an enemy. I want to use the side-view battleview for a Fire Emblem feel, but I don't want to have the enemies use a static image and more of a battler so I can have battle animations for skills.
I'm also getting an issue when just using YEP's Equip Core. Just having it turned on generates the following error and I'm not sure how to fix it. Been messing with it for a couple hours. My project doesn't have any errors when I turn off the Equip Core plugin.
You are trying to call the function "currentClass" on an enemy. Yanfly only provides Game_Actor with the currentClass function (why would Yanfly add classes to enemies when they are by default not allocated classes?). Either add the EnemyBaseParam plugin (also from Yanfly but I think it costs a pretty penny) or add the following function to anywhere in your srpg code:
//New Yanfly function (to allow draw class to work with enemies) #Boomy
Game_Enemy.prototype.currentClass = function () {
if (Imported.YEP_X_EnemyBaseParam) {
return $dataClasses[this.enemy().classId];
} else {
return this.enemy().meta.srpgClass;
}
};