Aliases And Bind Help Needed! :(
BizZy_9mm_Messiah
Old School Member Join Date: 2003-07-25 Member: 18411Members, Constellation
<div class="IPBDescription">If you hate scripts, don't look here..</div> Ok I am trying to create a small configuration in my autoexec that will allow me to change my name to
BizZy
BizZy the 9mm Messiah
and my smurf name (s3kr3t <!--emo&::nerdy::--><img src='http://www.unknownworlds.com/forums/html//emoticons/nerd.gif' border='0' style='vertical-align:middle' alt='nerd.gif' /><!--endemo--> )
The problem is though, I tryed binding them like so
bind F11 "name BizZy the 9mm Messiah"
The binds which have the names with spaces in them don't work. Only the BizZy alone bind works.
I also want a bind or alias to configure "net_graph 0" on and off with the push of ONE button, so like say I wanted it on, I tap a, and then I wanted it off, I tap a again. I'm not new to binds but very new to aliases and I was told I need aliases in my autoexec to accomplish these features. So if you have a fair amount of knowledge on aliases please contribute or just show me exactly what I need to put in my autoexec so I can copy and paste! kekekeke ^^ <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html//emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /><!--endemo-->
BizZy
BizZy the 9mm Messiah
and my smurf name (s3kr3t <!--emo&::nerdy::--><img src='http://www.unknownworlds.com/forums/html//emoticons/nerd.gif' border='0' style='vertical-align:middle' alt='nerd.gif' /><!--endemo--> )
The problem is though, I tryed binding them like so
bind F11 "name BizZy the 9mm Messiah"
The binds which have the names with spaces in them don't work. Only the BizZy alone bind works.
I also want a bind or alias to configure "net_graph 0" on and off with the push of ONE button, so like say I wanted it on, I tap a, and then I wanted it off, I tap a again. I'm not new to binds but very new to aliases and I was told I need aliases in my autoexec to accomplish these features. So if you have a fair amount of knowledge on aliases please contribute or just show me exactly what I need to put in my autoexec so I can copy and paste! kekekeke ^^ <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html//emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /><!--endemo-->
Comments
actually have you tried bind F11 name "BizZy the 9mm Messiah" that might work for you, but it wont solve my problem <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html//emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /><!--endemo-->
bind "KEY" "netGrapher"
Alias netGrapher netGrapher01
Alias netGrapher01 "net_Graph 0;alias netGrapher netGrapher02"
Alias netGrapher02 "net_Graph 1;alias netGrapher netGrapher03"
Alias netGrapher03 "net_Graph 2;alias netGrapher netGrapher04"
Alias netGrapher04 "net_Graph 3;alias netGrapher netGrapher01"
Make a new .cfg file in your nsp directory (ie: name2.cfg)
Open it and add your name command (ie: name "BizZy the 9mm Messiah")
Close, save, etc..
Put this in your userconfig/autoexec... (replacing X's ofcourse)
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->bind X "name BizZy"
bind X "exec name2.cfg"
bind X "name smurfer"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
And Jabba, I assume you're trying to do something like this...
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->alias randombind "bind f11 impulse 91; alias randomstuff random"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
Which works.. if you do it like this...
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->alias randombind "bind f11 i91; alias randomstuff random"
alias i91 "impulse 91"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
Just alias out anything which has spaces (won't work for names, obviously).
Not "name blah blah"
If I remember correctly name%with%spaces would work (or something like that)
there is a symbole that is interpreted as a space by hl (atleast was in won....)
can't remember atm. (coulda been &)
/me jumps into Donce....
lets see.
yup yup
bind X "name A%name%with%spaces"
that will work <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->
Not "name blah blah" <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
That only works when you're doing it manually, that is, bringing down the console. Not in a bind.
alias name1 "name jackrabbit; bind = name2"
alias name2 "name BigD; bind = name3"
alias name3 "name whatever; bind = name1"
Change = to whatever... Then bind that key to name1 in your config.
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->bind x "name Multipart Name"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
will make your name Multipart, not Multipart Name
however you can get around this with either an alias or simply using % for spaces.
W00T for old sch00l hl
<!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
then again, I only know this b/c I needed it for giving my self my Clan tag when Playing HLPB <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
bind "KEY" "named"
alias named named01
alias names01 "BizZy"
alias names02 "BizZy the 9mm Messiah"
alias names03 "BizZy the Smurf"
alias names04 "s3kr3t"
alias named01 "name names01;alias named named02"
alias named02 "name names02;alias named named03"
alias named03 "name names03;alias named named04"
alias named04 "name names04;alias named named01"
It might work or it may just make your name names01 and such. Iv never really done name changing before with binds becouse I never change my name
Were Alias' not disabled in the latest version to prevent abuse?
however im using alias "mp3 play file path with spaces; alias...; alias"
even just trying
mp3 play file%path
on its own doesnt seem to work, any ideas?
is mp3 a comand? (normal one?) or is it a script?
if it is a HL command then the normal (not bind/alias) meathod would be:
mp3 "name with spaces"
the bind should work at:
bind x "mp3 name%with%spaces"
the alias would just be:
alias test "mp3 name with spaces; more"
if it is a script then it all depends on how the script was writen (I don't know much about advanced scripting where they interact with things out side of the game)
The simple soloution is to place the MP3s you want in a dir with out spaces <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo--> (I don't know how HL handels dirs with spaces)
alias pistol pon
alias pon "bind mwheelup +attack; bind mwheeldown +attack; alias pistol poff"
alias poff "bind mwheelup impulse 1; bind mwheelup invprev; alias pistol pon"
BUT because of the excessive use of spaces between bind mwheelup impulse and the impulse# it would not read it properly. I tried placing quotes in various spaces i.e.
alias pon "bind mwheelup "impulse 1"" but HL reades quotes one at a time, meaning the first quote before bind was coupled with the quote after mhweelup, giving me an error. Thus I had to resort to making an additional file called pistoloff.cfg so it reads like this:
alias pistol pon
alias pon "bind mwheelup +attack; bind mwheeldown +attack; alias pistol poff"
alias poff "exec pistoloff.cfg; alias pistol pon"
and then my pistoloff.cfg read like this:
bind "MWHEELDOWN" "impulse 1"
bind "MWHEELUP" "invprev"
Yes, it is a tedious method of accomplishing what should be an easy command to execute, but its the only way of getting around it <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html//emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /><!--endemo-->
you should (and can) use binds with spaces, the only problem is when you want to give a piece of input that has spaces in it.
EX:
the input to the name command is what you want your name to be, the problem being that the name command takes the first word after it as the input (unless you mark it ussing quotes)
you, however, can not use quotes in an alias.
your porblem came from the attempt to use an alias with impulse (THIS you can not do in NS!
you could have done the entire thing with this:
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->alias pistol pon
alias pon "bind mwheelup +attack; bind mwheeldown +attack; alias pistol poff"
alias poff "bind mwheelup invnext; bind mwheelup invprev; alias pistol pon"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
w00t for old school HL scripting again (/me mourns the loss of I.am.hl)
Edit:
I am tired, I wasn't thinking straight.
I jsut resaid what you said <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
but isn't impulse 1 the one for invnext? (and yes, you can just replace it)
Thansal, you must like hearing yourself talk because if you had actually READ my post I said :
"BUT because of the excessive use of spaces between bind mwheelup impulse and the impulse# it would not read it properly."
Thus I am saying that the problem arises when using impulse commands due the their spacing.... so basically you just REDUNTANDLY repeated what I was tyring the whole time to say. Don;t you think if I WANTED to use invnext I could have? Didn't you know nub, invnext doesnt work with hud_fastswitch? Before tyring to correct me, get your facts straight.
alias imp1 "impulse 1"
alias pistol pon
alias pon "bind mwheelup +attack; bind mwheeldown +attack; alias pistol poff"
alias poff "bind mwheelup imp1; bind mwheelup invprev; alias pistol pon"
That always works <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
...
Thansal, you must like hearing yourself talk because if you had actually READ my post I said :
"BUT because of the excessive use of spaces between bind mwheelup impulse and the impulse# it would not read it properly."
Thus I am saying that the problem arises when using impulse commands due the their spacing.... so basically you just REDUNTANDLY repeated what I was tyring the whole time to say. Don;t you think if I WANTED to use invnext I could have? Didn't you know nub, invnext doesnt work with hud_fastswitch? Before tyring to correct me, get your facts straight. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
you gota love it when some one yells at you for not reading posts when they obviously didn't read yours <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo--> (note the edit at the bottom, gg)
and they take 2 weeks to get back to it <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
In order to get spaces in your name you will need to save it as a config file...
I would do the following....
Create a file for each of the names you want to create.
for instance the first name is Rob Paulson, wiht a config file name of name1.cfg
The text in it will look like this:
name "Rob Paulson"
The 2nd name will be Big Moosie 4 ev3r, with the config file name of name2.cfg
The text in it will look like this:
name "Big Moosie 4 ev3r"
You will notice you do not need % or anythign like that in order to change your name, you only need the config files created on your PC an placed under the NS directory....
In order to change your name you will want to do this.
bind f11 "exec name1.cfg"
bind f12 "exec name2.cfg
or we can get a heck of a lot more complex with alias's and revolving scripts so that it will cycle through the names, or I could whip up a nice press a button and now your keypad will let you choose your name....
such as:
This would go in your autoexec.cfg file
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->alias nchange "name1"
alias name1 "exec name1.cfg; alias nchange name2"
alias name2 "exec name2.cfg; alias nchange name1"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
This would go in your config.cfg
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->bind f11 "nchange"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
Lots of scripting to do so little time....
Subform :o
alias pon "bind mwheelup +attack; bind mwheeldown +attack; alias pistol poff"
alias poff "bind mwheelup impulse 1; bind mwheelup invprev; alias pistol pon"
alias pistol pon
alias pon "bind mwheelup +attack; bind mwheeldown +attack; alias pistol poff"
alias poff "exec pistoloff.cfg; alias pistol pon" <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
Ewww rebinding scripts, those are so messy. :x