Aliases And Bind Help Needed! :(

BizZy_9mm_MessiahBizZy_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-->
«1

Comments

  • Jabba_The_HuntJabba_The_Hunt Join Date: 2003-01-05 Member: 11850Members
    I've got to be in an exam in and hour and 15mins so I aint really got the time to answer this. Oh and I also need to know how to put spaces in scripts <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->. I know the problem is because the name needs to be in string characters but ' doesnt work as an alternative like in other scripting languages?


    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-->
  • HibameHibame Join Date: 2003-11-16 Member: 22974Members, Reinforced - Shadow
    // Have fun heres the net graph toggle jsut replace KEY with the key you want
    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"
  • romanoromano Join Date: 2002-11-02 Member: 4296Members
    The only way I know to change your name to something with a space with a bind is to make a new .cfg with the "name" command as the only line.

    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).
  • NGENGE Join Date: 2003-11-10 Member: 22443Members
    name "blah blah"
    Not "name blah blah"
  • BizZy_9mm_MessiahBizZy_9mm_Messiah Old School Member Join Date: 2003-07-25 Member: 18411Members, Constellation
    Thnx for all your help guys. I am A-OK now! <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html//emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /><!--endemo-->
  • ThansalThansal The New Scum Join Date: 2002-08-22 Member: 1215Members, Constellation
    edited May 2004
    /me ponders....

    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-->
  • th0r0nth0r0n Born again n00b Join Date: 2003-06-12 Member: 17313Members
    bind "x" "name with spaces"
  • AlignAlign Remain Calm Join Date: 2002-11-02 Member: 5216Forum Moderators, Constellation
    <!--QuoteBegin-NGE+May 24 2004, 01:16 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (NGE @ May 24 2004, 01:16 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> name "blah blah"
    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.
  • SalvationSalvation Join Date: 2003-11-21 Member: 23300Members
    i never got alias's to work <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html//emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /><!--endemo-->
  • NGENGE Join Date: 2003-11-10 Member: 22443Members
    Or in a config, I don't really see the point in binding a name in NS when you've got to wait a round for your name to change, but yeah you're right.
  • l3igDl3igD Join Date: 2003-11-20 Member: 23262Members
    edited May 2004
    EVIL scripts !!! anywayz here...

    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.
  • ThansalThansal The New Scum Join Date: 2002-08-22 Member: 1215Members, Constellation
    the point that alot of people are missing is that 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-->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-->
  • HibameHibame Join Date: 2003-11-16 Member: 22974Members, Reinforced - Shadow
    While at school i thought of a way that might work...

    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
  • DaxxDaxx Join Date: 2002-04-16 Member: 460Members, Constellation, Reinforced - Shadow
    <!--QuoteBegin-Salvation+May 24 2004, 10:45 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Salvation @ May 24 2004, 10:45 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> i never got alias's to work <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html//emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /><!--endemo--> <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    Were Alias' not disabled in the latest version to prevent abuse?
  • BobTheJanitorBobTheJanitor Join Date: 2003-12-10 Member: 24228Members, NS1 Playtester
    Only when mp_blockscripts is on. Then, iirc, all commands with wait, exec, and a semicolon are blocked. I have yet to see a server use it, as it's quite successful in blocking ALL scripts, from arguable exploitative scripts down to a script that fires off the request orders impulse while team saying "Need an RT here, commando!"
  • CreepieCreepie Join Date: 2003-02-19 Member: 13734Members
    Thansal is the closest: there is a character that can be used to replace spaces. It is something like % or & or similar.
  • Jabba_The_HuntJabba_The_Hunt Join Date: 2003-01-05 Member: 11850Members
    Ok i've been testing and yeah % can be used to replace spaces when using commands such as name etc...

    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?
  • ThansalThansal The New Scum Join Date: 2002-08-22 Member: 1215Members, Constellation
    hmmmm

    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)
  • Jabba_The_HuntJabba_The_Hunt Join Date: 2003-01-05 Member: 11850Members
    yeah ok ill sort it without spaces i think, probably easier.
  • Renegade.Renegade. Join Date: 2003-01-15 Member: 12313Members, Constellation
    Romano is right you must make it a seperate cfg file. I tried making aliases with multiple commands and spaces (for a pistol script)

    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-->
  • ThansalThansal The New Scum Join Date: 2002-08-22 Member: 1215Members, Constellation
    edited May 2004
    thats just not true in the least.....

    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)
  • Renegade.Renegade. Join Date: 2003-01-15 Member: 12313Members, Constellation
    <!--QuoteBegin-Thansal+May 25 2004, 09:38 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Thansal @ May 25 2004, 09:38 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> your porblem came from the attempt to use an alias with impulse (THIS you can not do in NS! <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    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.
  • e_Nadagaste_Nadagast Join Date: 2003-10-30 Member: 22149Members
    edited June 2004
    having fun imitating people in pubs bizzy?
  • redScareredScare Join Date: 2004-05-18 Member: 28752Members
    Or just use:

    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-->
  • rknZrknZ Join Date: 2003-10-23 Member: 21885Members
    bind "F11" "name BizZy%the%9mm%Messiah"

    ...
  • ThansalThansal The New Scum Join Date: 2002-08-22 Member: 1215Members, Constellation
    edited June 2004
    <!--QuoteBegin-@nthony+Jun 8 2004, 05:37 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (@nthony @ Jun 8 2004, 05:37 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin-Thansal+May 25 2004, 09:38 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Thansal @ May 25 2004, 09:38 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> your porblem came from the attempt to use an alias with impulse (THIS you can not do in NS! <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
    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-->
  • Robert_PaulsonRobert_Paulson Join Date: 2003-07-29 Member: 18543Members
    What everyone has said about binding names is wrong (cept Romano)....

    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....
  • Nemesis_ZeroNemesis_Zero Old European Join Date: 2002-01-25 Member: 75Members, Retired Developer, NS1 Playtester, Constellation
    <span style='color:white'>***Moved.***</span>
  • DrfuzzyDrfuzzy FEW... MORE.... INCHES... Join Date: 2003-09-21 Member: 21094Members
    <!--QuoteBegin-Nemesis Zero+Jun 10 2004, 08:14 AM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Nemesis Zero @ Jun 10 2004, 08:14 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <span style='color:white'>***Moved.***</span> <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    Subform :o
  • UrdUrd Join Date: 2003-05-25 Member: 16696Members, Constellation
    <!--QuoteBegin-@nthony+May 25 2004, 04:40 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (@nthony @ May 25 2004, 04:40 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> 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"

    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
Sign In or Register to comment.