Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
[iscript]
var str = "Annie";
var result = str.fontcolor("d6ff70"); < insert your hex code here
f.annie= result;
[endscript]
Then you'd just write the character names using the "final" variable:
#&[f.annie]
This is text!
[p]
What should happen is the system will input the name entered in "var str" (note that "str" just seems to be a common term for a basic variable, but it could be "var a" if you wanted, as long as you use it consistently (var result = a.fontcolor) while applying the color specified in "var result".
Now, when using this, it may not automatically recognize which character is speaking (as in, you're using the brightness/blur setting for characters). A way to correct this may be to introduce your characters in this way:
[chara_new name="Annie" storage="chara/1/annie.png" jname="&[f.annie]"]
[chara_show name="Annie" time=0 left=-200 top=408 page=fore layer=2 time=0]
(basically, write out the chara_new tag so that you can specify the jname with the variable).
Then, when you write text, just use the default character name (#Annie), and if this works as I hope that it does, the system will automatically apply the right color to the name while still preserving the brightness/blur setting.
Let me know if that's sufficiently clear and works for you!
Hello and thanks for writing this out for me! Ill be testing this out soon- but I wanted to clarify, should this segment go into the same tyranoscript node as the first segment, or somewhere else? Also, does "chara/1/annie.png" indicate the characters sprite image? Thank you!
cant thank you enough :) ill let you know if there are any problems with the script in the future!