Premise: I’m working in a game where you can choose your gender and class, and I’d like to use a single face (emotions included) and spirte (if possible supporting poses) per character to
automate the replacement of the template graphics with others without constant conditional branches using gender/class (switches and variables are fine).
I’m already using Fomar’s Face Macro script (so that use of Face=text format (in this case it displays their namebox and colours their text).
What I want is to use a template graphic sheet (faces or sprites) and for the game to automatically replace those graphics with others depending on switches/variables/classes (whichever works best).
That would meant that if I made a textbox with the Emotion “smile”, it would display two different faces depending on gender, and further on (not as vital, but it would be ideal) class. The idea is that during editor work and eventing I would use the template rather than a million conditional branches.
I am ok with layered pictures or similar being used (adding a face or sprite sheet to the template) if that would be easier to implement (as long as it looks fine).
It cannot depend on Equipment tho, which is the closest thing I’ve been able to find; and in any case it does not support gender variants portraying faceset emotions.
So in summary: there would be Template sheets: TemplateFaceA and B (2) ideally to support a wide away of emotions and TemplateSprite with poses if possible; and then Variant sheets using all the same positions but with different graphics that replace the templates.
The changes would be determined by switches or variables (in effect graphics change by chosen gender and (ideally, if it can be done) class, as each character can advance through different class paths and I’d like to reflect that.
If I’m making no sense please ask further, I’m not sure if I’m explaining myself well enough. My games are dialog-y and I definitely do not want to plaster conditional branches for every time the main character opens their mouth. And that doesn’t even include class changes >A<
Example:
Use “FaceTemplate.png” emotion 2 in a textbox:
->If Character is
Male (switch Male
n) and Class
Pikeman, substitute graphic for “FaceMalePike.png” emotion 2
->If Character is
Female (switch Female
n) and Class
Swordsman, substitute graphic for “FaceFemaleSword.png” emotion 2
*Ideally needs to support replacement templates for multiple characters with various classes each (only the main character changes by gender).
*Must support faces,
emotions included (entire faceset) and sprite. Poses in the same spritesheet too, if possible.