LucasForums (
-   Jedi Outcast (
-   -   Scripts (

UnownT 09-21-2002 06:21 AM

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"?

Thanks ;)

NerfYoda 09-21-2002 12:43 PM

Notepad is the standard Windows text editor. My advice is you go look at your Windows help files some. :)

Kstar__2 09-21-2002 04:44 PM

the link doesn't work for me

thehomicidalegg 09-22-2002 01:29 AM

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

All times are GMT -4. The time now is 02:40 AM.

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