[wip] Script Pack For Ns
DragonMech
Join Date: 2003-09-19 Member: 21023Members, Constellation, Reinforced - Shadow
Recently I've been compiling scripts I've found useful in NS, and I'd like to share it with my fellow forumites. I've attatched a .zip with a scripts .cfg file in it, and a readme with instructions. I'd like you guys to suggest any scripts I'm missing, and any improvements to my current scripts. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile-fix.gif' border='0' style='vertical-align:middle' alt='smile-fix.gif' /><!--endemo-->
Latest script pack version: 1.1 - added Jan 8, 2005.
v1.11 - Jan, 9th, 2005
v1.2 - Jan 17th, 2005
Latest script pack version: 1.1 - added Jan 8, 2005.
v1.11 - Jan, 9th, 2005
v1.2 - Jan 17th, 2005
Comments
<!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink-fix.gif' border='0' style='vertical-align:middle' alt='wink-fix.gif' /><!--endemo-->
What scripts are included?
oh you should be aware of the new work around to display text on screen, DragonMech. It's really helpful for toggles and such. It uses motd_write to display a message with developer enabled, but keep it from interfering with the stock motd.txt you simply switch motd files in the string:
developer 1;motd_write Hello word, whatever whatever..;developer 0
or to preserve the original motd
motdfile "echo.txt"
developer 1;motd_write Hello word, whatever whatever..;developer 0
motdfile "motd.txt"
neat, huh?
EDIT: Few more things, I was looking at the .cfg and you didn't make the change suggested by me and mentioned in the readme to the chat script.
<!--QuoteBegin--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->o Altered chat toggle so that it will not interfere with a custom hud_saytext_time value.<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
<!--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 chatoff "clear; hud_saytext_time 0; dev1; echo CHAT OFF; dev0; alias chatt chaton"
alias chaton "hud_saytext_time 5; alias chatt chatoff; dev1; echo CHAT ON; dev0"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
Nice sig MrRadicalEd
A) Combat Scripts
1) Quickleap (switches to leap, leaps, then swaps to bite - does not bite for you)
2) 2-shot & 3-shot pistol scripts
3) Pistol script where you fire when you press the button and when you release it
B) Movement Scripts
1) 3Jump
2) Skulk 3jump
3) Lerk Glide toggle script (my pride and joy <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile-fix.gif' border='0' style='vertical-align:middle' alt='smile-fix.gif' /><!--endemo-->)
4) Meta-blink
5) Duck toggle
6) Walk toggle
C) Communication Scripts
1) Medpack request Script
2) Ammo request
3) Voicecomm Toggle
4) Chat toggle
D) Misc. Scripts
1) Use Toggle
2) Netgraph 3 & scoreboard script (2 variants)
3) Icon removal script
@ redbaron: I've replaced the attatchment with a fresh .zip - see if it works.
@ MrRadicalEd: Yes I'd like to see your script and thank you for the MOTD hint - I'll play with that and see what I can make.
@ Urd: The echo command works fine if you alias the developer command like 'alias dev0 "developer 0" etc. Also, thanks for catching that mistake of mine - I had to restore an older version of my script file and I missed redoing that change.
*Post work edit*
MrEd, I've gotten the MOTD trick to work - I'll start adding it to my current scripts. Thank you. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile-fix.gif' border='0' style='vertical-align:middle' alt='smile-fix.gif' /><!--endemo-->
It works for me - have a look at my console when I use my voice toggle script:
I see - I didn't realize that it was supposed to put text on your screen.
o Added MOTD commands to display on-screen text. This will let you see things like 'Duck Toggle On' without having to open your console.
o Added crouch-jump scripts (2 versions).
o Added Sensitivity scroller script - lets you change your sensitivity on the fly.
o Added MrRadicalEd's Alien structure selector script, which lets you cycle through and build the 4 alien chambers with only a few keys.
o Reorganized the order of the scripts, added individual sections for each alien class, etc.
I'm waiting on Tyr to send me a yay/nay on adding his alien upgrade script before I release the next version. If anyone wants one of the mentioned scripts though, I'll be happy to post it. <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin-fix.gif' border='0' style='vertical-align:middle' alt='biggrin-fix.gif' /><!--endemo-->
One thing I do need it onos scripts - if you have any that help you play, please share them. <!--emo&::hive::--><img src='http://www.unknownworlds.com/forums/html/emoticons/hive5.gif' border='0' style='vertical-align:middle' alt='hive5.gif' /><!--endemo-->
EDIT: And is the download changed? It is the same file for me.
He posted it on a scripting forum a while ago, thats where I saw it.
It works for me - have a look at my console when I use my voice toggle script: <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
-HOOK?!?!
HE USES BUZZ HOOK, KILL HIM.
Glad to be back..
First post was a hackusation..weird.
alias d0 "developer 0"
alias e1 "motdfile echo.txt"
alias e2 " d1; motd; d0; motdfile motd.txt"
alias test "e1; motd_write This is a test!; e2"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
You need to make a echo.txt file in your ns folder, or cut out the motdfile bits to use the default file.
@ kardoffel: You need to have an echo.txt file in your ns folder, or your machine will lock up. To use a MOTD command, write 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-->dev1; motdfile echo.txt; motd_write Duck Toggle Enabled; MOTD; motdfile motd.txt; dev0;<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
alias -zenoleap "slot3; wait; +attack; wait; -attack; wait; +attack; wait; -attack"
i made that for myself when im lazy, its been a while since i used it, but i belive it has a bug.
all it does is xeno then befor you explode, leaps twice. this is all you can do, even with adren i didnt see a purpose for more.
hope its used <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
alias -zenoleap "slot3; wait; +attack; wait; -attack; wait; +attack; wait; -attack"
i made that for myself when im lazy, its been a while since i used it, but i belive it has a bug.
all it does is xeno then befor you explode, leaps twice. this is all you can do, even with adren i didnt see a purpose for more.
hope its used <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo--><!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
It does have a bug, but I fixed it. I also modified it slightly; this is how the entry in my script pack will read:
<!--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-->//XenoLeap Script
//This script lets you push a button to switch to Xeno, then release it to trigger xeno and
//leap at your targets. If you don't want to use Xeno, just swap to another weapon while
//holding down the selected key and you won't blow yourself up.
alias "w2" "wait; wait"
alias +xenoleap "weapon_divinewind"
alias -xenoleap "+attack; w2; -attack; wait; weapon_leap; w2; +attack; wait; -attack; w2; +attack; wait; -attack"
bind "Key" "+xenoleap"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
Here is the list of changes I've made that were included:
o Added XenoLeap Script
o Fixed wrong message being displayed in voice and chat toggle scripts bugt
o Added very-much-WIP guide to writing scripts
The last point is a project that I've only spent a few minutes on, but is already showing some progress. In essence, it's a beginner's guide to writing scripts that I've only written a couple of paragraphs of. I'd be happy for any criticism, suggestions, or people telling me to SUMF (shut up my face) because it's obvious I'm a n00b and have no idea what I'm talking about. <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile-fix.gif' border='0' style='vertical-align:middle' alt='smile-fix.gif' /><!--endemo-->
HE USES BUZZ HOOK, KILL HIM. <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
Actually '-hook' refers to the hookmod that lets a gorge throw a rappeling line of web - very fun, it out of character for gorges. <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
Place TF/PG/RT here + Request orders script?
Place TF/PG/RT here + Request orders script? <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
Voila:
//Building Call Script
//This script posts a message that you need a building, and alerts the commander.
alias needbuilding "say_team Comm I need a RT/PG/TF here; impulse 80"
bind "Key" "needbuilding"