Da Basic Script Question?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Ace of Spades
Major
Posts: 291
Joined: Thu Jan 30, 2003 8:50 am
Location: West Coast, USA

Da Basic Script Question?

Post by Ace of Spades »

I've read that to start learning how to script, you need to view the ones that came with the game. How is this done? Also, when do you need to script and when do you not need to? Last question. Do you make one script file for everything that you script in your map or do you need to use multiple script files. Oh, one more, PRECACHE? Hmmm.....no clue what it's for. Thanks!

Ace

8)
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

You need a script in SP, but MP, you can add stuff like explosions, and OBJ maps.
Live to map, not map to live.
-mohaa_rox, .map
moderator
User avatar
Ace of Spades
Major
Posts: 291
Joined: Thu Jan 30, 2003 8:50 am
Location: West Coast, USA

Post by Ace of Spades »

Maybe I should ask one question at a time. How do I view the script files that came with the game?

Ace

:oops:
CHeesER
Corporal
Posts: 25
Joined: Wed Feb 19, 2003 2:55 am
Location: Canada

Post by CHeesER »

You can find the script(scr)files in the games pk3 files,found in your main or mainta folder

First the global scripts,they are in Pak0.pk3.
You can open the pk3 file with Winzip,or Winrar,or Pakscape.Anyone of these will work.
In the pk3 file ,find the global folder.In there are all the global scripts that you can call in your map script.

Second,Are the map scripts,they are in Pak5.pk3
Each map has its own script and precache script.So you do not need multiple scripts.

Precacheing is for the preloading of model tiki's

There are other scr files in the folders but those are the main ones to look at.

You can read scr, tiki, urc, shader, mus, cfg files with notepad,or any text editor.

As for when you need to script or not,in general if its going to do something besides just being there you need to add it to your map script

Reading the scr files is very hard if your new,have a look at them.But don't get discouraged ,try to learn something bit by bit,and keep reading the forums.
User avatar
Ace of Spades
Major
Posts: 291
Joined: Thu Jan 30, 2003 8:50 am
Location: West Coast, USA

Post by Ace of Spades »

Thank you for the wonderful information CHeesER and mohaa_rox. This is helping out alot! I will check out the Pak0 and Pak5 files and see what's going on in there, and I'm sure there will be more q's. Thanks again guys! Happy mapping!

Ace

:mrgreen:
Post Reply