| www.ClassicTW.com https://mail.black-squirrel.com/ |
|
| ascii art https://mail.black-squirrel.com/viewtopic.php?f=15&t=34477 |
Page 1 of 2 |
| Author: | Cruncher [ Sat Nov 22, 2014 2:41 pm ] |
| Post subject: | ascii art |
What's the basic syntax to display multiple lines of ascii? Right now I have: go: Send "` stuff here " Send "` more stuff " Send "` even more stuff " halt Thanks! |
|
| Author: | LoneStar [ Sat Nov 22, 2014 3:22 pm ] | ||
| Post subject: | Re: ascii art | ||
Code: Setvar $STR "'*Lonestar's Wondering:" Setvar $STR ($STR & "* doesn't everyone know how to do this?") Setvar $STR ($STR & "* * ...guess not**") Send $STR Waitfor "Sub-space comm-link terminated" See attached...
|
|||
| Author: | Cruncher [ Sat Nov 22, 2014 7:36 pm ] |
| Post subject: | Re: ascii art |
Thank you |
|
| Author: | LoneStar [ Sat Nov 22, 2014 9:43 pm ] |
| Post subject: | Re: ascii art |
No problem. Let me know if you'd like to know how to do the same thing on Fed Com |
|
| Author: | Cruncher [ Sat Nov 22, 2014 10:13 pm ] |
| Post subject: | Re: ascii art |
LoneStar wrote: No problem. Let me know if you'd like to know how to do the same thing on Fed Com I am sending on Fed Com. I have more than 3 lines, so using your syntax I get an error too many parameters. If I put a return at the end of each line "*", each line sends on a separate fed com line. Here's my code: Code: # ascii "Moon" SEND "` _____ _____ " SEND "` / V \ " SEND "` / | \ " SEND "` | * | " SEND "` | ----^---- | " SEND "` \ | / " SEND "` \ | / " SEND "` \ | / " SEND "` \ | / " SEND "` \ | / " SEND "` \ | / " SEND "` (____|____) " SEND "` Kiss my Grits! " "*" waitFor "Message sent on Federation comm-link." (looses some formating in the translation, but you get the idea.) |
|
| Author: | LoneStar [ Sat Nov 22, 2014 11:10 pm ] |
| Post subject: | Re: ascii art |
Routine I posted works. It's very simple. The little ASCII thin you posted wouldn't work because there are no asterisks at the ends of the lines. Perhaps someone else can help you better than I'm able too. Good luck |
|
| Author: | Cruncher [ Sat Nov 22, 2014 11:16 pm ] |
| Post subject: | Re: ascii art |
When I put the asterisks at the end of each line surrounded in quotes "*", this is what I get. Code: Federation comm-link: [<ENTER> for multiple lines] ` _____ _____ Message sent on Federation comm-link. Citadel command (?=help) Federation comm-link: [<ENTER> for multiple lines] ` / V \ Message sent on Federation comm-link. Citadel command (?=help) Federation comm-link: [<ENTER> for multiple lines] ` / | \ Message sent on Federation comm-link. Citadel command (?=help) Federation comm-link: [<ENTER> for multiple lines] ` | Message sent on Federation comm-link. Citadel command (?=help) Silencing all messages. Citadel command (?=help) ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» º <B> Transporter Control <N> Interdictor Control º º <C> Engage Ship's Computer <P> Planetary TransWarp º º <D> Display Traders Here <R> Remain here overnight º º <E> Exchange Trader Ships <S> Scan this sector º º <G> Shield Generator Control <T> Treasury Fund Transfers º º <I> Personal Info <U> Upgrade Citadel º º <L> Quasar Cannon R-Level <V> Evict the other Traders º º <M> Military Reaction Level <X> Corporation Menu º º <!> Citadel Help <Q> Leave the Citadel º ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ Citadel treasury contains 30,008,121 credits. Citadel command (?=help) Federation comm-link: [<ENTER> for multiple lines] ` | ----^---- | Message sent on Federation comm-link. Citadel command (?=help) Federation comm-link: [<ENTER> for multiple lines] ` \ | / Message sent on Federation comm-link. Citadel command (?=help) Federation comm-link: [<ENTER> for multiple lines] ` \ | / Message sent on Federation comm-link. Citadel command (?=help) Federation comm-link: [<ENTER> for multiple lines] ` \ | / Message sent on Federation comm-link. Citadel command (?=help) Federation comm-link: [<ENTER> for multiple lines] ` \ | / Message sent on Federation comm-link. Citadel command (?=help) Federation comm-link: [<ENTER> for multiple lines] ` \ | / Message sent on Federation comm-link. Citadel command (?=help) Federation comm-link: [<ENTER> for multiple lines] ` \ | / Message sent on Federation comm-link. Citadel command (?=help) Federation comm-link: [<ENTER> for multiple lines] ` (____|____) Message sent on Federation comm-link. Citadel command (?=help) Federation comm-link: [<ENTER> for multiple lines] ` Kiss my Grits! |
|
| Author: | Mongoose [ Sun Nov 23, 2014 1:44 pm ] |
| Post subject: | Re: ascii art |
To send multiline messages, don't you need to pad each line with spaces out to the maximum line width? There's also a maximum message length, so I think you'll get two or three lines at most. |
|
| Author: | LoneStar [ Sun Nov 23, 2014 4:04 pm ] | |||
| Post subject: | Re: ascii art | |||
This is pretty funny.. last try on your keyboard press ` and then press * and then type a line of text, press *, type another line of text and press *, type another line of text and press *, type another line of text and press *, type another line of text and press *, type another line of text and press *, type another line of text and press *, type another line of text and press *.... when you're all done press ** ...TaDaaah!!! lol
|
||||
| Author: | Cruncher [ Sun Nov 23, 2014 5:56 pm ] | ||
| Post subject: | Re: ascii art | ||
Oh, this is more fun than JavaScript! Script compilation error: Too many parameters for command 'SETVAR', line 4 (MOON _2.0.TS) Script terminated: C:\TWX\Scripts\Cruncher's Edits\moon_2.0.ts Code: # ascii "Moon" SetVar $STR " I'm bending over so you can... * " SetVar $STR ($STR & " _____ _____ * " ) SetVar $STR ($STR & " / V \ * " ) SetVar $STR ($STR & " / | \ * " ) SetVar $STR ($STR & " | * | * " ) SetVar $STR ($STR & " | ----^---- | * " ) SetVar $STR ($STR & " \ | / * " ) SetVar $STR ($STR & " \ | / * " ) SetVar $STR ($STR & " \ | / * " ) SetVar $STR ($STR & " \ | / * " ) SetVar $STR ($STR & " \ | / * " ) SetVar $STR ($STR & " \ | / * " ) SetVar $STR ($STR & " (____|____) * " ) SetVar $STR ($STR & " Kiss my Grits! * " ) SetVar $STR ($STR & " ** " ) Send " ` * " & $STR waitFor "Message sent on Federation comm-link."
|
|||
| Author: | LoneStar [ Sun Nov 23, 2014 6:07 pm ] |
| Post subject: | Re: ascii art |
LINE 4: SetVar $STR ($STR & " _____ _____ * " ) should look like: LINE 4: SetVar $STR ($STR & " _____ _____ * ") no spaces between parenthesis and quotation marks. TWX syntax 101 - Year one.. that'll be CND $2,300 please. |
|
| Author: | Cruncher [ Sun Nov 23, 2014 7:24 pm ] |
| Post subject: | Re: ascii art |
This is too funny, now it's pulling a CIM. |
|
| Author: | Vid Kid [ Sun Nov 23, 2014 10:01 pm ] |
| Post subject: | Re: ascii art |
I told her one time already how to fix it but she is leaving all the send "'" on each line as well as the * but for what she has I could fix it or if done right , remove the send "' and all but the last asterisk and start it as I and lonestar said .. Send "*" for subspace or Send "`*" for fed the just send the grafix you want per line and an asterisk to advance to next line at the end of each line till the end where you will use 2 asterisks to end it and to keep it clean , a waitOn "ub-space c" for sub space message or the whatever similar waiton for fed messages. Such a simple exercise I do not understand why its so difficult. Very much like a hello world in most programing languages. |
|
| Author: | LoneStar [ Sun Nov 23, 2014 10:14 pm ] |
| Post subject: | Re: ascii art |
Vid Kid wrote: Such a simple exercise I do not understand why its so difficult. Very much like a hello world in most programing languages. I don't know about you, but I think my problem is a lack of a Post Secodary education in programming. |
|
| Author: | Cruncher [ Sun Nov 23, 2014 10:50 pm ] |
| Post subject: | Re: ascii art |
Vid Kid wrote: I told her one time already how to fix it but she is leaving all the send "'" on each line as well as the * but for what she has I could fix it or if done right , remove the send "' and all but the last asterisk and start it as I and lonestar said .. Send "*" for subspace or Send "`*" for fed the just send the grafix you want per line and an asterisk to advance to next line at the end of each line till the end where you will use 2 asterisks to end it and to keep it clean , a waitOn "ub-space c" for sub space message or the whatever similar waiton for fed messages. Such a simple exercise I do not understand why its so difficult. Very much like a hello world in most programing languages. This is exactly what you told me: Send "`*" then send the rest followed by a send "**" WaitOn "ub-space c" that is all Vid You don't have to be so cryptic. |
|
| Page 1 of 2 | All times are UTC - 5 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|