A Problem With Scripting In Ns3
evilwallpaper
Join Date: 2004-01-30 Member: 25745Members, Constellation
<div class="IPBDescription">echo command not working</div> does anyone know how to echo text in the new ns, i need to to tell me which chamber/voice comm i have sellected on my mouse wheel when i cycle through them. I used "developer 1" and "developer 0" in NS2 but it doesnt seem to work anymore and i have to keep checking back to the console to see what is selected.
heres the alien part of the script.
<!--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 MWHEELDOWN "abuild4"
bind MWHEELUP "abuild2"
bind MOUSE3 "impulse 91"
alias devon "developer 1"
alias defoff "developer 0"
alias abuild1 "mwdabd4; mwuab2; m31; devon; echo BUILD OFFENSIVE; defoff"
alias abuild2 "mwdab1; mwuab3; m32; devon; echo BUILD DEFENSIVE; defoff"
alias abuild3 "mwdab2; mwuab4; m33; devon; echo BUILD SENSORY; defoff"
alias abuild4 "mwdab3; mwuab1;m34; devon; echo BUILD MOVEMENT; defoff"
alias mwdab1 "bind MWHEELDOWN abuild1"
alias mwdab2 "bind MWHEELDOWN abuild2"
alias mwdab3 "bind MWHEELDOWN abuild3"
alias mwdab4 "bind MWHEELDOWN abuild4"
alias mwuab1 "bind MWHEELUP abuild1"
alias mwuab2 "bind MWHEELUP abuild2"
alias mwuab3 "bind MWHEELUP abuild3"
alias mwuab4 "bind MWHEELUP abuild4"
alias m31 "bind MOUSE3 "impulse 91""
alias m32 "bind MOUSE3 "impulse 92""
alias m33 "bind MOUSE3 "impulse 93""
alias m34 "bind MOUSE3 "impulse 94""
<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
everything works bar the echoing <!--emo&???--><img src='http://www.unknownworlds.com/forums/html//emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif' /><!--endemo-->
heres the alien part of the script.
<!--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 MWHEELDOWN "abuild4"
bind MWHEELUP "abuild2"
bind MOUSE3 "impulse 91"
alias devon "developer 1"
alias defoff "developer 0"
alias abuild1 "mwdabd4; mwuab2; m31; devon; echo BUILD OFFENSIVE; defoff"
alias abuild2 "mwdab1; mwuab3; m32; devon; echo BUILD DEFENSIVE; defoff"
alias abuild3 "mwdab2; mwuab4; m33; devon; echo BUILD SENSORY; defoff"
alias abuild4 "mwdab3; mwuab1;m34; devon; echo BUILD MOVEMENT; defoff"
alias mwdab1 "bind MWHEELDOWN abuild1"
alias mwdab2 "bind MWHEELDOWN abuild2"
alias mwdab3 "bind MWHEELDOWN abuild3"
alias mwdab4 "bind MWHEELDOWN abuild4"
alias mwuab1 "bind MWHEELUP abuild1"
alias mwuab2 "bind MWHEELUP abuild2"
alias mwuab3 "bind MWHEELUP abuild3"
alias mwuab4 "bind MWHEELUP abuild4"
alias m31 "bind MOUSE3 "impulse 91""
alias m32 "bind MOUSE3 "impulse 92""
alias m33 "bind MOUSE3 "impulse 93""
alias m34 "bind MOUSE3 "impulse 94""
<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
everything works bar the echoing <!--emo&???--><img src='http://www.unknownworlds.com/forums/html//emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif' /><!--endemo-->
This discussion has been closed.
Comments
Maybe upping it to developer 2 or higher. I did not try yet.
<span style='color:red'>***Locked.***</span>