Please complete the tutorial for creating a "mapname.script" file before attempting this tutorial. There are several things that need to be added to "mapname.script" when adding 1 or more objectives to a map. Only the non-specific objective stuff is discussed here. Three functions will be added to "mapname.script".
void InitObjectives();
void CompleteObjective(float index, entity p);
handle GetObjectiveMessage(float index);
void mapObject_mapname::InitObjectives()
{
sys.print("\n\n*****Loaded mapname Map Script*****\n\n");
//Do Initialization Stuff Here
}
void mapObject_mapname::CompleteObjective(float index, entity p)
{
//Handle Objective Completions
}
handle mapObject_mapname::GetObjectiveMessage(float index)
{
//Handle Objective Messages
return g_locStr_BadObjective;
}