Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

SCRIPTS here (post & request thread)

Page: 16 of 19
 Derogate
12-23-2002, 7:48 PM
#751
i knwo it will lag me, but if i put a "wait 50 " in there i'd be ok. its just for saber colors. but holding down the button for continuous scrolling has already been done, i want a challenge bu need to know if it is even possible ot do a continous loop from a toggle.

thnx
 ToppDog
12-24-2002, 1:22 AM
#752
Not sure. I know it works for walking, but I think that's because it toggles the yes/no option in the game menu without opening it. Since all the other options are designed to be bound to a key I'm not sure that it can be made into a looping toggle without holding down the key. Sounds interesting though.

It may be possible if there is a way to program a script to automatically repeat itself at the end. Then you could possibly have one key to bind & execute the script & another to unbind the first key stopping the script from continuing. This is total speculation though & I have never tried anything like it. Maybe some of the other guys have done something similar that might be of help.
 Iynx
12-29-2002, 3:42 AM
#753
Can some one give me the script for changing my name. I want it to do something like:
I
Iy
Iyn
Iynx
-Iynx-
--Iynx--
-Iynx-
Iynx

With maybe a second wait between each one? So It flash I, then Iy, then Iyn, and so on and then finally get's back to Just plain Iynx. Can that be done?


-Iynx
 ToppDog
12-29-2002, 10:32 AM
#754
Yes that one would be very easy to do I think. Try something like this:

bind x "name I; wait 3000; name Iy; wait 3000; name Iyn; wait 3000; name Iynx"

anyway, you get the idea. You can adjust the wait # & add in all the other changes to your name as you wish.
 Dark Scripter
12-29-2002, 5:09 PM
#755
http://www.jk2bind.ravencommunity.net/forum/index.php)

JK2's version off the bind if anyone can spare the time come on over and have a chat and post some of your nice scripts. Im in the process of posting about 10 of mine, just ironing out a few bugs. Hope To C Ya There
 thehomicidalegg
12-30-2002, 4:40 PM
#756
i've seen several posts at the valley and here asking about the rainbow sabre colour taunt in Vulcanis Adminmod:
you can look HERE (http://www.lucasforums.com/showthread.php?s=&threadid=86578), or as reference:

set saber1 "amtaunt; saber1 0; wait 5; vstr saber2"
set saber2 "color1 1; wait 5; vstr saber3"
set saber3 "color1 2; wait 5; vstr saber4"
set saber4 "color1 3; wait 5; vstr saber5"
set saber5 "color1 4; wait 5; vstr saber6"
set saber6 "color1 5; wait 5; vstr saber7"
set saber7 "color1 0"
bind x "vstr saber1"
 Tiberius69
12-30-2002, 11:24 PM
#757
put this in autoexec.cfg:

set blue_special "-moveleft;-moveright;-moveup;-movedown;+movedown;-back;-forward;+forward;+attack;wait 2;-attack;-forward;-movedown"

set yellow_special "-back;-forward;+forward;-movedown;-moveup;+moveup;+attack;wait 2;-attack;-moveup;-forward"

set red_special "+attack;wait 90;-moveleft;-moveright;-back;-forward;+forward;wait 2;-movedown;-moveup;+moveup;wait 2;-moveup;-forward;-attack"

set blue_stance "saberAttackCycle;bind mouse2 vstr blue_special;bind mouse3 vstr yellow_stance"

set yellow_stance "saberAttackCycle;bind mouse2 vstr yellow_special;bind mouse3 vstr red_stance"

set red_stance "saberAttackCycle;bind mouse2 vstr red_special;bind mouse3 vstr blue_stance"

set reset_all "bind mouse2 vstr blue_special;bind mouse3 vstr yellow_stance"


type thse into the console when you are in a game:

bind mouse2 "vstr blue_special"
bind mouse3 "vstr yellow_stance"
bind PGDN "vstr reset_all"


Ok, what this little badboy does is make your mouse2 button the "stance special move" button and the mouse3 button a toggle for the mouse2 special move and your stance at the same time. So, when you choose light stance, you get the blue special move on the mouse2 button, when you choose yellow, you get the yellow special on the mouse2 button, etc...

To make it work and be in synch, you change to the blue stance, press the PGDN to reset and then off you go. Do this right when you spawn. If you dont reset and ended the last game in a stance other than blue, the mouse2 button will call the wrong special move script.

The blue special and yellow special pretty much work under all conditions and you probably won't need to tweak. As mentioned earlier, the red special "wait 90" may have to be lowered or raised to something that is more proportional to the framerate you are getting. The 90 is the number of game "ticks" and the number of ticks per second varies depending on your computer hardware.

Have fun, this script helped me not get totally upset with the pros out there killing me at will. I still couldn't kill the really good players very often, but at least I felt like I was becoming the king of the newbies and I was getting compliments from the good players. I probably would have quit without having this script because the frustration level was so high at first and the learning curve so high.

One thing to remember is that other than the blue special, which I still use, the yellow and red still take a measure of timing, aim, and dexterity to perform correctly. For instance, the yellow script will execute the move, BUT, you have to have the opponent in your reticule (it has to be red too) when you push the button for the move to work. The yellow and red special script also will not stop until executed completely, no turning back. I took great care to avoid stops in movement, but every so often the yellow and red will cause your movement keys to get out of state and you can't move in a certain direction and sometimes the script won't execute the move. When either happens, just move around a little in all directions (quick circle does it) as fast as you can and try again.

Good Fighting!!!
 SMASHED!
01-02-2003, 4:52 PM
#758
Just got me a couple questions:

1) How do you kiss someone (in the game)? It's happened to me a few times...

2) How do you make your lightsaber spin in mid-air in your palm?

3) How do you sit?

4) How do you bind a kick?
 Admiral Derski
01-03-2003, 3:23 PM
#759
Ok here goes, I was playing on my 1.02 Server last night when someone joined my server that did something to irritate the one of the other admins enough to kick him. Well said person rejoined and threatnend to lag the server out if it happened again. well needless to say he was kicked yet once again. (no ban mind you) anyways shortly there after my server started to lag horribly and he joined again asking us how we liked the lag. (ruined the game mind you) Now im not sure how he did it so I exited out back to the console and say that I kept getting client connects left and right with high pings, tho no one ever did connect. Anyways I suspect he was using some sort of script to spam my server from console when not actually connected or something, which is the only thing I could think of. Do any of you master scripters know what or how he was doing it?? I dont really want to know How, as in whats the script more of what it was that was happening to cause the lag to try to prevent it. or even better any ideas on how to prevent it, passwording and kicking didnt seem to solve it either. If its something that shouldnt be posted here Please feel free to PM or email me at dsup1@hotmail.com as he said if he see's the server online he will continue to do it. :confused: Thanks guys
 Sheba
01-03-2003, 4:11 PM
#760
Hi @ all

I'm just searching for a script, that allows me to load presets of forcepowers.
I.E. let me change from light- to dark forces. I know that I have to respawn to make the settings work ... but I dont want to use the menu to make the changes, cause it lasts too long.

Another reason is, that there are too many Mods out there ... and if I change servers ... all my forcesettings are rubbish ...

So if any of you elitescripters can create this ... I would be very pleased.

e-mail: Sheba@Katana-Clan.de

btw ... I wouldn't flame about people using movescripts ... I would just leave the server ...
 ToppDog
01-03-2003, 9:14 PM
#761
Originally posted by SMASHED!
Just got me a couple questions:

1) How do you kiss someone (in the game)? It's happened to me a few times...

2) How do you make your lightsaber spin in mid-air in your palm?

3) How do you sit?

4) How do you bind a kick?

Other than the kick those are called emotes & are part of a certain mod & the read me file for it tells you how to do them. They won't work in the default game.

As for the kick, it is done by pressing jump fast twice & there is advantages to doing it manually as you can vary it somewhat depending on the situation. but as a bind I think it would be pretty simple.

bind x "+moveup; wait 10; +moveup"

That's a rough guess & you may need to adjust the wait number a bit. Also, I'm not sure if there needs to be any "-moveup" commands in there or not. If it doesn't work try it this way.

bind x "+moveup; -moveup; wait 10; +moveup; -moveup"
 12345678
01-04-2003, 4:46 AM
#762
hi i have isp probs that limit me to like four lines per post, could some kind soul take this (http://66.227.96.58/showthread.php?s=&threadid=88324) and put it here in 1 post? its a script to set light, medium, and heavy stances to three seperate keys. thx in advance.
 12345678
01-04-2003, 6:21 AM
#763
bind SHIFT "vstr nextpose"
bind a "vstr nextroll"
bind SPACE "+moveup"
set nextpose "vstr crouch"
set nextroll "vstr standroll"
set crouch "toggle cl_run;wait 20;+movedown;wait 10;toggle cl_run;set nextpose vstr stand;set nextroll vstr crouchroll"
set crouchroll "-movedown;wait 30;+movedown"
set stand "-movedown;set nextpose vstr crouch;set nextroll vstr standroll"
set standroll "+movedown;wait 5;-movedown"
 12345678
01-04-2003, 6:24 AM
#764
^^^ thats a script to seperate roll and duck into two buttons. shift toggles between crouch and stand. a rolls from either position if you press forward. the problem is space, i cant for the life of me figure out how to make it stand if crouching, or jump if standing. i tried all the usual stuff, nada. anyone?
 ToppDog
01-04-2003, 8:51 PM
#765
This isn't really a script but maybe some of you guys know this. What is the command to stop the 3rd person camera delay in Single Player. The "camerOrbitDelay 0" works in multiplayer but not in singleplayer. Any ideas?
 nobodycares
01-09-2003, 12:50 AM
#766
I've been trying to create a toggle script for using the current force power repeatedly... as in this script for constant hitting/saberlock breaking:
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
|set "repattack" "vstr at1" | |set "at1" "+attack; set "repattack" "vstr at2"" |
|set "at2" "-attack; set "repattack" "vstr at1"" |
|bind r vstr "repattack" |
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
I've tried replacing the +/- attack with force_use or whatever the command is... but it only does once and wont let me do anything else til i've untoggled it... HELP ME
 nobodycares
01-09-2003, 12:52 AM
#767
well crap, i try to make a nice little box and it screws it all up... this was the code i posted:
set "repattack" "vstr at1"
set "at1" "+attack; set "repattack" "vstr at2""
set "at2" "-attack; set "repattack" "vstr at1""
bind X vstr "repattack"


oooh look at me! i'm ranked bantha fodder! how exciting!
 ToppDog
01-09-2003, 1:34 AM
#768
you can also do it as a simple keybind & it may work faster,

bind x "+attack; -attack"
 mark_xp
01-09-2003, 10:54 AM
#769
how much hassle? would be a script that let you "jump + roll + attack"

Plz


Mark_xp
 ToppDog
01-09-2003, 3:20 PM
#770
Originally posted by mark_xp
how much hassle? would be a script that let you "jump + roll + attack"

Plz


Mark_xp

It wouldn't be hard to make, but because of the timing issues that always change due to ping, comp speed, connection, etc. you would probably always be adjusting the "wait #" commands to keep it working, possibly every few minutes with fluctuating ping. As you can see that's more hassle than it's worth.

It might be easier to do this manually, as you have more flexibility in the direction & length/height of the jump, the direction of the roll, & even the type of attack.

Post exactly what you are trying to do & we can get a better idea of what you want.
 mark_xp
01-10-2003, 4:54 AM
#771
Hi there,

What i'm trying to do is :- you see an opponent facing the other way, now instead of a"Stab in the back" which is easiest, i want the element of suprise.
I want to be able to jump over the victim, roll in mid air and sort of execute the attack when the roll is finished or near finished. that's all - nothing much!

I usually play on ctf_maps on elite-force.gamesunited.com and ping about 65 (ADSL)

Thank's before hand.


Mark
 ToppDog
01-10-2003, 3:41 PM
#772
Originally posted by mark_xp
Hi there,

What i'm trying to do is :- you see an opponent facing the other way, now instead of a"Stab in the back" which is easiest, i want the element of suprise.
I want to be able to jump over the victim, roll in mid air and sort of execute the attack when the roll is finished or near finished. that's all - nothing much!

I usually play on ctf_maps on elite-force.gamesunited.com and ping about 65 (ADSL)

Thank's before hand.


Mark

Is the person facing away in front or behind you? It sounds like you don't want to do an actual roll but you want to "flip" over them & attack on the way down. This sounds like one that you would want to do manually as to be more flexible, but it might be bindable. Just for kicks try:

bind x "+forward; +moveup; wait 200; -forward; -moveup; +attack; -attack"

you may need to adjust the number of waits.
 mark_xp
01-13-2003, 4:22 AM
#773
ToppDog


Originally posted by ToppDog
Is the person facing away in front or behind you?

The victim will be in front and facing away!

It sounds like you don't want to do an actual roll but you want to "flip" over them & attack on the way down.

Preferably, I would like to have a roll in there aswell (i will be approaching from behind), so the victim would see the colour of my eyes as i strike him/her down.

If this is at all possible it would be very much appreciated.

Mark
 ToppDog
01-13-2003, 3:47 PM
#774
Well, there's a few things off with this scenario.

1. You say that your opponent is in front of you facing away from you, & you say that you don't want to do a backstab because that's too easy, but actually it that situation HE would be the one able to do a backstab instead of you because you are behind him instead of him behind you. You would have to quickly turn around to do one.

If you want the element of suprise in this scenario I would stay behind him where you are already & do a lunge or a DFA from behind. By the time you do a jump, & a roll, & then attack, there is no suprise.

Also you cannot roll while in the air with or without a script, so that won't work.

When you jump in any direction & hold down jump a little longer you do a flip which looks like a roll in midair. Is this is what you mean? If so you could try the one above & tweak it, but you'd still be better off trying to do it manually I think.
 ContactJ
01-13-2003, 7:31 PM
#775
Hello friends..
I need the scripts of hj(hyper jump) and uppercut u know...I read some of these forums but I couldn't fint what I want.The forum is too long.Please help if you know ...
 mark_xp
01-14-2003, 7:18 AM
#776
ToppDogg,

k, no worries!

I was hoping to do a "Lara Croft" type roll, but since you are'nt able to roll, i guess i'll stick with the force pull and cut the f*cker down, thanks anyway for trying!

Mark_xP
 remark 666
01-14-2003, 5:53 PM
#777
Jump+Roll+Attack...

why don't you just do Space+Crouch+Attack ? because you can't stop that script so I would just see you in the air, move to the side (you'd still be in the move) and uppercut you =/

it's easier to do combos on the keyboard than in scripts because scripts do limit your movement...
 SMASHED!
01-17-2003, 2:07 AM
#778
I'm having trouble with the kick script.

I've done this:

set "fkick" "+forward; +moveup; wait; -moveup; wait; +moveup; wait; -moveup; -forward" bind "key" "vstr fkick"

I can get it working though the prob is I can't walk forward whenever I press the key I've binded it to.

Eg: When I press the up arrow to walk close enough to an ususpecting victim I can kick em, though I have to press the up arrow twice so I can kick them again...does this make sense? :confused:
 ToppDog
01-17-2003, 11:22 PM
#779
Originally posted by SMASHED!
I'm having trouble with the kick script.

I've done this:

set "fkick" "+forward; +moveup; wait; -moveup; wait; +moveup; wait; -moveup; -forward" bind "key" "vstr fkick"

I can get it working though the prob is I can't walk forward whenever I press the key I've binded it to.

Eg: When I press the up arrow to walk close enough to an ususpecting victim I can kick em, though I have to press the up arrow twice so I can kick them again...does this make sense? :confused:

It would work better if you took the forward command out & did that part manually. I would also change it so the script just did one kick only & you just pressed it again if you wanted to kick again.

Ideally you would be doing the kick manually also for variation & more flexibility, but if you're gonna bind it, it is best to have it by itself so you can combine other keypresses with it at the same time. You can use the kick key in combination with the 3 different direction keys & do the 3 different kinds of kicks, instead of the move script that only moves in one direction & would become very predictable.
 edmundli
01-25-2003, 11:40 AM
#780
hey i have not been able to work this out, but can anyone help me script the flying backstab (fbs or abs) in ver 1.03!!
 Rancilk
01-25-2003, 4:58 PM
#781
Hmm can any1 post the Red DFA script,i wanna try something u guys might like it =P
 Samuel Dravis
02-11-2003, 9:21 AM
#782
Look at this Useful tool (http://www.lucasforums.com/showthread.php?threadid=92181&goto=newpost). I think people in this forum will be particularly interested.
 ToppDog
02-12-2003, 2:29 AM
#783
Sounds interesting
 Samuel Dravis
02-17-2003, 1:05 PM
#784
JK2files.com just posted it - Get ConfigEd - First JK2 Script Editor (http://www.jk2files.com/file.info?ID=10629)

They gave it a exellent reveiw -


I've been awaiting one of these for a LOOOOOONGGGG time. Finally a config editor that looks like notepad but each and everyone Jedi Knight 2 command and all the bindable keys are on a list so you can EASILY make your bindlists, and scripts for use in the game. Excellent, I recommend it for all JK2 Players.
 SkinWalker
02-17-2003, 2:04 PM
#785
That can be placed in a script to make the model do the hand gesture for a audio taunt without playing the audio portion?


If anyone is aware of it... thanks in advance!

SkinWalker
 Kurgan
02-18-2003, 1:00 AM
#786
You mean other than the "come here" motion with the hand (also used with lightsaber challenges)?

Because IIRC, you can only use other emotions if its enabled in a mod...
 ToppDog
02-18-2003, 3:12 PM
#787
I don't know of any command for this. You would most likely have to alter some files (such as delete the sound file or edit it so it has no sound). You would probably have to do this for every model you use, & other people would still hear it even though you don't would be my guess.
 SkinWalker
02-18-2003, 11:28 PM
#788
Originally posted by Kurgan
You mean other than the "come here" motion with the hand (also used with lightsaber challenges)?


That's exactly the motion that I wanted to do... but without using a mod.... I suspect it can't be done, but I thought I'd ask.

SkinWalker
 Kurgan
02-19-2003, 12:59 AM
#789
You sure you weren't just asking how to "bind <key> taunt" / "bind <key> +taunt"?

That's how it would be done, normally, but they'll always hear the taunt sound, unless they have modded it to hear something else.


Then again, issue the lightsaber challenge and it should work silently if they accept (IIRC).
 Pacsta
02-19-2003, 5:40 PM
#790
I don' t know if this has been answered or not, I just didn't want to rad 6 pages lol.....sorry

But where do you put these .cfg files??? I can't find the folder or location of jk11mpconfig.cfg or is that same as jk2mpconfig.cfg???

If so, there are about 4 folders with that same file name in them...or am I missing something???

Thanks in advance
 Kurgan
02-19-2003, 6:05 PM
#791
IIRC, you put them in your "base" folder.

You can load a CFG file by going to the console (shift+tilde) and typing "exec [name of file].cfg" (without quotes).

You can also put a file in there called "autoexec.cfg" and the game will load those settings automatically when you load it up.

So in it (its just a text file after all) you can put other cfg files that it will automatically execute in the order you specify.

Don't mess with the jk2spconfig (or whatever its called) and mpconfig files that are there by default.. because those are just OUTPUT FILES that are automatically updated every time you load up the game.

If the settings are already how you like them, you can copy and paste from those files and put them into your autoexec.cfg file, and that will be it. And save a backup copy of the cfg's elsewhere in case you ever need to reinstall or something.

What I like to do is have three cfg files setup, one for SP, one for MP (lightside) and another for MP (darkside). I should probably whip one up for Holocron DM/Jedi Master because it requires so many buttons, but I don't know if I even have enough fingers for all the hotkeys. ; )
 Pacsta
02-19-2003, 8:39 PM
#792
Ok...I got all that...but when I go to execute it in the consol....it says it can't be executed??? Im lost :(

I was using that spin code up above.....Way back above lol

Can you walk me through it??? or too much time??

Thanks in advance.
 ToppDog
02-20-2003, 6:02 PM
#793
Originally posted by Pacsta
Ok...I got all that...but when I go to execute it in the consol....it says it can't be executed??? Im lost :(

I was using that spin code up above.....Way back above lol

Can you walk me through it??? or too much time??

Thanks in advance.

You may be referring to a move script that will no longer work with the new patch. We would have to see exactly what you are trying. If you post it here we can give it a looksee.
 Pacsta
02-20-2003, 6:47 PM
#794
I have got this far.....


I open up notepad....I try to paste that 5 spin move...I do that

Then I save it with a cfg extension into base folder

I run game and execute it....(i got that to work)

Then I enter a game and when I go to use it...the button that was binded to it in teh script when I pasted in notepad...don't work


Am I missing something to get the button working???

Am I not finishing the code??

Thanks in advance!
 ToppDog
02-21-2003, 12:20 PM
#795
sounds like you are placing the file correctly. It is most likely because the particular move you are trying to script will no longer work with the new patch. Try changing the actual script to something else just to test it, such as: bind x +taunt

If that works, then you are placing the files correctly but it's the move script itself that doesn't work. A lot of move scripts will not work. You could also post the script itself & people will tell you if it will work or not or how to adjust it.
 Pacsta
02-23-2003, 6:28 PM
#796
Well thanks....

ok...lets say I wanna use this one...

set spinmove "vstr spin"
set spin "seta cl_yawspeed "3000"; +left; set spinmove vstr normal"
set normal "seta cl_yawspeed "140"; -left; set spinmove vstr spin"

bind X "vstr spinmove"


What is wrong...what more has to be added....

I got this from way back in beggining of post by JaraDaj

Thanks in advance.
 Hellion29_29
02-23-2003, 10:36 PM
#797
Please refrain from cluttering up the thread with this spam.

Thanks. - The Management.
 Russ
02-24-2003, 4:25 AM
#798
Hi, all this scripting is cool, and I'm trying to decipher it. When you type "mod" into the console, it comes up with all these ones like mod_boxing and mod_funWallWalk. What are these, and what do they do?

Also, I have another question.
I want to be able to change my model and saber color

When I hit:
"1" - I want my skin to change to Darth Maul (darthmaul/default) and my saber color to be red.
"2" - Skin to Gran (gran/default) and my saber color to orange
"3" - Skin to Yellow battle droid and saber to yellow.
"4" - Skin to yoda, saber to green
"5" - Skin to reborn blue, saber blue
"6" - skin to desann, saber to purple.

Could someone write this out in script form for me?
Thx
 Samuel Dravis
02-24-2003, 10:54 AM
#799
The 'mod_' commands are from mods that you have downloaded and activated/put in base folder, like jedimod, forcemod etc.

The scripts for changing sabercolor/models are around here somewhere. Why don't you use the search button? Try searching for 'sabercolor'.
 Russ
02-24-2003, 2:21 PM
#800
Thx, Samuel Dravis, I'll be right on it. But still, I thought this was the Scripting Central Forum, could anyone else help?
Page: 16 of 19