- Dec 31, 2017
- 863
- 1,021
I'm looking for a script that changes the text box message face graphic depending on the armor the character is wearing.
I could do loops to check what item is equipped and then display either one but that is redundant and a bit stupid way to do it. There's probably a more elegant way to do it with scripts.
The easier way I can think of is to swap the names of the face graphics files when the character changes clothes.
For example:
If the graphics files are named:
Current-Graphic
Dress-Graphic
Leather-Graphic
and character has equipped Leather Armor; change the filename Current-Graphic to Naked-Graphic and Leather-Graphic to Current-Graphic.
I think that would sort everything out but don't know if it's possible to do that with a script.
As it is now, no matter what the character has equipped the dress graphic is always shown in the message box.
I could do loops to check what item is equipped and then display either one but that is redundant and a bit stupid way to do it. There's probably a more elegant way to do it with scripts.
The easier way I can think of is to swap the names of the face graphics files when the character changes clothes.
For example:
If the graphics files are named:
Current-Graphic
Dress-Graphic
Leather-Graphic
and character has equipped Leather Armor; change the filename Current-Graphic to Naked-Graphic and Leather-Graphic to Current-Graphic.
I think that would sort everything out but don't know if it's possible to do that with a script.
As it is now, no matter what the character has equipped the dress graphic is always shown in the message box.