lfnetwork.com mark read register faq members calendar

Thread: Scripts
Thread Tools Display Modes
Post a new thread. Add a reply to this 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
UnownT
 
Join Date: Sep 2002
Posts: 3
Scripts

Can someone tell me how to make a script
I found this but I don't understand it:
http://db.gamefaqs.com/computer/dosw..._scripting.txt
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
UnownT is offline   you may: quote & reply,
Old 09-21-2002, 12:43 PM   #2
NerfYoda
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: quote & reply,
Old 09-21-2002, 04:44 PM   #3
Kstar__2
chaos
 
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



+[size=0.5]http://kstar.deviantart.com[/size]
Kstar__2 is offline   you may: quote & reply,
Old 09-22-2002, 01:29 AM   #4
thehomicidalegg
 
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: quote & reply,
Post a new thread. Add a reply to this 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 > JediKnight 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 08:47 PM.

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