Script help

User avatar
raw
Posts: 2739
Joined: Tue Nov 16, 1999 8:00 am

Script help

Post 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?
DRuM
Posts: 6841
Joined: Mon Oct 28, 2002 8:00 am

Post by DRuM »

format c?
User avatar
raw
Posts: 2739
Joined: Tue Nov 16, 1999 8:00 am

Post 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]
DRuM
Posts: 6841
Joined: Mon Oct 28, 2002 8:00 am

Post by DRuM »

[lvlshot]http://freespace.virgin.net/roman.five/shot00018.jpg[/lvlshot]
DRuM
Posts: 6841
Joined: Mon Oct 28, 2002 8:00 am

Post 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.
bikkeldesnikkel
Posts: 1145
Joined: Tue Apr 05, 2005 7:54 pm

Post 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.
User avatar
raw
Posts: 2739
Joined: Tue Nov 16, 1999 8:00 am

Post 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. :)
User avatar
DooMer
Posts: 3068
Joined: Thu Dec 23, 1999 8:00 am

Post 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
spookmineer
Posts: 506
Joined: Fri Nov 29, 2002 8:00 am

Post by spookmineer »

....?
User avatar
raw
Posts: 2739
Joined: Tue Nov 16, 1999 8:00 am

Post 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
:))
brisk
Posts: 3801
Joined: Sun May 07, 2000 7:00 am

Post by brisk »

LOL
Nologic
Posts: 121
Joined: Thu Aug 05, 2004 7:00 am

Post by Nologic »

*gone*
Last edited by Nologic on Wed Nov 16, 2005 4:03 pm, edited 1 time in total.
User avatar
Foo
Posts: 13840
Joined: Thu Aug 03, 2000 7:00 am
Location: New Zealand

Post by Foo »

Oh bitch, you got jacked bitch!

:D
"Maybe you have some bird ideas. Maybe that’s the best you can do."
― Terry A. Davis
Nologic
Posts: 121
Joined: Thu Aug 05, 2004 7:00 am

Post by Nologic »

hmm I was just laying out some ground rules is all.
dzjepp
Posts: 12839
Joined: Wed Mar 28, 2001 8:00 am

Post by dzjepp »

haha told
Oeloe
Posts: 1529
Joined: Fri Mar 19, 2004 8:00 am

Post 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...
inolen
Posts: 705
Joined: Thu Dec 16, 1999 8:00 am

Post by inolen »

EDIT: No flaming kids!

- Foo
Oeloe
Posts: 1529
Joined: Fri Mar 19, 2004 8:00 am

Post by Oeloe »

inolen wrote:EDIT: No flaming kids!

- Foo
How un-nerdlike. :p
Nologic
Posts: 121
Joined: Thu Aug 05, 2004 7:00 am

Post by Nologic »

EDIT: No flaming kids!

- Foo
User avatar
MKJ
Posts: 32582
Joined: Fri Nov 24, 2000 8:00 am

Post by MKJ »

that was hardly flaming was it :(
[url=http://profile.mygamercard.net/Emka+Jee][img]http://card.mygamercard.net/sig/Emka+Jee.jpg[/img][/url]
User avatar
Survivor
Posts: 4202
Joined: Fri Dec 27, 2002 8:00 am

Post 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.
User avatar
raw
Posts: 2739
Joined: Tue Nov 16, 1999 8:00 am

Post 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 :))
User avatar
Foo
Posts: 13840
Joined: Thu Aug 03, 2000 7:00 am
Location: New Zealand

Post by Foo »

No flaming please raw!!!!!!!



:icon3:
"Maybe you have some bird ideas. Maybe that’s the best you can do."
― Terry A. Davis
Nologic
Posts: 121
Joined: Thu Aug 05, 2004 7:00 am

Post by Nologic »

raw -

You're most unwelcome.
User avatar
MKJ
Posts: 32582
Joined: Fri Nov 24, 2000 8:00 am

Post by MKJ »

raw's where its at :icon14:
although his post was closer to flaming than inolens :P
[url=http://profile.mygamercard.net/Emka+Jee][img]http://card.mygamercard.net/sig/Emka+Jee.jpg[/img][/url]
Locked