RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu

[VXA] Easy way to change Actor Graphic based on equipped Armor/Clothes? [Solved]

Started by xgkf, July 01, 2012, 12:29:54 AM

0 Members and 2 Guests are viewing this topic.

xgkf

M'kay, firstly, I know HOW to change a characters Actor Graphic depending on what they have equipped. I even have a Common Event (Parallel Trigger) that does just that and it works fine. My goal is to find out if there's a simpler way to do this than the method I'm currently using.

At the moment, I'm basically doing this with a big Conditional Branch tree where each possible armor piece gets its own Conditional Branch command in the previous ones "Else" section, and ending in a 'nude' option in the last "Else" statement (meaning that none of the previous ones are equipped, thus the character is 'nude').

Example:@>Conditional Branch: Armor1 Equipped
    @>Change Actor Graphic: GraphicArmor1
    @>
  : Else
    @>Conditional Branch: Armor2 Equipped:
        @>Change Actor Graphic: GraphicArmor2
        @>
      : Else
        @>Conditional Branch: Armor3 Equipped:
            @>Change Actor Graphic: GraphicArmor3
            @>
          : Else
            @>Change Actor Graphic: GraphicNude
            @>
          : Branch End
        @>
      : Branch End
    @>
  : Branch End
@>


Is there a simpler or cleaner way to check what the character has equipped, and to assign the appropriate graphic? Calling it in a script, maybe (and if so, how would that script look, how would I write it)? I would do it without all the "Else" statements, but then I couldn't apply the 'nude' graphic when there was nothing equipped, since the editor doesn't seem to give the option to check whether the character has "nothing" equipped.

Edit:
Solved. Figured out how to do what I was wanting to do.

Solar Eclipse

I believe that modern algebra made a "Visual Equipment" script. If you want to try it out, it's over in the script archive.