Binding Scripts To Gestating

eSsIxeSsIx Join Date: 2003-09-01 Member: 20472Members
is there a way to automatically have a script execute depending on what alien u are?..

Comments

  • MrRadicalEdMrRadicalEd Turrent Master Join Date: 2004-08-13 Member: 30601Members
    No.. not currently. I always wished it was like TFC with the setinfo ec "0" setting.

    You <i>can</i> have it scripted though..
  • ReKReK Join Date: 2004-08-30 Member: 31058Members, Constellation, Reinforced - Shadow, WC 2013 - Silver
    Right now, the only was is to not use the popup menu and bind the gestate impulse to a key, along with exec fade.cfg or whatever.
  • SinSpawnSinSpawn Harbinger of Suffering Join Date: 2002-11-12 Member: 8359Members
    What!

    You people are crazy, of course you can...simpletons..

    <!--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 "1" "skulk"
    bind "2" "gorge"
    bind "3" "lerk"
    bind "4" "fade"
    bind "5" "onos"

    alias skulk "impulse 113;echo Devolving to [Skulk];wait;developer 1;echo Scripts made by SinSpawn"

    alias gorge "impulse 114;developer 1;echo Evolving [Gorge];wait;developer 1;echo Scripts made by SinSpawn"

    alias lerk "impulse 115;developer 1;echo Evolving to [Lerk];wait;developer 1;echo Scripts made by SinSpawn"

    alias fade "impulse 116;developer 1;echo Evolving to [Fade];wait;developer 1;echo Scripts made by SinSpawn"

    alias onos "impulse 117;developer 1;echo Evolving to [Onos];wait;developer 1;echo Scripts made by SinSpawn"

    OR to not make it useless

    alias skulks "impulse 113; exec skulk.cfg"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->

    I'm sure the last one will work, simple as that...and you thought it couldn't be done. Works with blockscripts on.

    Just if you didn't figure it out, I change lifeforms with a change of a button not the mouse menu.
  • ReKReK Join Date: 2004-08-30 Member: 31058Members, Constellation, Reinforced - Shadow, WC 2013 - Silver
    <!--QuoteBegin-ReK+Feb 21 2005, 05:34 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (ReK @ Feb 21 2005, 05:34 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> Right now, the only was is to not use the popup menu and bind the gestate impulse to a key, along with exec fade.cfg or whatever. <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    ^^

    Read other ppl's posts before you insult them.
  • eSsIxeSsIx Join Date: 2003-09-01 Member: 20472Members
    i am also having trouble with this script i bound a button to execute the script but everytime i hit the button i bring up console and it says couldnt execute "blah.cfg"

    heres the script

    alias +leap "slot3;wait;+attack;wait;-attack"
    alias -leap "wait;lastinv"

    bind "mouse2" +leap

    is that right?
  • ReKReK Join Date: 2004-08-30 Member: 31058Members, Constellation, Reinforced - Shadow, WC 2013 - Silver
    wth is blah.cfg? It's not mentioned anywhere in that code. Post your whole userconfig.cfg (or whatever cfg that script is in) and I can help.

    On a side note, you left out the quotes arounf +leap on the last line.
  • eSsIxeSsIx Join Date: 2003-09-01 Member: 20472Members
    edited February 2005
    i made a script i named it skulk.cfg and i bound it. but everytime i hit the button to exec the script it says it couldnt exec skulk.cfg is there something wrong with this script?

    alias +leap "slot3;wait;+attack;wait;-attack"
    alias -leap "wait;lastinv"

    bind "mouse2" "+leap"

    i use this script for fade and it works like a charm it works by holding mouse2 and pressing mouse1 and it blinks...let go of mouse2 and it starts to swipe..
    i was figuring it may work with skulk bite and leap

    if i add the aliases threw the console it works fine only that clicking mouse2 just leaps and clicking mouse1 bites...there is no holding mouse 2 involved with the skulk
  • MrRadicalEdMrRadicalEd Turrent Master Join Date: 2004-08-13 Member: 30601Members
    <!--QuoteBegin-eSsIx+Feb 21 2005, 07:52 PM--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (eSsIx @ Feb 21 2005, 07:52 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> i made a script i named it skulk.cfg and i bound it. but everytime i hit the button to exec the script it says it couldnt exec skulk.cfg is there something wrong with this script?

    alias +leap "slot3;wait;+attack;wait;-attack"
    alias -leap "wait;lastinv"

    bind "mouse2" "+leap"

    i use this script for fade and it works like a charm it works by holding mouse2 and pressing mouse1 and it blinks...let go of mouse2 and it starts to swipe..
    i was figuring it may work with skulk bite and leap

    if i add the aliases threw the console it works fine only that clicking mouse2 just leaps and clicking mouse1 bites...there is no holding mouse 2 involved with the skulk <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
    First, check to see if your custom cfg file isn't saved as *.cfg.txt

    Secondly, you're not using that alias as originally intended. It should, with a press and hold of mouse2, switch to slot3 and attack once, and upon letting go of mouse2 return you to your last selected weapon.

    Instead you're just holding down mouse2 to have slot3 selected and attack with mouse1. You can achieved the same effect with pressing and holding down your slot3 key while attacking or:

    <!--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 +onpress.blink "slot3"
    alias -onpress.blink "lastinv"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
  • eSsIxeSsIx Join Date: 2003-09-01 Member: 20472Members
    the only thing i dont get is when i just put the aliases threw console without using the script it will work fine...just i dont need to hold mouse 2 anymore like i do with the fade i just click mouse2 and it leaps and i just click mouse 1 and it bites..if there is anyway of changing the script so it does as i explained above that would neato
  • MrRadicalEdMrRadicalEd Turrent Master Join Date: 2004-08-13 Member: 30601Members
    <!--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 +onpress.slot3 "slot3"
    alias -onpress.slot3 "lastinv"
    bind mouse2 +onpress.slot3<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->

    Press and hold mouse2 and you select slot3. Let go of mouse2 and your last slot is selected. That's how you used it for the Fade right?
  • eSsIxeSsIx Join Date: 2003-09-01 Member: 20472Members
    well your script works but i can only use it if i put it in sepratley into the console..it wont exec the skulk.cfg for some reason
  • MrRadicalEdMrRadicalEd Turrent Master Join Date: 2004-08-13 Member: 30601Members
    how are you executing the file? What errors does the console report on?

    Make sure the file ISN'T saved as <b>skulk.cfg.txt</b>
  • eSsIxeSsIx Join Date: 2003-09-01 Member: 20472Members
    edited February 2005
    it doesnt report any errors it just says it couldnt execute skulk.cfg and no its not a .txt either...ill try remaking the config see if that helps any
  • MrRadicalEdMrRadicalEd Turrent Master Join Date: 2004-08-13 Member: 30601Members
    make sure it's in the NS directory too.. there's not a whole lot of reasons for the file to not execute other than non-existant or wrong file extention.
  • eSsIxeSsIx Join Date: 2003-09-01 Member: 20472Members
    well i got it to work all i did was remake the config...i dont understand why it didnt work in the first place though it was config..well anyways thnx for your help MrRadicalEd
  • DragonMechDragonMech Join Date: 2003-09-19 Member: 21023Members, Constellation, Reinforced - Shadow
    If snyone wants it, I have a script that cycles through the alien lifeforms and boots up the appropriate config for each class (fade.cfg, etc.) This requires an echo.txt file - just create a blank text document called echo.txt and put it in your /ns folder - but it lets you cycle between the forms and evolve with three keys (one key moves to higher level lifeforms, the other lower level lifeforms, and a third key to evolve). Enjoy. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile-fix.gif' border='0' style='vertical-align:middle' alt='smile-fix.gif' /><!--endemo-->

    <!--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-->//Alien Lifeform Selector Script
    //This lets you cycle between alien lifeforms and gestate to them with a few keys.
    //It also will execute individual alien configs.
    alias dev0 "developer 0"
    alias dev1 "developer 1"
    alias evolve "evskulk"
    alias evdn "selskulk"
    alias evup "selgorge"
    alias selectedevolution "selSkulk"
    alias selskulk "dev1; motdfile echo.txt; motd_write Skulk selected; MOTD; motdfile motd.txt; dev0; alias selectedevolution selskulk; alias evdn aelSkulk; alias evup selgorge; alias evolve evskulk"
    alias selgorge "dev1; motdfile echo.txt; motd_write Gorge selected; MOTD; motdfile motd.txt; dev0; alias selectedevolution selgorge; alias evup selLerk; alias evdn selskulk; alias evolve evgorge"
    alias selLerk "dev1; motdfile echo.txt; motd_write Lerk selected; MOTD; motdfile motd.txt; dev0; alias selectedevolution sellerk; alias evup selfade; alias evdn selgorge; alias evolve evlerk"
    alias selFade "dev1; motdfile echo.txt; motd_write Fade selected; MOTD; motdfile motd.txt; dev0; alias selectedevolution selfade; alias evup selonos; alias evdn sellerk; alias evolve evfade"
    alias selOnos "dev1; motdfile echo.txt; motd_write Onos selected; MOTD; motdfile motd.txt; dev0; alias selectedevolution selonos; alias evdn selfade; alias evup selOnos; alias evolve evonos"
    alias evskulk "alias evolve evskulk; impulse 113; exec skulk.cfg; dev1; motdfile echo.txt; motd_write Evolving to Skulk, loading Skulk.cfg; MOTD; motdfile motd.txt; dev0"
    alias evgorge "alias evolve evGorge; impulse 114; exec gorge.cfg; dev1; motdfile echo.txt; motd_write Evolving to Gorge, loading Gorge.cfg; MOTD; motdfile motd.txt; dev0"
    alias evlerk "alias evolve evlerk; impulse 115; exec lerk.cfg; dev1; motdfile echo.txt; motd_write Evolving to Lerk, loading Lerk.cfg; MOTD; motdfile motd.txt; dev0"
    alias evfade "alias evolve evfade; impulse 116; exec fade.cfg; dev1; motdfile echo.txt; motd_write Evolving to Fade, loading Fade.cfg; MOTD; motdfile motd.txt; dev0"
    alias evonos "alias evolve evonos; impulse 117; exec onos.cfg; dev1; motdfile echo.txt; motd_write Evolving to Onos, loading Onos.cfg; MOTD; motdfile motd.txt; dev0"
    bind "Key1" "evdn"   //Selects the next lowest lifeform
    bind "Key2" "evup"   //Selects the next highest lifeform
    bind "Key3" "evolve" //Evolves to selected lifeform and executes associated config.<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
Sign In or Register to comment.