diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/other/Global_Functions.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/npc/other/Global_Functions.txt b/npc/other/Global_Functions.txt index 9fb4949fa..8f7899555 100644 --- a/npc/other/Global_Functions.txt +++ b/npc/other/Global_Functions.txt @@ -353,3 +353,11 @@ function script F_ShuffleNumbers { } return .@count; } + +//== Function F_MesColor =================================== +// Function to colorize npc dialog without having to memorize the color code +// Examples: +// mes callfunc("F_MesColor", C_BLUE) +"This message is now in BLUE"; +function script F_MesColor { + return sprintf("^%06X", min(getarg(0), 0xFFFFFF)); +} |