MV Face animation from MOG Battlehud on every skill?

Hey all,

Time for more UI/UX stuff! The stuff I have to show would take a lot of screenshots and long sentences to explain, so I made a video:



The main points are as follows:
  • Use portraits for party members or full body images?
  • Do the animations feel silly? Should they be toned down in some way?
  • I changed the "casting" animation to play on every skill, but it plays after the skill is done. See below.
  • Is having skills that don't require the player to confirm a target (IE only targets the user) a bad idea?
  • Any other feedback?

On the "casting" animation change.

I dug into the JS and tried to modify the code. As usual, my lack of coding ability can only get me so far.

JavaScript:
//==============================
// * Apply
//==============================
var _alias_mog_bhud_apply = Game_Action.prototype.apply;
Game_Action.prototype.apply = function(target) {
     var oldhp = target.hp
     _alias_mog_bhud_apply.call(this,target);
     if (target.isActor()) {
         if (oldhp > target.hp) {target._bhud_face_data = [30,30,3,30]}
         else if (oldhp < target.hp) {target._bhud_face_data = [0,70,1,70]};
     }
     else if (this.isSkill && String(Moghunter.bhud_face_zoom) === "true"){this.subject()._bhud_face_data = [0,70,2,70];} //added this section
     ;
};

//==============================
// * Prepare
//==============================
//var _alias_mog_bmhud_action_prepare = Game_Action.prototype.isSkill //changed to animate on skill use
//Game_Action.prototype.isSkill = function() {   
//    _alias_mog_bmhud_action_prepare.call(this);
//    if (this.subject().isActor() && String(Moghunter.bhud_face_zoom) === "true"){this.subject()._bhud_face_data = [0,70,2,70];};
//};

The "prepare" section is how MOG originally uses the casting animation (I commented it out for now). I tried changing to "isSkill" here and it sort of worked. The problem was that it would fire on select and then again on use (or something, it was wonky). So I'm guessing I need to use that "if" to narrow the range in some way but I couldn't seem to figure out a good way to do that.

So in the previous section I added to the apply section. This works almost perfectly, but as shown in the video the timing seems to be after the skill has fully fired.

The last thing I'll mention is that I tried "isMagicSkill" which worked the way I liked BUT any skill with an action sequence doesn't animate. I tried adding "casting animation" to the action sequences but that didn't help.
1729387788878.png


I would suggest rather than trying to modify code you don't understand, you add the feature in a different way.

Do you not also have Yanfly plugins in your project? The Battle Engine Core offers casting animations, and you could also do it with Action Sequences.
@ATT_Turan because I can make a universal system with one line of code rather than have to edit a bunch of spritesheets and figure out how to get that to work within the ui I have. I’d have to double check the yanfly stuff, but most of it doesn’t work in frontview and I would have to go down another rabbit hole to get what I want. Like if I have to go into sideview and move the sprites to the bottom (which would require modifying code). Or to get sideview features to work in front view (again, modifying code).
Dunno. I haven't come across many features that are specifically disabled in frontview, but I don't use the system so I'm certainly not an authority on what works and what doesn't.

I do know that I used some Mog plugins for one jam project, and puzzling my way through that eldritch code to figure out how stuff worked - never mind altering its functionality - is not something I'd do again recreationally 😛

Just to mention it...you say you lack coding ability, but then you're assuming it's one line of code to get it to behave the way you want. 😉

Maybe someone else will have something more helpful for you, sorry.
@ATT_Turan Oh, whoops. I just realized embedding was disabled. I thought since it was unlisted folks just had to press the button to go to youtube.

So there's some "show sprites in frontview" stuff I looked at for Yanfly now. So that would work, but it would mean a bunch of spritesheet editing and finagling. It requires me to turn off MOG Battlehud, as far as I can tell, so those handful of UI changes would need a new solution.

Figuring out the MOG stuff has been a project in itself, yeah. I'm at like 99% done with getting the functions in, so I guess I'm invested in it now lol.

"One line of code" might be an underestimation, yeah. I'm always surprised by coding stuff. But the reason I feel so sure is because I've already figured out the stuff I'm changing is calling stuff in base RPG Maker, NOT from another part of MOG's code. IE Game_Action.prototype.apply is in rpg_objects. I'm pretty sure Game_Action.prototype.isSkill would work, but I can't figure out how to narrow the condition to trigger only when a skill fires, as opposed to firing all over the place.

Anyway, maybe I'll just have to keep what I have for now and save this for like alpha or beta when there's time for polish. Should I repost the rest of this into the "prototypes" thread? I've been thinking I probably shoved two posts into one here.

Original thread: https://forums.rpgmakerweb.com/threads/face-animation-from-mog-battlehud-on-every-skill.172700/