Page 1 of 1

Is it possible to colorize the echo message?

Posted: Sun Aug 19, 2018 3:46 am
by ┇»MiM«┇
for example something like this:
kill.cfgShow
echo Kill on
bind "z" "kill; exec nokill.cfg"
bind "mouse2" "+hook; exec nokill.cfg"
nokill.cfgShow
echo Kill off
bind "z" "exec kill.cfg"
bind "mouse2" "+hook"
been curious for years

Re: Is it possible to colorize the echo message?

Posted: Sun Aug 19, 2018 6:16 am
by GG Kid
well for me it looks like
....Show
this
this
screenshot_2018-08-18_21-07-51.png (382.44 KiB) Viewed 3344 times
what more color be you want?

also your Script-Bind feels reminiscent of Valen_4's "kill protection" viewtopic.php?f=16&t=6320#p62688. your's is more down & dirty. did you think of this your self?

Re: Is it possible to colorize the echo message?

Posted: Sun Aug 19, 2018 7:25 am
by ┇»MiM«┇
Ya pretty much 'came up' with it after discovering exec command back in.. 2015-ish (old friend helped me a bit aswell)
And i was wondering if i could have different colors for each line like, green 'kill off' and red 'kill on'

Stupid little thing but i'd love to know if its possible or not, just to be sure.

Re: Is it possible to colorize the echo message?

Posted: Sun Aug 19, 2018 2:58 pm
by deen
Not right now.

Re: Is it possible to colorize the echo message?

Posted: Sun Aug 19, 2018 11:44 pm
by GG Kid
well as long as your on DDnet server's you can just add say /whisper YourName Kill on! to kill.cfg to directly message your self, like so
...Show
screenshot_2018-08-19_13-53-38.png
screenshot_2018-08-19_13-53-38.png (140.67 KiB) Viewed 3294 times
although it basically breaks the /converse system, & it's quite hacky, but you can adjust the color under HUD > Highlighted message. it's cool you though of your own kill protection back in 2015, here i though we where doing some original stuff, oh well it was new to me :) i just hope to show others what i have learned.

Peace.