ok so i'm at the point in my game where I want to allow the player to customize the hairstyles and clothing of each party members. Each party member will have 8 different hairstyles and 8 different outfits, meaning I will be making 64 portraits for each party member (8 hairstyles X 8 outfits = 64 combinations). This now means that during cutscenes when adding dialogue and character portraits next to said dialogue, I will have to have a long list of "If switch H1 C1 is on, then ___ Otherwise if Switch H1 C2 is on ___ Otherwise..." and so on. in order to have the correct portrait show up next to the characters dialogue.
Does anyone know if there would be a better and easier way to go about this?
Lol, sorry, I didn't even see! I'm 75% sure there must be some equivalent for VX Ace
make each switch a bit in a binary number and apply an AND logic.
take the lot of switches: 0010101001101010 = 10858
if you want to check switch 6: 0000000000100000 => 32
if 10858 AND 32 == 1, switch 6 is ON.
for all switches, take X AND 2^64 == 1.
there are several scripts that add messaging options to the engine, including to use faces based on actors instead of fixed faces. In this case the ATS series from modern algebra is probably better than the more commonly used yanfly message system, as it contains more options for the use of faces.
Have one common event for each party member that does the conditional check, then just call the equivalent common event every time before a dialogue is the easiest way. Also for this situation it would be better to just use variables instead of switches so you only need 16 variables instead of 64.
sorry - I never used ATS myself, I just once made a point to check every script on the master script list to learn what it can do.
However, are you telling me that you not only have composite faces but also different expressions that you need to switch of an index that way? Bevcause if you have only one face per actor after all the switches, you won't need the face index at all.
If you have different expressions and need to select them, then I would suggest using string operations to handle filenames in the second option.
If neither fits, you need to post examples of what exactly you do with your faces.