ANNOUNCEMENT: This forum has been archived and its community moved to the Star Wars Gamer forum. mark read register faq members calendar

Thread: Scripts
Thread Tools Display Modes
Post a new thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 09-21-2002, 06:21 AM   #1
Join Date: Sep 2002
Posts: 3

Can someone tell me how to make a script
I found this but I don't understand it:
It says: "Open a new text and copy the sample script in it. After you save it, rename the file to "sample.cfg"."
What do they mean with "Open a new text"?

UnownT is offline   you may:
Old 09-21-2002, 12:43 PM   #2
Grumpy Old Man
NerfYoda's Avatar
Join Date: Mar 2002
Location: WTF?
Posts: 1,258
Notepad is the standard Windows text editor. My advice is you go look at your Windows help files some.

aka DJ Sith of the Jedi Academy
My car is made of Nerf.
NerfYoda is offline   you may:
Old 09-21-2002, 04:44 PM   #3
Kstar__2's Avatar
Join Date: Apr 2002
Location: a dreamers wish, wispering in the air
Posts: 4,155
the link doesn't work for me

Kstar__2 is offline   you may:
Old 09-22-2002, 01:29 AM   #4
thehomicidalegg's Avatar
Join Date: Jun 2002
Posts: 984
ok basically scripts are a series of command which performs certain actions or executes certain settings in game. you can put these scripts in a config file. to create a config file, all you need to do is write up your scripts in notepad, and save it as ######.txt(where ###### is the name you want) now you need to change the *.txt extension to *.cfg (NOTE: you need to have view file extension option checked in your window explorer preferences) put this in the BASE folder which is in your gamedata folder of your jk2 directory.

to execute the config, you open the console in game by pressing shift+`and type:

exec ######.cfg

It is always good to have an autoexec.cfg in your base folder. this will execute the scripts u included in that config file each time you run the game. you can create this by using the same method i mentioned above butu change the name to autoexec.cfg

Heres my autoexec.cfg

seta cg_drawfps 1
seta g_dismember "100"
seta cg_dismember "3"
exec Recordingdemos.cfg
exec Keyset.cfg
exec Models.cfg
exec Sabre.cfg
exec Name.cfg
exec Say.cfg
exec Forcechange.cfg
bind F1 "exec Light.cfg"
bind F2 "exec Dark.cfg"
bind F3 "exec Neutral.cfg"
bind F4 "exec NoForce.cfg"
bind F5 "exec Merc.cfg"
bind F6 "exec Ctf.cfg"
bind F9 "screenshot"
bind F12 "kill"
bind alt "+taunt"
bind ctrl "say lol"

basically you bind scripts to a key by using the format

bind <key> "<command>"

or more complicated:

set <actionname> "<command>"
bind <key> "vstr <actionname>"

you can use this form to bind more things to one key.

you should check out the sticky in the multiplayer strategy centre for a more in depth look at the script
thehomicidalegg is offline   you may:
Post a new thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > LucasForums Archive > Star Wars: Jedi Knight series > Game Discussion > Jedi Outcast > Scripts

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 04:25 AM.

LFNetwork, LLC ©2002-2015 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.