■ Information ╒══════════════════════════╛
EST - AUTO TEXT COLOR MZ
Version: 1.0
By Estriole
File name: EST_AUTO_TEXT_COLOR_MZ.js
■ Introduction ╒══════════════════════════╛
This Plugin created based on conversion of my ACE script and MV plugin with same name.
the original script / plugin created because i got tired adding \c[4]Nobita\c[0]
in the show message box. so i want to make it automatic. each time i wrote Nobita
it will change the color to what i set. useful to color actor names or places or
important things. i also add capitalization correction too. so if you write nobita.
it could fixed to Nobita(what you set in the config) if you want. both auto color
and auto caps correct can be binded to switch too if you don't want to always using it.
■ Features ╒══════════════════════════╛
- Auto Color Text
- Auto Correct Text (will corrected to what you SET though)
- Have individual switch for controling when you want some feature activated.
- SMART Search so XXXword / wordXXX or XXXwordXXX will not included.
- NOT case sensitive... so it can recognize DoraEmon or DorAEMON.
- recognize \n[x] message code... so if actor 1 name is Doraemon... it can recognize it
■ Changelog ╒══════════════════════════╛
v1.0 2020.10.22 Finish Porting the plugins to MZ
Rework the plugin parameter input to group by color to
avoid entry limitation.
■ Plugin Download ╒══════════════════════════╛
https://www.dropbox.com/s/03dx3whd41v7m15/EST_AUTO_TEXT_COLOR_MZ.js?dl=0
■ Screenshots ╒══════════════════════════╛
■ Demo ╒══════════════════════════╛
https://www.dropbox.com/sh/vhf1jhpydfr3vne/AACXtmj85frlI81AAmAcK50Ha?dl=0
click download to download the entire folder.
■ How to use ╒══════════════════════════╛
1) Fill the plugin parameter... see Parameter section for more detail
add your entry from plugin manager.
2) To control Auto Color / Auto Correct... just turn ON/OFF the coresponding switch.
3) if you want to color your actor name....
you could add some escape character in parameter... but you must add extra \ escape for
special character ( \ , [ , ] )
ex: \n[1] use \\n\[1\] instead for coloring actor 1 name.
\v[1] use \\v\[1\] instead for coloring variable 1 value in text.
example plugin parameter:
\\n\[1\]
will auto color actor 1 name to the color you put...
■ Dependencies ╒══════════════════════════╛
None
■ Compatibility ╒══════════════════════════╛
MZ is new engine... so i cannot say for sure...
but it should be compatible with most things.
put this below VisuStella Message Core plugins. and it will auto color all that not
set in VisuStella auto color feature.
■ Parameters ╒══════════════════════════╛
SpoilerUseInAllWindows
>>> default true
>>> if true will only autocolor all window that can autocolor.
will override OnlyUseInMessage and WhatWindowUseThis
OnlyUseInMessage = true / false
>>> default false
>>> if true will only autocolor in message window all other
will override WhatWindowUseThis
WhatWindowUseThis
>>> List of Windows that use Autocolor (MUST be child/descendand of Window_Base
WHICH USE DrawTextEx instead of DrawText).
>>> format: Window_Message, Window_Help, Window_NameBox, .... (separated by coma)
ReturnColor = number
>>> return to this color after replacing the color.
OtherTextUseReturnColor = true / false
>>> default false
>>> if set to true Make ALL Other Text use ReturnColor. meaning all your \c will become obselete
AutoColorSwitch = switchId
>>> default 0
>>> switch to turn on autocolor
>>> set to 0 for ALWAYS autocolor
CorrectCapSwitch = switchId
>>> default 0
>>> switch to turn on autocorrect
>>> set to 0 for ALWAYS autocorrect
DisableCaseSensitiveSwitch
>>> default 0
>>> Switch to deactivate the Case sensitive detection
>>> (set to 0 to ALWAYS DEACTIVATE Case Sensitive)
StartAutoColor = true / false
>>> default true
>>> if set to true will auto flip ON the Auto color switch.
at start of the game
StartAutoCorrect = true / false
>>> default true
>>> if set to true will auto flip ON the Auto color switch.
at start of the game
StartDisableCaseSensitive
>>> default true
>>> if set to true will start with DisableCaseSensitive's switch
switched ON automatically at start of the game.
will auto color to 4 and auto correct to the entry...
List By Color
\c[1] till \c[31]. add the text you want to auto color according
to the color you want.
■ Plugin Command ╒══════════════════════════╛
>> if the data entry from plugin manager is not enough. or you want to change the color
for certain text you already defined you can also add it inside the game... using this:
Plugin Command:
New Auto Color Entry
Fill the argument:
>> Text to Color = your text you want to auto color
>> Color = what color you want (1-31)
or Script Call:
$gameSystem.add_AC_Entry(yourtexthere, coloridhere);
example:
$gameSystem.add_AC_Entry("Dragon Ball", 10);
"Dragon Ball" will colored by color 10;
■ License ╒══════════════════════════╛
Free to use in all project (except the one containing pornography)
as long as i credited (ESTRIOLE).
■ Support ╒══════════════════════════╛
While I'm flattered and I'm glad that people have been sharing and
asking support for scripts in other RPG Maker communities, I would
like to ask that you please avoid posting my scripts outside of where
I frequent because it would make finding support and fixing bugs
difficult for both of you and me.
If you're ever looking for support, I can be reached at the following:
[
http://forums.rpgmakerweb.com/ ]
pm me : estriole
also support to compatibility with VisuStella is not possible.
because their code is obfuscated thus cannot be read by human.
if there's incompatibility... please ask VisuStella Team.
■ Donate ╒══════════════════════════╛
If you want to support my work you can donate here
https://www.makerdevs.com/profile/estriole
■ Author's Notes ╒══════════════════════════╛
None
本贴来自国际rpgmaker官方论坛作者:estriole处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/est-auto-text-color-mz.129115/