Comm Mode Scripting Troubles
Sinter
Join Date: 2003-03-05 Member: 14347Members, Constellation
<div class="IPBDescription">In Commander Mode...</div> Hi all,
I am trying to set up a nice .cfg file for commander mode. What I'd like to do is: when in commander mode, use the number pad to specify the building to create. Now, I wouldn't be content with just that ;-). I also want to set up an alias to change between the 3 modes (Basic Build Menu, Advance Build Menu, and Equip Menu).
This alias would re-bind all the number keys so that they corresponded with the button location on the comm console. So, the Basic Build Mode alias would bind the following: "7" on the number pad would be mapped to build a Res Tower, "8" would be a Spawn Partal, "9" would be an Armory, etc...
For example, to build a TF, you'd first press your Basic Build Menu button (z, in this case), and then press 4, because the TF button is in the second row down on the left (just like the number pad 4). To drop Mines, you'd press your button for Equip Mode (c, in this case), and then press 9.
I hope that a config like this would not be considered an exploit or cheat, because I find it very tedious to have to click through the menus every time you want to spawn something for the team.
Anyways, this is not where the problem lies. I seem to be having trouble getting some of the Impulse commands to work correctly. Perhaps some of you could lend me a hand here. I'm only trying to improve the gameplay for all of us :-) See <a href='http://www.ns-central.co.uk/impulselist.txt' target='_blank'>this</a> for all the Impulse commands.
<!--emo&::asrifle::--><img src='http://www.unknownworlds.com/forums/html/emoticons/asrifle.gif' border='0' style='vertical-align:middle' alt='asrifle.gif'><!--endemo--> <!--emo&::onos::--><img src='http://www.unknownworlds.com/forums/html/emoticons/tiny.gif' border='0' style='vertical-align:middle' alt='tiny.gif'><!--endemo--> <!--emo&::onos::--><img src='http://www.unknownworlds.com/forums/html/emoticons/tiny.gif' border='0' style='vertical-align:middle' alt='tiny.gif'><!--endemo--> <!--emo&::onos::--><img src='http://www.unknownworlds.com/forums/html/emoticons/tiny.gif' border='0' style='vertical-align:middle' alt='tiny.gif'><!--endemo-->
Thanks
-[CosaNostra]Sinter
I am trying to set up a nice .cfg file for commander mode. What I'd like to do is: when in commander mode, use the number pad to specify the building to create. Now, I wouldn't be content with just that ;-). I also want to set up an alias to change between the 3 modes (Basic Build Menu, Advance Build Menu, and Equip Menu).
This alias would re-bind all the number keys so that they corresponded with the button location on the comm console. So, the Basic Build Mode alias would bind the following: "7" on the number pad would be mapped to build a Res Tower, "8" would be a Spawn Partal, "9" would be an Armory, etc...
For example, to build a TF, you'd first press your Basic Build Menu button (z, in this case), and then press 4, because the TF button is in the second row down on the left (just like the number pad 4). To drop Mines, you'd press your button for Equip Mode (c, in this case), and then press 9.
I hope that a config like this would not be considered an exploit or cheat, because I find it very tedious to have to click through the menus every time you want to spawn something for the team.
Anyways, this is not where the problem lies. I seem to be having trouble getting some of the Impulse commands to work correctly. Perhaps some of you could lend me a hand here. I'm only trying to improve the gameplay for all of us :-) See <a href='http://www.ns-central.co.uk/impulselist.txt' target='_blank'>this</a> for all the Impulse commands.
<!--emo&::asrifle::--><img src='http://www.unknownworlds.com/forums/html/emoticons/asrifle.gif' border='0' style='vertical-align:middle' alt='asrifle.gif'><!--endemo--> <!--emo&::onos::--><img src='http://www.unknownworlds.com/forums/html/emoticons/tiny.gif' border='0' style='vertical-align:middle' alt='tiny.gif'><!--endemo--> <!--emo&::onos::--><img src='http://www.unknownworlds.com/forums/html/emoticons/tiny.gif' border='0' style='vertical-align:middle' alt='tiny.gif'><!--endemo--> <!--emo&::onos::--><img src='http://www.unknownworlds.com/forums/html/emoticons/tiny.gif' border='0' style='vertical-align:middle' alt='tiny.gif'><!--endemo-->
Thanks
-[CosaNostra]Sinter
Comments
Rabid Llama made a comm script like you described a few days after NS came out and I downloaded it <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
From the file:
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->
//Important:
// 7 is Basic Build Menu, 8 is Advanced, and 9 is Equip
// THE ABOVE MUST BE PRESSED *TWICE* TO WORK
// this is because of a bug/feature/something where hotkey commands refuse to work normally in aliases. Just press the key twice to switch menus, and it should work fine.
//If you only press it once, it will not switch to the menu, and the key bindings for the menu that it stays on will be gone. So one press = no buttons work, two presses = menu switches and works just great.
//The rest should only require one press to work
//The key layout is the same as the button layout in the window. The top left key (4) is the top left button in the menu (resource tower in the build menu), and so on.
//4,5,6, and + are the first row of items
//1,2,3, and - are the second row of items
// 0 and . are the last row of items (which is only ever two long)
<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
Yes, one of the problems I was having was the hotkey** not working in an alias. I'll take a look at that cfg file and see what I did wrong in mine <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif'><!--endemo-->.
Thanks again for your help.
<!--emo&::skulk::--><img src='http://www.unknownworlds.com/forums/html/emoticons/skulk.gif' border='0' style='vertical-align:middle' alt='skulk.gif'><!--endemo--> <!--emo&::skulk::--><img src='http://www.unknownworlds.com/forums/html/emoticons/skulk.gif' border='0' style='vertical-align:middle' alt='skulk.gif'><!--endemo--> <!--emo&::skulk::--><img src='http://www.unknownworlds.com/forums/html/emoticons/skulk.gif' border='0' style='vertical-align:middle' alt='skulk.gif'><!--endemo--> <!--emo&::sentry::--><img src='http://www.unknownworlds.com/forums/html/emoticons/turret.gif' border='0' style='vertical-align:middle' alt='turret.gif'><!--endemo-->
-[CosaNostra]Sinter