I'm using this wonderful mod which (as is so often the case with RPG making) will do 99% of what I need it to do, but with one tiny issue.
The mod allows for 40 by 40 facesets shown by the status bars HUDs that are determined by the naming system Face_X, where X = actor I.D.
The problem is my main character only has 1 actor I.D, but 8 possible facial looks I can't simply create new actor IDs to fix this problem as my custom battle system uses a 'if specific single actor I.D is in party, or using weapon, etc' conditional branching for much of it's processing.
Until now this hasn't been an issue for any face or character images as I can tell the game what visual the character is at any given time just using switches, but not for this mod as the images need to be predefined in a special images folder and can't be changed within MV functions.
So my options are:
1. To use a generic image for the main character, possibly my game's logo or something similar and just have my followers with facesets which still looks really cool. The easiest and most likely solution, but not the most satisfactory.
2. OR, To somehow make a script that will allow me switch functionality relating to eight different image files but all named Face_21 (within their own differently named subfolders obviously), selecting which ever one is correct according to what switch is on, surely that could be done somehow?
3. OR, somehow place another image over the existing MOG Party HUD plugin within MV itself that I can define with switches to properly represent who the main character could be. I intend for the player HUD info to always be in one place at one time, so in theory it should be possible. Or even an to place an event that would constantly show over the face (with a blank face background 40 by 40 image set as the character image in MOG Party HUD), basically any way I can configure it in MV itself.
Any help is greatly appreciated, for now I'm using the generic logo solution, but if anyone has any other ideas, or how to achieve option 2 or 3, it would be greatly appreciated.
Hey there I don't use that plugin but may have something for you to try. If the file you save to the other folder is still set up like a normal face file, like the pic posted above of the 8 different faces.
This may work for Face_X if say for your 1st actor it's Face_1, have you tried Face_1_2 ? that could possibly select the photo you want and the 2nd slot so 5th slot would be Face_1_5, possibly Face_1, 5
Try that out hopefully it works.
Many thanks for the replies guys but unfortunately none of them will work at all.
The problem is that the mod doesn't use the in-game facesets - it requires its own special facesets in a custom folder that are single images of 40 by 40 pixels that must be the same number as an Actor or it won't even start the game. So it's clearly hard coded to be that exact faceset that the user places in the custom folder prior to starting the game, and there's no supported way of changing that custom mod faceset without also changing Actor ID (which I've explained already isn't viable for my game due to how my battle system is programmed,) so this needs some kind of special script, the debug menu won't help at all unless I'm missing something.
Note that none of this is even remotely possible using in game options - this is going to need a script of some kind.
Essentially I want if switch X is on then make the 40 by 40 faceset that can only have one name, to actually be selected from 8 different visual configurations, but all sharing the same name and to correctly select the required one.
In game, that's a piece of cake to do with traditional facesets - but the 40 by 40 facesets are not recognised in game- they are also not facesets in the traditional sense so no game functions can work with them, this will involve some kind of custom script between the mod and the game.
Basically I'd need the game to check and do this for example:
If Switch 1 is on, then access sub folder 1 and use the image contained within, but if Switch 2 is on, then access sub folder 2 and use the image contained within. They all have to have the same name so can't be in the same folder, making the subfolders the only way to have identical file names.
The mod already does this but only checks one folder and can only have one image per actor ID.
There's got to be a way this can be done, but if not just using a logo for my player character faceset instead is a reasonable work around that I expect I'll have to resort to.
Wow thanks! that's very kind of you I really appreciate you taking the time to do this.
I think I'm making some errors though as I can't currently get it to work, I prefer using it as an add on plugin, so if I may I'll go through my process and hopefully it will be clear where I'm messing up.
1. I copied and pasted the code in Notepad, then changed the Actor Id to 21 (which is my main character ID.)
2. I changed the variable in the code from to (18) to (17) (18 was already used in my game) and saved it as a .js file.
3. I then created 4 alternative faces in the special Partyhud folder that MOG party plugin creates in the standard IMG folder. I named them Face_21_1, Face_21_2, etc.
4. I placed the new JS file in my games' plugin folder and then activated it in the plugin manager in MV directly beneath the existing MOG Party mod.
5. I created an event in my game for the purposes of testing, with a Show choice with 4 options just to test 4 different facesets. Each show choice has a single Control Variable number 17 Operation Set as Operand Constant 1 for Face_21_1, as Control Variable number 17 Operation Set as Operand Constant 2 for Face_21_2, etc.
But unfortunately regardless of whatever choice it just stays with Face_21. The standard one.
I even changed the Control variable to 20 in my code and the plugin just in case I had used variable 17 for something else that was conflicting with it but still the same results.
I must be missing something here or have incorrectly assigned the value to the variable.
Any extra help is greatly appreciated.
I just took some time to test with different actors and variables, and from your description, it should work. Could you open the console (F8) and see if there are any errors there?
When pressing F8 I'm getting this error consistently "Uncaught ReferenceError: Battle_Hud is not defined"
Likely points to an input error by me I presume?
I've tested it with a different character, and as my maps have a few parallel processes, also on completely bare map and also get the same result.
I do have a few other mods though, might be a conflict possibly?
Hey no worries, an easy mistake, and you're literally doing magic here for me in terms of that coding, I wouldn't know where to start with pure javascript like that, although I can understand it a bit better now thanks to you.
By the way, your new Party HUD code works great!
Super satisfying to see those faces change on my test event, so now not only can I have unique facesets for each character configuration all sharing the same actor ID, I can also have different expressions in the HUD for each configuration which will look awesome to denote being in combat or getting hit, etc.
I wonder if you shouldn't contact MOG to offer it as part of his official party plugins? And the same for the battle and player HUD plugins? There's no question your extension makes them better and more functional.
Ahh, one more thing, I know that MOG's plugins are all free to use in commercial games, may I also use this plugin you've designed above for commercial use in my game too?
Thanks again for going above and beyond in helping, hopefully some others can use the extension too for a similar purpose - you could use it to show injury occurring on an actor's face in battle or to give them a different faceset when wearing a helm, etc without having to change actor ID.
That extension you kindly created really adds a lot to an already great plugin, it's very much appreciated.
No problem at all, it was an easy change to the code. I might improve it later, so that you don't have to edit the IDs directly in the code, and then contact Moghunter about it.
And yes, feel free to use these snippets in any projects you want, be it commercially or non-commercially. You don't need to credit me, either - as I said, it was a really simple edit 🙂
Wow thanks again for your generosity, it's really helped out so much.
I can see how adding some plugin options would also help as then you could configure it for party members too, though I assume I could simply use multiple duplicates of the plugin and just change the actor ID and the variables for different party members in the code to have the same functionality.
Please do post the updated plugin here once you get it all finished and sorted out with Moghunter.
Thank you!
And you must be some kind of clairvoyant as my next question to you was going to be to ask if you could also possibly utilise this for Actor Hud!
So the fact you've already done it is amazing.
No time now to test it out right now, but will edit this post with an update when I do.
Thanks again so much for all your help.
Finally had a chance to test out both Actor hud and party hud with your new plugin and both work great, the plugin command is great as it's easy to use any name you want for an alternative face set rather than just a number based on a variable, so much easier to keep track of things.
With the HUD system good to go that's a huge part of my game done now and I can concentrate on other aspects of it.
Many thanks again.