Hi there, I'm new to RPG Maker.
Is there any way to change a message's colour based on whether or not you own a skill, in an easy way without much branching?
I'm using Yanfly's Message Core.
My initial idea was to make it so that it was something like:
if MainCharacterName has learned "Sense Lie"
show a message saying "This is a truth. This is a lie."
else
show a message saying "This is a truth. \c[10] This is a lie."
end
which should look like:
"This is a truth. This is a lie." when you have the skill.
(And since I'm worried about people who are colourblind, if there's a way to strikethrough text instead, that would be helpful. I'm thinking about making a stricken-through font of the default font for this)
But then I realized that the more I did this, the more branches I would need to throw out until it ends in a horribly branchy mess, especially if I do it within choices.
Is there any way to do this without throwing conditional branch every time?
I can minimally code (though not in Javascript), but am willing to learn, to some extent if necessary to get this to work.
Thank you in advanced.
EDIT: Now that I'm thinking about it, the conditional branch method shouldn't be too bad as long as I'm careful with it...
Is there any way to change a message's colour based on whether or not you own a skill, in an easy way without much branching?
I'm using Yanfly's Message Core.
My initial idea was to make it so that it was something like:
if MainCharacterName has learned "Sense Lie"
show a message saying "This is a truth. This is a lie."
else
show a message saying "This is a truth. \c[10] This is a lie."
end
which should look like:
"This is a truth. This is a lie." when you have the skill.
(And since I'm worried about people who are colourblind, if there's a way to strikethrough text instead, that would be helpful. I'm thinking about making a stricken-through font of the default font for this)
But then I realized that the more I did this, the more branches I would need to throw out until it ends in a horribly branchy mess, especially if I do it within choices.
Is there any way to do this without throwing conditional branch every time?
I can minimally code (though not in Javascript), but am willing to learn, to some extent if necessary to get this to work.
Thank you in advanced.
EDIT: Now that I'm thinking about it, the conditional branch method shouldn't be too bad as long as I'm careful with it...