Page 1 of 4

Script help

Posted: Sun Nov 13, 2005 6:04 pm
by raw
I've tried 3 different versions of this and still can't seem to get it to work. What's the issue here? Also, does anyone know the escape character for ' in a word so I can put it in my script. Example: WHO'S YOUR DADDY? The ' breaks the script.

Version 1(Quake3 Version):

Code: Select all

//textscript
set text9 "say I'M SORRY! DID I BREAK YOUR CONCENTRATION?; set txtchange vstr text8"
set text8 "say ^1PITTY FRAG!!!!!!!!!!!!!!; set txtchange vstr text7"
set text7 "say Thanks for Shopping at Wal*Mart!; set txtchange vstr text6"
set text6 "say ^1ANAL PENETRATION! wo0t!; set txtchange vstr text5"
set text5 "say ^3OWNT ON A STICK; set txtchange vstr text4"
set text4 "say ^3EAT A DICK UP TILL YA HICCUP!; set txtchange vstr text3"
set text3 "say ^!ALLAH GIVES GOOD HEAD; set txtchange vstr text2"
set text2 "say GAYED FO SHIZZLE MAH NIZZLE!!!!!!!!!!!!!!!!!!!!!!!; set txtchange vstr text1"
set text1 "say OWNED? DAMN RIGHT!!!; set txtchange vstr text0"
set text0 "say ^7*^1ASS RAPE^7*; set txtchange vstr text9"
set txtchange vstr text9
bind "p" "vstr txtchange"



Version 2:

Code: Select all

set text9 "say 'IM SORRY! DID I BREAK YOUR CONCENTRATION?';set txtFlame vstr text8"
set text8 "say '^1PITTY FRAG!!!!!!!!!!!!!!';set txtFlame vstr text7"
set text7 "say 'Thanks for Shopping at Wal*Mart!';set txtFlame vstr text6"
set text6 "say '^1ANAL PENETRATION! wo0t!';set txtFlame vstr text5"
set text5 "say '^3OWNT ON A STICK';set txtFlame vstr text4"
set text4 "say '^3EAT A DICK UP TILL YA HICCUP!';set txtFlame vstr text3"
set text3 "say '^!ALLAH GIVES GOOD HEAD';set txtFlame vstr text2"
set text2 "say 'GAYED FO SHIZZLE MAH NIZZLE!!!!!!!!!!!!!!!!!!!!!!!';set txtFlame vstr text1"
set text1 "say 'OWNED? DAMN RIGHT!!!';set txtFlame vstr text0"
set text0 "say '^7*^1ASS RAPE^7*';set txtFlame vstr text9"
set txtFlame "vstr text9"
bind "p" "vstr txtFlame"


Version3:

Code: Select all

seta "ua_text9" "say 'IM SORRY! DID I BREAK YOUR CONCENTRATION?';set txtFlame vstr ua_text8"
seta "ua_text8" "say '^1PITTY FRAG!!!!!!!!!!!!!!';set txtFlame vstr ua_text7"
seta "ua_text7" "say 'Thanks for Shopping at Wal*Mart!';set txtFlame vstr ua_text6"
seta "ua_text6" "say '^1ANAL PENETRATION! wo0t!';set txtFlame vstr ua_text5"
seta "ua_text5" "say '^3OWNT ON A STICK';set txtFlame vstr ua_text4"
seta "ua_text4" "say '^3EAT A DICK UP TILL YA HICCUP!';set txtFlame vstr ua_text3"
seta "ua_text3" "say '^!ALLAH GIVES GOOD HEAD';set txtFlame vstr ua_text2"
seta "ua_text2" "say 'GAYED FO SHIZZLE MAH NIZZLE!!!!!!!!!!!!!!!!!!!!!!!';set txtFlame vstr ua_text1"
seta "ua_text1" "say 'OWNED? DAMN RIGHT!!!';set txtFlame vstr ua_text0"
seta "ua_text0" "say '^7*^1ASS RAPE^7*';set txtFlame vstr ua_text9"
seta ua_txtFlame "vstr ua_text9"
bind "p" "vstr ua_txtFlame"


Any ideas?

Posted: Sun Nov 13, 2005 6:18 pm
by DRuM
format c?

Posted: Sun Nov 13, 2005 6:24 pm
by raw
Here's another little bug I found. It doesn't obey the bind when the line of text wraps. The color should be red until the end. Also, is there a way to get it to say "screenshot blah blah blah" written on the screen instead of just the console?

[lvlshot]http://www.raw-one.com/shot00001.jpg[/lvlshot]

Posted: Sun Nov 13, 2005 6:51 pm
by DRuM
[lvlshot]http://freespace.virgin.net/roman.five/shot00018.jpg[/lvlshot]

Posted: Sun Nov 13, 2005 6:55 pm
by DRuM
bind x " say ' ^1ENEMY HERE!!! I KNOW THIS CAUSE I AM DEAD YOU ^1FAGGOTS!@!!@!@P!S@PS ' "

my hash key is a 'P' now, (don't ask). Only way for it to work that I can see is to put the colour again at the start of the second line, ie,' ^1FAGGOTS'
There is a side effect of this part of the line : '^1FAGGOTS!@!!@!@P!S@PS' coming on screen again after the whole sentence, but it doesnt really seem to be a problem tbh.

Posted: Sun Nov 13, 2005 7:36 pm
by bikkeldesnikkel
try using a .txt file or whatever and use say commands in sequence. then exec bla.txt in console or bind a key to it.

Posted: Sun Nov 13, 2005 7:41 pm
by raw
DRuM wrote:[lvlshot]http://freespace.virgin.net/roman.five/shot00018.jpg[/lvlshot]
Nice workaround drum but that doesn't mean its not gay. :)

Posted: Sun Nov 13, 2005 7:49 pm
by DooMer
Hmmm... I've done some experimenting and the results were interesting to say the least. Take a look for yourself. http://www.quake3world.com/dmr/shot00029.jpg

Posted: Sun Nov 13, 2005 7:55 pm
by spookmineer
....?

Posted: Sun Nov 13, 2005 8:03 pm
by raw
DooMer wrote:Hmmm... I've done some experimenting and the results were interesting to say the least. Take a look for yourself. http://www.quake3world.com/dmr/shot00029.jpg
:))

Posted: Sun Nov 13, 2005 10:24 pm
by brisk
LOL

Posted: Tue Nov 15, 2005 3:55 am
by Nologic
*gone*

Posted: Tue Nov 15, 2005 4:00 am
by Foo
Oh bitch, you got jacked bitch!

:D

Posted: Tue Nov 15, 2005 4:10 am
by Nologic
hmm I was just laying out some ground rules is all.

Posted: Tue Nov 15, 2005 4:12 am
by dzjepp
haha told

Posted: Tue Nov 15, 2005 10:04 am
by Oeloe
N1 nologic. :)

There's indeed no reason to use seta to declare user aliases (ua's) for scripts. Not necessary at all to use double quotes around cvars and keys either, because there never are spaces in them:

seta ua_txtFlame "vstr ua_text9"
bind p "vstr ua_txtFlame"


I don't really like having to put ua_ in front of every user alias. Just makes everything take up more space and harder to read through scripts. :icon8: Anyways, it works...

Posted: Tue Nov 15, 2005 12:39 pm
by inolen
EDIT: No flaming kids!

- Foo

Posted: Tue Nov 15, 2005 12:55 pm
by Oeloe
inolen wrote:EDIT: No flaming kids!

- Foo
How un-nerdlike. :p

Posted: Tue Nov 15, 2005 5:29 pm
by Nologic
EDIT: No flaming kids!

- Foo

Posted: Tue Nov 15, 2005 6:47 pm
by MKJ
that was hardly flaming was it :(

Posted: Tue Nov 15, 2005 6:56 pm
by Survivor
MKJ wrote:that was hardly flaming was it :(
Q4 discussion is the noobpen. Slaughter takes place in gd, beers in the fix tonight.

Posted: Wed Nov 16, 2005 12:06 pm
by raw
Nologic, thanks for the help. On a side note, your 'holier than thou' attitude makes me want to call you a llama. llama :))

Posted: Wed Nov 16, 2005 2:55 pm
by Foo
No flaming please raw!!!!!!!



:icon3:

Posted: Wed Nov 16, 2005 4:03 pm
by Nologic
raw -

You're most unwelcome.

Posted: Wed Nov 16, 2005 4:11 pm
by MKJ
raw's where its at :icon14:
although his post was closer to flaming than inolens :P