View unanswered posts | View active topics It is currently Thu Mar 28, 2024 7:39 am



Reply to topic  [ 6 posts ] 
 I just realized something about QuickTexts 
Author Message
Ambassador
User avatar

Joined: Wed Apr 20, 2011 1:19 pm
Posts: 2559
Location: Oklahoma City, OK 73170 US
Unread post I just realized something about QuickTexts
The QuickText string parameter does NOT have to begin with a Tilde (~) character. You could do 'addQuickText "Dog" "Cat"' and from then on, Echo "Dog" would actually echo "Cat" to all clients. Be careful though as these strings are global in nature and remain in effect even after your script ends. QuickTexts effect strings sent from any running scripts, TWX System/Menus/etc.. and even TWGS/TradeWars game output too. This is kind of an unintended side effect, but if you want "Captain Zyrain" to be "Admiral Zyrain", then you can do it with a QuickText.

Image

I think he is due for a promotion, Don't you?

_________________
Regards,
Micro

Website: http://www.microblaster.net
TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002

ICQ is Dead Jim! Join us on Discord:
https://discord.gg/zvEbArscMN


Sat Apr 18, 2020 5:00 am
Profile ICQ YIM WWW
Ambassador
User avatar

Joined: Wed Apr 20, 2011 1:19 pm
Posts: 2559
Location: Oklahoma City, OK 73170 US
Unread post Re: I just realized something about QuickTexts
Hey Cruncher,

You know how you hate those Dark Blue ship numbers you can't read?

addquicktext "1;34m" "1;32m"

Image

... could be dangerous though, it would change all Blue to Green everywhere :/

_________________
Regards,
Micro

Website: http://www.microblaster.net
TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002

ICQ is Dead Jim! Join us on Discord:
https://discord.gg/zvEbArscMN


Sun Apr 19, 2020 12:08 pm
Profile ICQ YIM WWW
Ambassador
User avatar

Joined: Fri Feb 23, 2001 3:00 am
Posts: 4016
Location: USA
Unread post Re: I just realized something about QuickTexts
Micro wrote:
Hey Cruncher,

You know how you hate those Dark Blue ship numbers you can't read?

addquicktext "1;34m" "1;32m"

Image

... could be dangerous though, it would change all Blue to Green everywhere :/


I'm not the only one putting the ship number in the name now. We're all getting older. heh

_________________

BOTE 1998 Champs: Team Fament
HHT 2015 Champs: Cloud09
Big Game 2016 Champs: Draft team
HHT 2018 Champs: Rock Stars
Big Game 2019 Champs: Draft Team


Classic Style Games Here:
telnet://crunchers-twgs.com:2002

Web page from 1990's: https://web.archive.org/web/20170103155645/http://tradewars.fament.com/Cruncher/tradewar.htm
Blog with current server info: http://cruncherstw.blogspot.com
Discord: https://discord.gg/4dja5Z8
E-mail: Cruncherstw@gmail.com
FaceBook: http://www.facebook.com/CrunchersTW


Mon Apr 20, 2020 8:00 am
Profile ICQ WWW
Ambassador
User avatar

Joined: Wed Apr 20, 2011 1:19 pm
Posts: 2559
Location: Oklahoma City, OK 73170 US
Unread post Re: I just realized something about QuickTexts
Cruncher wrote:
I'm not the only one putting the ship number in the name now. We're all getting older. heh

Can you believe that unreadable color is the "Bright" version of blue. I always thought it was "Dark" blue. I can't read the Lime Green... better make it Yellow:
addquicktext "1;34m" "1;33m"

hehehheee

_________________
Regards,
Micro

Website: http://www.microblaster.net
TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002

ICQ is Dead Jim! Join us on Discord:
https://discord.gg/zvEbArscMN


Mon Apr 20, 2020 11:03 am
Profile ICQ YIM WWW
Warrant Officer

Joined: Thu Aug 21, 2003 2:00 am
Posts: 77
Location: USA
Unread post Re: I just realized something about QuickTexts
So if we get all carried away with customizing our colors and then realize that we've screwed something up and can't read anything, is there a command to restore defaults?

Thinking you might make some changes at the beginning of a script and then want to undo all that at the end with one simple command. Otherwise, you have to repeat the opposite of all those changes, probably screw that up too.


Mon Apr 20, 2020 11:18 am
Profile ICQ
Ambassador
User avatar

Joined: Wed Apr 20, 2011 1:19 pm
Posts: 2559
Location: Oklahoma City, OK 73170 US
Unread post Re: I just realized something about QuickTexts
Yes, of coarse there is!

# Create a QuickText
addQuickText "~Z" "^[0;31;44m"

# Remove a specific QuickText
clearQuickText "~Z"

# Remove all existing texts
clearQuickText

See the WIKI for more information:
https://github.com/MicroBlaster/TWXProx ... rQuickText

Note: This command is broken in 2.06.05a, but has been fixed in the next release.

_________________
Regards,
Micro

Website: http://www.microblaster.net
TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002

ICQ is Dead Jim! Join us on Discord:
https://discord.gg/zvEbArscMN


Mon Apr 20, 2020 12:48 pm
Profile ICQ YIM WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.