www.ClassicTW.com
http://classictw.com/

Scripting help
http://classictw.com/viewtopic.php?f=15&t=35454
Page 1 of 1

Author:  Dagbar [ Wed Jan 30, 2019 1:33 pm ]
Post subject:  Scripting help

I dont want to use the script command line to add verribales for a script to use. Verry basic stuff like yes no and sector number planet inputs. Whats a good twx script to look at or a doc of some kind with basic information on how to do this?

Sent from my SM-G965U using Tapatalk

Author:  LoneStar [ Wed Jan 30, 2019 6:57 pm ]
Post subject:  Re: Scripting help

Not sure I follow you, but; if you look at the Scripts that come with TWXProxy, they use the built in Addmenu pretty efficiently. They also make good use of Includes.

Author:  Dagbar [ Wed Jan 30, 2019 7:43 pm ]
Post subject:  Scripting help

Sorry about the poor posting. I was trying to post from my phone and pay attention to a work meeting at the same time. Thanks for the information about the default scripts. My download didn't come with the script packs I'll see if a have them in a archived folder.

Sent from my SM-G965U using Tapatalk

Author:  Vid Kid [ Thu Jan 31, 2019 8:25 am ]
Post subject:  Re: Scripting help

Dagbar , what is it you are trying to do , I mean what do you want the script to do for you ?
Scripts can ask you yes no questions to act on the task , as well as read file to an array to do the task to many sectors.

There may already be a script to do the task/s you are looking for .. explain
what it is you want.

Vid

Author:  Dagbar [ Thu Jan 31, 2019 10:14 am ]
Post subject:  Scripting help

I'm wanting to add a menu to an existing script that is currently getting its verribales from the command line and not a menu after launch. I was just looking for a good example to learn from.

Sent from my SM-G965U using Tapatalk

Author:  Cruncher [ Thu Jan 31, 2019 4:16 pm ]
Post subject:  Re: Scripting help

Dagbar wrote:
I'm wanting to add a menu to an existing script that is currently getting its verribales from the command line and not a menu after launch. I was just looking for a good example to learn from.

Sent from my SM-G965U using Tapatalk


You may be able to easily create or edit a help file.
C:\TWX\scripts\Mombot\Help

If the script you want to edit is a .ts script, you can open that in notepad or TWXide if you have that.

If it's extension is .ctc, it's compiled and you cannot open it. Maybe Shadow can help you with the decompiler he says he's written?

Author:  LoneStar [ Thu Jan 31, 2019 6:49 pm ]
Post subject:  Re: Scripting help

Cruncher wrote:
Dagbar wrote:
I'm wanting to add a menu to an existing script that is currently getting its verribales from the command line and not a menu after launch. I was just looking for a good example to learn from.

Sent from my SM-G965U using Tapatalk


You may be able to easily create or edit a help file.
C:\TWX\scripts\Mombot\Help

If the script you want to edit is a .ts script, you can open that in notepad or TWXide if you have that.

If it's extension is .ctc, it's compiled and you cannot open it. Maybe Shadow can help you with the decompiler he says he's written?


Did you actually read his response? :lol:

Author:  Dagbar [ Thu Jan 31, 2019 9:17 pm ]
Post subject:  Re: Scripting help

I do thank everybody for the help.
Im not a script writer but I can code and normally just need to be pointed in the right direction to get started. I HATE command line commands because I always have to do them twice forgetting a command or rearranging them. I have and .ts script the WSST script that after looking at it has a menu but it doesn't show up when launched from zbot (have not tried mom).
Ill do some digging in the default scripts from TWX that I did find in an older file.

Thanks again :)

Author:  Hammer_2 [ Thu Jan 31, 2019 9:28 pm ]
Post subject:  Re: Scripting help

Dagbar wrote:
I do thank everybody for the help.
Im not a script writer but I can code and normally just need to be pointed in the right direction to get started. I HATE command line commands because I always have to do them twice forgetting a command or rearranging them. I have and .ts script the WSST script that after looking at it has a menu but it doesn't show up when launched from zbot (have not tried mom).
Ill do some digging in the default scripts from TWX that I did find in an older file.

Thanks again :)


If you have access to LoneStar's awesome script's you'll see some excellent examples of using the TWX's menu command set.

LSpassgrid for example has a nice menu.

You'll get them either from Helix's sticky which has about a gigabyte of everything available or he might even have a direct link since he's lurking in this thread :)

Author:  Micro [ Fri Feb 01, 2019 9:21 am ]
Post subject:  Re: Scripting help

Cruncher wrote:
If it's extension is .ctc, it's compiled and you cannot open it. Maybe Shadow can help you with the decompiler he says he's written?
That is .cts for compiled scripts.

Author:  Cruncher [ Sat Feb 02, 2019 8:28 am ]
Post subject:  Re: Scripting help

LoneStar wrote:
Did you actually read his response? :lol:


Yes, I've written some UI.

Author:  LoneStar [ Sat Feb 02, 2019 9:08 pm ]
Post subject:  Re: Scripting help

Cruncher wrote:
LoneStar wrote:
Did you actually read his response? :lol:


Yes, I've written some UI.

What does that even mean? You’ve written User Interface ?

Author:  Cruncher [ Sun Feb 03, 2019 8:44 am ]
Post subject:  Re: Scripting help

LoneStar wrote:
Cruncher wrote:
LoneStar wrote:
Did you actually read his response? :lol:


Yes, I've written some UI.

What does that even mean? You’ve written User Interface ?


Yes for Xan's scripts, he doesn't like to write the UI.

Author:  LoneStar [ Sun Feb 03, 2019 7:44 pm ]
Post subject:  Re: Scripting help

Cruncher wrote:
LoneStar wrote:
Cruncher wrote:
LoneStar wrote:
Did you actually read his response? :lol:


Yes, I've written some UI.

What does that even mean? You’ve written User Interface ?


Yes for Xan's scripts, he doesn't like to write the UI.

Well, in the tangential way you answer a specific question, I would very much like to see one of your UI’s

Xanos fotons script
A - read how to load a script
B - send TA over Fed
C - call Xanos to write a foton script
D - give someone a hug
E - why can’t I edit a CTS file?
F - How to make UI by editing MomBot Help files
H - Request help from ICQ Bot

Q - How to Quit a script

:lol:

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