TWX Proxy - New Commands addQuickText and clearQuickText
Author |
Message |
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2556 Location: Oklahoma City, OK 73170 US
|
 Re: TWX Proxy - New Commands addQuickText and clearQuickTex
Adept wrote: Can't flashing text be both dark and bright colored?l Yes,,, ~a~k Dark Red on a Green Background. ~a~K Flashing Dark Red on a Green Background. ~A~K Flashing Bright Red on a Green Background. I though about doing ~AK but then you would ALWAYS have to specify the background color even when it is almost always black.
_________________ 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 11:46 am |
|
 |
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2556 Location: Oklahoma City, OK 73170 US
|
 Re: TWX Proxy - New Commands addQuickText and clearQuickTex
Adept wrote: ...ohhh thought of a few booleans that might be helpful to have:
SECTOR.BLACKHOLE[sector] (zero warps out)
No need for this ons, just do: if SECTOR.WARPCOUNT = 0 Adept wrote: SECTOR.ONEWARPIN[sector] (one warp both in and one or more warps out)
No need for this ons, just do: if SECTOR.BACKDOORCOUNT > 0 Adept wrote: SECTOR.DEADEND[sector] (one way both in and out--the same sector both ways.) You could do: if SECTOR.WARPCOUNT = 1 and SECTOR.BACKDOORCOUNT = 0 I will add this one though, since it simplifies a common function.
_________________ 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 2:00 pm |
|
 |
Adept
Chief Warrant Officer
Joined: Sat Feb 27, 2016 1:01 am Posts: 187 Location: Molon Labe
|
 Re: TWX Proxy - New Commands addQuickText and clearQuickTex
Yea, cool. I was just thinking it would be nice to perhaps take a boolean approach to some of that.
Say, am I missing any TWXProxy versions? I need these to add for selections for the Db.
'v1.1', 'v2.0', 'v2.11', 'v2.03', 'v2.04', 'v2.05', 'v2.06', 'v2.06.05a', 'v3'
_________________ “The object of life is not to be on the side of the majority, but to escape finding one’s self in the ranks of the insane.” — Marcus Aurelius
TWX Proxy Reference Online
|
Tue Apr 21, 2020 11:58 am |
|
 |
Adept
Chief Warrant Officer
Joined: Sat Feb 27, 2016 1:01 am Posts: 187 Location: Molon Labe
|
 Re: TWX Proxy - New Commands addQuickText and clearQuickTex
Oh also, last night I had a thought for either a new global var, maybe as a 'setVar b' or as a new field to the main setup menu to add the name of your bot so that scripts can have access to it at all times.
setVar b [botname]
or
Bot Name: (placed under the password field or wherever.)
_________________ “The object of life is not to be on the side of the majority, but to escape finding one’s self in the ranks of the insane.” — Marcus Aurelius
TWX Proxy Reference Online
|
Tue Apr 21, 2020 12:03 pm |
|
 |
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2556 Location: Oklahoma City, OK 73170 US
|
 Re: TWX Proxy - New Commands addQuickText and clearQuickTex
Adept wrote: Say, am I missing any TWXProxy versions? I need these to add for selections for the Db. Yeah, there are a lot more versions, there are really only two you care about: 2.05.74 The last version released by EP... 2.06.xx My release. Which originally focused on stability... Now I am adding few new features before I move my focus to v3.00.xx in c#, which does not really exist yet.
_________________ 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
Last edited by Micro on Tue Apr 21, 2020 2:20 pm, edited 2 times in total.
|
Tue Apr 21, 2020 1:52 pm |
|
 |
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2556 Location: Oklahoma City, OK 73170 US
|
 Re: TWX Proxy - New Commands addQuickText and clearQuickTex
Adept wrote: Oh also, last night I had a thought for either a new global var, maybe as a 'setVar b' or as a new field to the main setup menu to add the name of your bot so that scripts can have access to it at all times.
setVar b [botname]
or
Bot Name: (placed under the password field or wherever.) Currently TWX does not know your Bot Name, but it is stored by your bot: Mombot 3.1045: LoadVar $BOT_NAME Mombot 4p: LoadVar $BOT~BOT_NAME Zedbot: LoadVar $Z_BOTNAME I will add a system var for this.TWX does know which bot you are running, because of switchbot, so it should be easy to create a BOTNAME system var. Additional bot support is planned for v3.00.xx (c#), but that is about as far as I plan on going in Pascal.
_________________ 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
|
Tue Apr 21, 2020 2:12 pm |
|
 |
Deign
Warrant Officer
Joined: Thu Aug 21, 2003 2:00 am Posts: 77 Location: USA
|
 Re: TWX Proxy - New Commands addQuickText and clearQuickTex
I'm missing the point on this one. Why would TWX ever need to know your bot name. It is not even aware you are running a bot. TWX scripts that are "botable" by definition know your bot name, though.
|
Tue Apr 21, 2020 4:49 pm |
|
 |
Adept
Chief Warrant Officer
Joined: Sat Feb 27, 2016 1:01 am Posts: 187 Location: Molon Labe
|
 Re: TWX Proxy - New Commands addQuickText and clearQuickTex
Not when it first starts up, you have to enter it manually.
Furthermore, this will make it easier to write universlal functions to call upon the bot names of others or to broadcast your own bot's name--externally to the bot script itself. For example, I have a function in my botKit that does a rollcall, which has all bots check in with you, is really handy to know which bots are currently active, are listening, and to get the bot names of your corpies when you forgot someone's bot name.
_________________ “The object of life is not to be on the side of the majority, but to escape finding one’s self in the ranks of the insane.” — Marcus Aurelius
TWX Proxy Reference Online
|
Tue Apr 21, 2020 7:48 pm |
|
 |
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2556 Location: Oklahoma City, OK 73170 US
|
 Re: TWX Proxy - New Commands addQuickText and clearQuickTex
Deign wrote: I'm missing the point on this one. Why would TWX ever need to know your bot name. It is not even aware you are running a bot. TWX scripts that are "botable" by definition know your bot name, though. Yes, but different Bots store the name differently. I can provide a system var that will work reguardless of what bot is running. SwitchBot is now part of TWX. It is essentially a command that a bot can use to terminate itself and load another bot. In TWX 3.0 (c#) I plan on adding a lot of functionality like this to TWX for bots to use.
_________________ 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
|
Thu Apr 23, 2020 7:02 pm |
|
 |
Adept
Chief Warrant Officer
Joined: Sat Feb 27, 2016 1:01 am Posts: 187 Location: Molon Labe
|
 Re: TWX Proxy - New Commands addQuickText and clearQuickTex
Questions, are these commands? Does not look like they could be used in coding and I cannot track down where I might have got them from, so thinking they are typos...
greater, greater=, less, less=
_________________ “The object of life is not to be on the side of the majority, but to escape finding one’s self in the ranks of the insane.” — Marcus Aurelius
TWX Proxy Reference Online
|
Thu May 07, 2020 6:15 pm |
|
 |
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2556 Location: Oklahoma City, OK 73170 US
|
 Re: TWX Proxy - New Commands addQuickText and clearQuickTex
They are technically commands: Code: Purpose: Compares two values to see if the first is greater than or equal to the second.
Syntax: isGreaterEquil var {value1} {value2}
var: A variable to hold the result of the comparison. ...but they are intended for internal use. You would use them in a conditional statement: Code: If $A >= $B echo "Yes" else echo "No" end
This actually compiles to something like: Code: isGreaterEquil $TempVar1 $A $B Branch $TempVar1 :TempLabel1 Echo "Yes" goto :TempLabel2 :TempLabel1 Echo "No" :TempLabel2 Branch is the only "Real" conditional statement TWX understands.
_________________ 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 May 09, 2020 8:58 pm |
|
 |
|
Who is online |
Users browsing this forum: No registered users and 7 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
|
|