View unanswered posts | View active topics It is currently Fri Apr 17, 2026 6:02 am



Reply to topic  [ 6 posts ] 
 the 20 most commonly used TWX commands 
Author Message
Ambassador
User avatar

Joined: Wed Nov 12, 2008 8:57 am
Posts: 3554
Location: Long Beach, CA
Unread post the 20 most commonly used TWX commands
ElderProphet wrote:
Dig up that old thread or start a new one, and I'll dig up my list for ya. I wrote a script that parsed all of my scripts and counted the frequency of the commands used. I thought I'd shared that previously. Maybe we can follow it up with some scripting sessions based around the most commonly used commands... as in recorded videos for posterity.


EP,

There wasnt a thread as I recall, our conversation was in PM about the time you were posting the SYN info for 2.05. We should keep it simple and just start with the commands.....

H

_________________
Helix
Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars.
Lest we forget
I had to ask myself WWSGD?


Sun May 27, 2012 7:13 pm
Profile WWW
Ambassador
User avatar

Joined: Wed Nov 12, 2008 8:57 am
Posts: 3554
Location: Long Beach, CA
Unread post Re: the 20 most commonly used TWX commands
Bump

_________________
Helix
Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars.
Lest we forget
I had to ask myself WWSGD?


Thu Aug 30, 2012 10:56 am
Profile WWW
Commander

Joined: Sun Feb 25, 2001 3:00 am
Posts: 1838
Location: Guam USA
Unread post Re: the 20 most commonly used TWX commands
I'll give you 30
Not in order of appearance :

1) SetVar
2) LoadVar
3) SaveVar
4) WaitFor
5) WaitOn
6) IF
7) While
8) Else
9) ElseIF
10) End
11) Or
12) And
13) SetTextTrigger
14) SetTextLineTrigger
15) Pause
16) Halt
17) Send
18) Echo
19) Goto
20) GoSub
21) GetWord
22) GetText
23) GetWordPos
24) CutText
25) UpperCase
26) LowerCase
27) StripText
28) ReplaceText
29) KillTrigger
30) KillAllTriggers

Some will be used some may not .. so pick 20 and there you go ;)

Vid

_________________
TWGS V2 Vids World on Guam Port 2002
Telnet://vkworld.ddns.net:2002
Discord @ DiverDave#8374
Vid's World Discord

Founding Member -=[Team Kraaken]=- Ka Pla

Image
Winners of Gridwars 2010
MBN Fall Tournament 2011 winners Team Kraaken
Undisputed Champions of 2019 HHT Just for showing up!

The Oldist , Longist Running , Orginal Registered Owner of a TWGS server :
Vids World On Guam


Last edited by Vid Kid on Thu Aug 30, 2012 7:06 pm, edited 1 time in total.



Thu Aug 30, 2012 3:48 pm
Profile WWW
Ambassador
User avatar

Joined: Wed Nov 12, 2008 8:57 am
Posts: 3554
Location: Long Beach, CA
Unread post Re: the 20 most commonly used TWX commands
Thanks vid

H

_________________
Helix
Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars.
Lest we forget
I had to ask myself WWSGD?


Thu Aug 30, 2012 6:11 pm
Profile WWW
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post Re: the 20 most commonly used TWX commands
Vid Kid wrote:
I'll give you 30
Not in order of appearance :

1) SetVar
2) LoadVar
3) SaveVar
4) WaitFor
5) WaitOn
6) IF
7) While
8) Else
9) ElseIF
10) End
11) Or
12) And
13) SetTextTrigger
14) SetTextLineTrigger
15) Pause
16) Halt
17) Send
18) Echo
19) Goto
20) GoSub
21) GetWord
22) GetText
23) GetWordPos
24) CutText
25) UpperCase
26) LowerCase
27) StripText
28) ReplaceText
29) KillTrigger
30) KillAllTriggers

Some will be used some may not .. so pick 20 and there you go ;)

Vid


k, I'll add a few that I've used a lot:
currentAnsiLine
getDistance
getSectorParameter
setSectorParameter

The most commonly used commands depend on what type of scripts you are writing. Vid listed the main ones for general scripting.

_________________
               / Promethius / Enigma / Wolfen /

"A man who has no skills can be taught, a man who has no honor has nothing."


Thu Aug 30, 2012 8:12 pm
Profile ICQ
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post Re: the 20 most commonly used TWX commands
So I parsed every .ts script on my hard drive. I eliminated duplicately named scripts, though content is certainly duplicated in revisions. The total number of parsed scripts is 1,550. These include scripts as far back as 2002 (DotU script pack). And granted, my personal scripts account for a large portion of that number, which likely skew the results.

The Top 20 Most Frequently Occurring TWX Commands
setVar
if/elseif/else/end
send
echo
goto
getWord
setTextLineTrigger
gosub/return
killTrigger
add
pause
stripText
killAllTriggers
while/end
setTextTrigger
waitFor
halt

The complete, sorted list is attached, for all interested. I had to clean up 'experimental' commands, so forgive me if I missed any.

And what would be the fun of doing all that work without some line counts thrown in?

The Top 20 Most Lengthy TWX Scripts
1) 11,315 - mom_bot
2) 6,958 - Ram_Team-SDT
3) 5,230 - Traitor's Public Move Helper
4) 4,104 - st-bot
5) 3,297 - Ram_Twarp_Grid
6) 2,912 - Salesman
7) 2,840 - Ram_Complete_Photon
8 2,671 - Trivia Bot
9) 2,637 - quikpanel
10) 2,365 - WRob


Attachments:
TWXCommandOccurrence.zip [967 Bytes]
Downloaded 510 times

_________________
Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.
Mon Sep 10, 2012 6:15 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 12 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 wSTSoftware.