Is there any coding that can be used to change the colour of text in choicescript? Not for the entire game, that would just be an eyesore, but for certain parts of the game it would come in really useful.
ui.js under the
printx() function there’s a handful of
.replaces, which is the easiest way to insert html. Just create your own. Noteworthy that anything outside standard ChoiceScript can pose a problem to publishing.
As another someone who also didn’t understand but a 'lil bit about that, I think I can explain it to you as this:
Yeah, coding in font color is too difficult for me. It’s already excruciating enough to struggle through CS code. Anyways, here’s a post that might help you:
Wow! I did not think that changing text colour would be so complicated. Maybe I’ll just keep it all the same.
Yea, basically we don’t support it yet, so if you want it, you have to hack it in.
I guess I can assume that it will be supported sooner or later?
P.S.: Ah, off-topic. NVM me :v
Actually most don’t. Since I already started answering, let me see if I can expand.
web folder, there is a file called
ui.js or (Although it may just say
ui with a
function printx. Indented in that function is a number of lines that say
.replace(foo, bar) where
foo is something like
bar is something like
'<' Well that replaces the less than sigh
< with the HTML entity
<. It’s possible to mess with these (adding or removing some) to start writing HTML into a page.
The side effect is this gets very breakable, very fast.