nFlame Posted April 17, 2003 Posted April 17, 2003 what would the command be to switch from blue sabre mode to red sabre mode in 1 command?
nFlame Posted April 18, 2003 Author Posted April 18, 2003 that runs into a problem. i would need to go from yellow to blue then to red with 2 commands like, i need it to be specifically switching.
nFlame Posted April 18, 2003 Author Posted April 18, 2003 alright, is it possible to cycle backwards at least?
nFlame Posted April 18, 2003 Author Posted April 18, 2003 thx for your help. i was trying to makea script for jk2. im new to scripting in jk2, how would aliases work with jk2? as in what file would they have to be placed in?
razorace Posted April 18, 2003 Posted April 18, 2003 You're welcome. Sorry, but I don't know anything about scripting. Use google to find out.
nFlame Posted April 18, 2003 Author Posted April 18, 2003 tried, the only results i get are for mapping and the likes
UDM Posted April 18, 2003 Posted April 18, 2003 /bind <key> <command> (dont include the <> when typing in console)
babywax Posted April 19, 2003 Posted April 19, 2003 I haven't scripted in a while... but it is very doable, especially since it always goes back to blue stance, what you do is replace the normal saber mode switch with a new alias, and keep track of the stances, like so: alias cycle "saberAttackCycle;" alias cycleT "cycle; cycle;" alias saberCycle "saberSwitchYellow;" alias saberSwitchBlue "switchBlue" alias saberSwitchYellow "switchYellow" alias saberSwitchRed "switchRed" alias switchBlue "switchBlueO; alias saberCycle saberSwitchYellow;" alias switchBlueO "cycle; alias switchBlue switchBlueT;" alias switchBlueT "cycleT; alias switchBlue switchBlueThree; alias switchYellow switchYellowO; alias switchRed switchRedT;" alias switchBlueThree "" alias switchYellow "switchYellowO; alias saberCycle saberSwitchRed;" alias switchYellowO "cycle; alias switchYellow switchYellowT; alias switchBlue switchBlueT; alias switchRed switchRedO;" alias switchYellowT "cycleT; alias switchYellow switchYellowThree; alias switchBlue switchBlueT; alias switchRed switchRedO;" alias switchYellowThree "" alias switchRed "switchRedO; alias saberCycle saberSwitchBlue;" alias switchRedO "cycle; alias switchRed switchRedT; alias switchBlue switchBlueO; alias switchYellow switchYellowT;" alias switchRedT "cycleT; alias switchRed switchRedThree; alias switchBlue switchBlueO; alias switchYellow switchYellowT;" alias switchRedThree "" This way saberSwitchBlue/Red/Yellow will switch to each corresponding color. Haven't tested it, never even really scripted much for JK2 but it should work. Also, just updated it because I forgot, saberCycle will cycle between saber styles just like the normal saberAttackCycle would.
razorace Posted April 19, 2003 Posted April 19, 2003 That probably won't work. I think you have to pause briefly inbetween saber stance changes.
babywax Posted April 19, 2003 Posted April 19, 2003 Not in my experience, but if you have to you can add some waits in, probably about 3 but maybe more depending on your machine.
babywax Posted April 19, 2003 Posted April 19, 2003 TADA! Unknown command: alias Don't think it's possible without aliases sorry.
Wudan Posted April 19, 2003 Posted April 19, 2003 If I recall, alias is for the original Quake. Try using "set" but I'm not certain if that'll work. I just used BIND.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.