www.ClassicTW.com
https://mail.black-squirrel.com/

the 20 most commonly used TWX commands
https://mail.black-squirrel.com/viewtopic.php?f=15&t=33240
Page 1 of 1

Author:  Helix [ Sun May 27, 2012 7:13 pm ]
Post subject:  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

Author:  Helix [ Thu Aug 30, 2012 10:56 am ]
Post subject:  Re: the 20 most commonly used TWX commands

Bump

Author:  Vid Kid [ Thu Aug 30, 2012 3:48 pm ]
Post subject:  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

Author:  Helix [ Thu Aug 30, 2012 6:11 pm ]
Post subject:  Re: the 20 most commonly used TWX commands

Thanks vid

H

Author:  Promethius [ Thu Aug 30, 2012 8:12 pm ]
Post subject:  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.

Author:  ElderProphet [ Mon Sep 10, 2012 6:15 pm ]
Post subject:  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

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/