PDA

View Full Version : How do you make objectives and add music?


Marth
11-10-2002, 01:31 AM
How do you make objectives and add music?
I can't find it in the tutorial, i use gtk radiant.

War Master
11-10-2002, 02:01 AM
It's best to go with dynamic music because it goes with the flow of the action. Here's how to do it, extract dms.dat from assets0.pk3. Open it up with notepad. Scroll down near the bottom and it'll be self explanatory how to do it. If for some reason you don't catch on here's 2 examples

Mymap
{
explore ImpBaseE_explore
action ImpBaseE_action
}

or

Mymap
{
uses kejim_base
}

Save it and make sure it's in a folder called ext_data in your base folder.

For objectives, you have to do some scripting. Extract objectives.sp from assets2.pk3. With objectives you have to rewrite the existing ones. Here's an example

{
REFERENCE KEJIM_POST_OBJ1
TEXT_LANGUAGE1 "Investigate the abandoned Imperial outpost."
}

changed to

{
REFERENCE KEJIM_POST_OBJ1
TEXT_LANGUAGE1 "Kill anyone in sight".
}

The reason why you have to use the existing refrences is because with BehavED you can only chose the objectives from the original maps in the game. The objectives are manipulated through scripts with Hide, show,succeeded and failed commands.

//Generated by BehavEd

rem ( "comment" );

affect ( "kyle", /*@AFFECT_TYPE*/ FLUSH )
{
set ( /*@SET_TYPES*/ "SET_OBJECTIVE_SHOW", /*@OBJECTIVES*/ "KEJIM_POST_OBJ1" );
}

Marth
11-27-2002, 10:58 PM
I cant see dms.dat

seks03
11-28-2002, 03:00 AM
AND HOW DO YOU ADD MUSIC TO A MAP?

Gonkish
11-28-2002, 03:37 AM
go into your map, select any brush (NOT an entity), and hit n, then add the "music" key, with the value "music\<musicfilenamehere>" (without the quotes). You can see the music filenames simply by opening assets0.pk3 in winzip or whatever and sampling them..

Leslie Judge
11-28-2002, 07:10 PM
Actually you don't have to select a brush. It is enough if you deselect everything.

Marth
11-28-2002, 09:22 PM
COOOL thats it!? awsome!

What about objectives? cause i can't find that file either that has to be extracted.

Marth
11-28-2002, 09:57 PM
That brush thing didn't work, however i did find dms.dat but i can't save it in the ext_data folder any sugestions how to save it?

says it can't save their...

Leslie Judge
11-30-2002, 01:26 PM
objectives.sp is in the assets1.pk3 (and assets2.pk3) in "strip" directory.

You can't save dms.dat into base\ext_data if it doesn't exist. So make sure you have that folder first and try to save the file after.