Offline |
Marine |
 |
Other duties:
Modder
Founder
|
Posts: 6832 Ribbons:
|
Here is the edited code. Path: \mcc\general_scripts\missionWizard\ File: missionWizardInit.sqf (snippet)//----------------- CREATE BRIEFINGS --------------------------------------------------------------------------private ["_night","_factionName","_music","_missionName1","_missionName2","_html","_control","_tempText"];_missionName1 = ["Desert","Oversized","Roguish","Smouldering","Cold","Flaring","Furious","Silver","Vengeance","Yellow","Red","Blue","White","Gold","Dark","Broken", "Morbid","Flying","Living","Swift","Evil","Fallen","False","Solitary","Broken","Alpha","Bravo","Charlie","Delta","Echo","Foxtrot"] call BIS_fnc_selectRandom ; _missionName2 = ["Storm","Lightning","Rain","Thunder","Tornado","Hurricane","Flood","Dragonfly","Ocelot","Cobra","Fiend","Father","Horse","Thorn", "Urgency","Snake","Serpent","Famine","Cage","Contempt","Priest","Stranger","Dagger","One","Two","Three","Zero","Arrow"] call BIS_fnc_selectRandom ; _night = if ((date select 3)>19 || (date select 3)<6) then {true} else {false}; _factionName = getText (configfile >> "CfgFactionClasses" >> _faction >> "displayName");//Locationif ((_center select 1) != "") then { _tempText = ["Attack On","The Battle For","Assault On","The Fight For"] call BIS_fnc_selectRandom ; _html = format ["<t size='1.1' color='#a8e748' underline='true' align='center'>Operation: </t><t size='1.1' color='#a8e748' underline='false' align='center'>%1 %2. %3 %4</t>",toupper _missionName1 ,toupper _missionName2 ,_tempText ,(_center select 1)];}else{ _html = format ["<t size='1.1' color='#a8e748' underline='true' align='center'>Operation: </t><t size='1.1' color='#a8e748' underline='false' align='center'>%1 %2.</t>",toupper _missionName1 ,toupper _missionName2 ];};//General_tempText = ["presence in the area has been increasing","have established a foothold in the area","forces are active in the area"] call BIS_fnc_selectRandom ; _html = _html + format ["<br/><br/><t size='0.8' color='#E2EEE0'>%1 %2.</t>",_factionName ,_tempText ];//_isCQBif (_isCQB ) then { _tempText = ["They have taken up defensive positions inside buildings","They are using civilian buildings to fortify themselves"] call BIS_fnc_selectRandom ; _html = _html + format ["<t size='0.8' color='#E2EEE0'> %1.</t>",_tempText ];};_html = _html + format ["<br/><t size='0.8' color='#E2EEE0'>HQ informs us that infantry are present. </t>",_factionName ];//_vehiclesif (_vehicles ) then { _html = _html + format ["<t size='0.8' color='#E2EEE0'>You may also encounter %1 technicals or soft vehicles. </t>",_factionName ];};//_armorif (_armor ) then { _html = _html + format ["<br/><t size='0.8' color='#E2EEE0'>Be aware that there may be %1 armored vehicles or even MBT's operating in the OP.</t>",_factionName ];};//_isRoadblocksif (_isRoadblocks ) then { _html = _html + format ["<br/><t size='0.8' color='#E2EEE0'>%1 forces have established hasty checkpoints on some of the roads leading in and out of the area.</t>",_factionName ];};//_isIEDif (_isIED || _isSB ) then { _html = _html + format ["<br/><t size='0.8' color='#E2EEE0'>Keep an eye out for anything that might look suspicious, as we believe that %1 may employ IEDs, or even suicide attacks. </t>",_factionName ];};//_isASif (_isAS ) then { _html = _html + format ["<t size='0.8' color='#E2EEE0'>The local civilians support %1, so be on the look out for any strange behavior. But keep civilian casualties to a minimum as the top Brass don't want to draw unnecessary attention.</t>",_factionName ];};//_stealthif (_stealth ) then { _html = _html +"<br/><t size='0.8' color='#E2EEE0'>This is an undercover operation behind enemy lines. Expect enemy reinforcements should they become aware of your presence.</t>";};_html = _html + format ["<br/><t size='0.8' color='#E2EEE0'>Go over your objectives, gear up and get ready.<br/>Mission is a go!</t>",_factionName ]; What does "OP" mean in the context of "Be aware that apparently there are some armored vehicles or even MBT's operating in the OP."? I've heard of "AO", meaning "Area of Operations". Path: \mcc\fnc\missionWizard\File: fn_MWCreateTask.sqf//======================================================MCC_fnc_MWCreateTask=========================================================================================================// Find the mission Wizard's center// Example:[_obj,_task,_preciseMarker] call MCC_fnc_MWCreateTask; // _obj = position, objectice position//_task = string, objective type//_preciseMarker = Boolean, true - precise task marker// Return - [taskName,Task pos]//========================================================================================================================================================================================private ["_obj","_task","_preciseMarker","_type","_stringName","_stringDescription","_pos","_objectName","_missionTime","_missionIntel","_indecator","_capturVar", "_stateCond","_name","_missionWherabouts"];_obj = _this select 0;_task = _this select 1;_preciseMarker = _this select 2;_name = FORMAT ["MCCMWObject_%1", ["MCCMWObject_",1] call bis_fnc_counter ]; _nameTask = FORMAT ["Objective %1:", ["",1] call bis_fnc_counter ]; //Global defines for briefings. _missionTime = [ "This morning", "Last night", "Yesterday", "A few days ago", "Last week" ]; _missionIntel = [ "From gathered intel", "According to satellite photos", "According to intel from a local informant", "According to info from High Command" ];_missionWherabouts = [ "in this location", "in this area", "somewhere in this area", "close to this location", "around here" ]; _pos = if (_preciseMarker ) then {getpos _obj } else {[((getpos _obj ) select 0) + (random 150 - random 150),((getpos _obj ) select 1) + (random 150 - random 150),((getpos _obj ) select 2)]};switch (_task ) do{ //Hostage case "Secure HVT": { if (side _obj != civilian ) then { _objectName = ([_obj ,"displayName"] call BIS_fnc_rankParams ) + " " + name _obj ; } else { _objectName = name _obj ; }; _stringName = FORMAT ["%2 Rescue %1", _objectName ,_nameTask ]; _stringDescription = FORMAT ["Task: Rescue %2. <br/><br/>%1 %2 was captured by enemy forces operating in the area.<br/><br/>%3 we believe that he is held captive <marker name='%5'>%4</marker>.<br/><br/>Find %2 and bring him home. " , _missionTime call BIS_fnc_selectRandom , _objectName , _missionIntel call BIS_fnc_selectRandom , _missionWherabouts call BIS_fnc_selectRandom , _stringName ]; //Create A task [[8, _stringName , _stringDescription , _pos ],"MCC_fnc_makeTaks",true,false] call BIS_fnc_MP ; //Give it public name [[[netid _obj ,_obj ], _name ], "MCC_fnc_setVehicleName", true, false] call BIS_fnc_MP ; //---Create A trigger--- //Fail - not alive _capturVar = FORMAT ['[[3, "%1", "", [0,0,0]],"MCC_fnc_makeTaks",true,false] spawn BIS_fnc_MP;',_stringName ]; _stateCond = FORMAT ['!alive %1', _name ]; [0, getpos _unit , [1,1], "NONE", "PRESENT", "RECTANGLE", name _unit , _capturVar ,0,2,_stateCond ,""] execVM MCC_path + "mcc\general_scripts\triggers\triggers_execute.sqf"; //Succeed - not hostage _capturVar = FORMAT ['[[2, "%1", "", [0,0,0]],"MCC_fnc_makeTaks",true,false] spawn BIS_fnc_MP;',_stringName ]; _stateCond = FORMAT ['(!captive %1) && (alive %1)', _name ]; [0, getpos _obj , [1,1], "NONE", "PRESENT", "RECTANGLE", name _obj , _capturVar ,0,2,_stateCond ,""] execVM MCC_path + "mcc\general_scripts\triggers\triggers_execute.sqf"; }; //Kill case "Kill HVT": { if (side _obj != civilian ) then { _objectName = ([_obj ,"displayName"] call BIS_fnc_rankParams ) + " " + name _obj ; } else { _objectName = name _obj ; }; _stringName = FORMAT ["%2 Kill or capture %1", _objectName ,_nameTask ]; _stringDescription = FORMAT ["Task: Kill or capture %2. <br/><br/>%3, HQ in their wisdom believe that since %1 %2 has been hiding <marker name='%5'>%4</marker>.<br/><br/>%2 is a most wanted HVT and should be considered armed and dangerous.<br/><br/>Capture him if possible, if not kill him. Either way, don't let him escape." , _missionTime call BIS_fnc_selectRandom , _objectName , _missionIntel call BIS_fnc_selectRandom , _missionWherabouts call BIS_fnc_selectRandom , _stringName ]; //Create A task [[8, _stringName , _stringDescription , _pos ],"MCC_fnc_makeTaks",true,false] call BIS_fnc_MP ; //Give it public name [[[netid _obj ,_obj ], _name ], "MCC_fnc_setVehicleName", true, false] call BIS_fnc_MP ; //---Create A trigger--- //Succeed alive _capturVar = FORMAT ['[[2, "%1", "", [0,0,0]],"MCC_fnc_makeTaks",true,false] spawn BIS_fnc_MP;',_stringName ]; _stateCond = FORMAT ['!alive %1 || (isplayer (leader group %1))', _name ]; [0, getpos _obj , [1,1], "NONE", "PRESENT", "RECTANGLE", name _obj , _capturVar ,0,2,_stateCond ,""] execVM MCC_path + "mcc\general_scripts\triggers\triggers_execute.sqf"; }; //destroy_tanks case "destroy_tanks": { _objectName = getText(configFile >> "CfgVehicles" >> typeof _obj >> "displayname"); _stringName = FORMAT ["%2 Destroy the prototype %1", _objectName ,_nameTask ]; _stringDescription = FORMAT ["Task: Destroy the prototype %2.<br/><br/>%1 HQ received intel suggesting that the enemy has obtained a prototype %2.<br/><br/>This is a game-changer and we must eliminate it by any means necessary.<br/>%3 the tank is hidden <marker name='%5'>%4.</marker>" , _missionTime call BIS_fnc_selectRandom , _objectName , _missionIntel call BIS_fnc_selectRandom , _missionWherabouts call BIS_fnc_selectRandom , _stringName ]; //Create A task [[8, _stringName , _stringDescription , _pos ],"MCC_fnc_makeTaks",true,false] call BIS_fnc_MP ; //Give it public name [[[netid _obj ,_obj ], _name ], "MCC_fnc_setVehicleName", true, false] call BIS_fnc_MP ; //---Create A trigger--- //Succeed alive _capturVar = FORMAT ['[[2, "%1", "", [0,0,0]],"MCC_fnc_makeTaks",true,false] spawn BIS_fnc_MP;',_stringName ]; _stateCond = FORMAT ['!alive %1', _name ]; [0, getpos _obj , [1,1], "NONE", "PRESENT", "RECTANGLE", name _obj , _capturVar ,0,2,_stateCond ,""] execVM MCC_path + "mcc\general_scripts\triggers\triggers_execute.sqf"; }; //destroy_aa case "destroy_aa": { _objectName = getText(configFile >> "CfgVehicles" >> typeof _obj >> "displayname"); _stringName = FORMAT ["%2 Destroy %1", _objectName ,_nameTask ]; _stringDescription = FORMAT ["Task: Destroy %2.<br/><br/>%1 one of our planes got shot down.<br/>HQ believes that a %2 is behind it.<br/><br/>This threat must be eliminated.<br/><br/>%3 the AA is operating <marker name='%5'>%4</marker>. Find and destroy it, soldier." , _missionTime call BIS_fnc_selectRandom , _objectName , _missionIntel call BIS_fnc_selectRandom , _missionWherabouts call BIS_fnc_selectRandom , _stringName ]; //Create A task [[8, _stringName , _stringDescription , _pos ],"MCC_fnc_makeTaks",true,false] call BIS_fnc_MP ; //Give it public name [[[netid _obj ,_obj ], _name ], "MCC_fnc_setVehicleName", true, false] call BIS_fnc_MP ; //---Create A trigger--- //Succeed alive _capturVar = FORMAT ['[[2, "%1", "", [0,0,0]],"MCC_fnc_makeTaks",true,false] spawn BIS_fnc_MP;',_stringName ]; _stateCond = FORMAT ['!alive %1', _name ]; [0, getpos _obj , [1,1], "NONE", "PRESENT", "RECTANGLE", name _obj , _capturVar ,0,2,_stateCond ,""] execVM MCC_path + "mcc\general_scripts\triggers\triggers_execute.sqf"; }; //destroy_artillery case "destroy_artillery": { _objectName = getText(configFile >> "CfgVehicles" >> typeof _obj >> "displayname"); _stringName = FORMAT ["%2 Destroy %1", _objectName ,_nameTask ]; _stringDescription = FORMAT ["Task: Destroy %2.<br/><br/>%1 enemy artillery began pounding our troops. This threat must be eliminated.<br/><br/>%3 the %2 is operating <marker name='%5'>%4</marker>.<br/><br/>Find and destroy it ASAP." , _missionTime call BIS_fnc_selectRandom , _objectName , _missionIntel call BIS_fnc_selectRandom , _missionWherabouts call BIS_fnc_selectRandom , _stringName ]; //Create A task [[8, _stringName , _stringDescription , _pos ],"MCC_fnc_makeTaks",true,false] call BIS_fnc_MP ; //Give it public name [[[netid _obj ,_obj ], _name ], "MCC_fnc_setVehicleName", true, false] call BIS_fnc_MP ; //---Create A trigger--- //Succeed alive _capturVar = FORMAT ['[[2, "%1", "", [0,0,0]],"MCC_fnc_makeTaks",true,false] spawn BIS_fnc_MP;',_stringName ]; _stateCond = FORMAT ['!alive %1', _name ]; [0, getpos _obj , [1,1], "NONE", "PRESENT", "RECTANGLE", name _obj , _capturVar ,0,2,_stateCond ,""] execVM MCC_path + "mcc\general_scripts\triggers\triggers_execute.sqf"; }; //destroy_cache case "destroy_cache": { _stringName =FORMAT ["%1 Destroy the enemy weapons cache",_nameTask ]; _stringDescription = FORMAT ["Task: Destroy the enemy weapons cache.<br/><br/>%2 received %1, we believe that the enemy is hiding a weapons cache <marker name='%4'>%3</marker>.<br/><br/>Destroying it will severely damage the enemy war effort.<br/><br/>Find and destroy it ASAP." , _missionTime call BIS_fnc_selectRandom , _missionIntel call BIS_fnc_selectRandom , _missionWherabouts call BIS_fnc_selectRandom , _stringName ]; //Create A task [[8, _stringName , _stringDescription , _pos ],"MCC_fnc_makeTaks",true,false] call BIS_fnc_MP ; //Give it public name [[[netid _obj ,_obj ], _name ], "MCC_fnc_setVehicleName", true, false] call BIS_fnc_MP ; //---Create A trigger--- //Succeed alive _capturVar = FORMAT ['[[2, "%1", "", [0,0,0]],"MCC_fnc_makeTaks",true,false] spawn BIS_fnc_MP;',_stringName ]; _stateCond = FORMAT ['!alive %1', _name ]; [0, getpos _obj , [1,1], "NONE", "PRESENT", "RECTANGLE", name _obj , _capturVar ,0,2,_stateCond ,""] execVM MCC_path + "mcc\general_scripts\triggers\triggers_execute.sqf"; }; //destroy_fuel case "destroy_fuel": { _stringName = FORMAT ["%1 Destroy the enemy fuel depot",_nameTask ]; _stringDescription = FORMAT ["Task: Destroy the enemy fuel depot.<br/><br/>%2 received %1, we believe that the enemy have a fuel depot <marker name='%4'>%3</marker>.<br/><br/>Destroying it will severely damage the enemy war effort.<br/><br/>Find and destroy it ASAP." , _missionTime call BIS_fnc_selectRandom , _missionIntel call BIS_fnc_selectRandom , _missionWherabouts call BIS_fnc_selectRandom , _stringName ]; //Create A task [[8, _stringName , _stringDescription , _pos ],"MCC_fnc_makeTaks",true,false] call BIS_fnc_MP ; //Give it public name [[[netid _obj ,_obj ], _name ], "MCC_fnc_setVehicleName", true, false] call BIS_fnc_MP ; //---Create A trigger--- //Succeed alive _capturVar = FORMAT ['[[2, "%1", "", [0,0,0]],"MCC_fnc_makeTaks",true,false] spawn BIS_fnc_MP;',_stringName ]; _stateCond = FORMAT ['!alive %1', _name ]; [0, getpos _obj , [1,1], "NONE", "PRESENT", "RECTANGLE", name _obj , _capturVar ,0,2,_stateCond ,""] execVM MCC_path + "mcc\general_scripts\triggers\triggers_execute.sqf"; }; //destroy_radio case "destroy_radio": { _stringName = FORMAT ["%1 Destroy the enemy radio tower",_nameTask ]; _stringDescription = FORMAT ["Task: Destroy the enemy radio tower.<br/><br/>%2 received %1 the enemy have a radio tower <marker name='%4'>%3</marker>. They are using it to coordinate their attacks.<br/><br/>Destroying it will severely damage the enemy war effort.<br/><br/>Find and destroy it ASAP." , _missionTime call BIS_fnc_selectRandom , _missionIntel call BIS_fnc_selectRandom , _missionWherabouts call BIS_fnc_selectRandom , _stringName ]; //Create A task [[8, _stringName , _stringDescription , _pos ],"MCC_fnc_makeTaks",true,false] call BIS_fnc_MP ; //Give it public name [[[netid _obj ,_obj ], _name ], "MCC_fnc_setVehicleName", true, false] call BIS_fnc_MP ; //---Create A trigger--- //Succeed alive _capturVar = FORMAT ['[[2, "%1", "", [0,0,0]],"MCC_fnc_makeTaks",true,false] spawn BIS_fnc_MP;',_stringName ]; _stateCond = FORMAT ['!alive %1', _name ]; [0, getpos _obj , [1,1], "NONE", "PRESENT", "RECTANGLE", name _obj , _capturVar ,0,2,_stateCond ,""] execVM MCC_path + "mcc\general_scripts\triggers\triggers_execute.sqf"; }; //destroy_radar case "destroy_radar": { _stringName = FORMAT ["%1 Destroy the enemy radar",_nameTask ]; _stringDescription = FORMAT ["Task: Destroy the enemy radar.<br/><br/>%2 received %1 the enemy have a radar installation <marker name='%4'>%3</marker>. They are using it to pinpoint the location of our troops.<br/><br/>By destroying it we can regain the element of surprise.<br/><br/>Find and destroy it ASAP." , _missionTime call BIS_fnc_selectRandom , _missionIntel call BIS_fnc_selectRandom , _missionWherabouts call BIS_fnc_selectRandom , _stringName ]; //Create A task [[8, _stringName , _stringDescription , _pos ],"MCC_fnc_makeTaks",true,false] call BIS_fnc_MP ; //Give it public name [[[netid _obj ,_obj ], _name ], "MCC_fnc_setVehicleName", true, false] call BIS_fnc_MP ; //---Create A trigger--- //Succeed alive _capturVar = FORMAT ['[[2, "%1", "", [0,0,0]],"MCC_fnc_makeTaks",true,false] spawn BIS_fnc_MP;',_stringName ]; _stateCond = FORMAT ['!alive %1', _name ]; [0, getpos _obj , [1,1], "NONE", "PRESENT", "RECTANGLE", name _obj , _capturVar ,0,2,_stateCond ,""] execVM MCC_path + "mcc\general_scripts\triggers\triggers_execute.sqf"; }; //pick_intel case "pick_intel": { _objectName = getText(configFile >> "CfgVehicles" >> typeof _obj >> "displayname"); _stringName = FORMAT ["%2 Acquire the %1", _objectName ,_nameTask ]; _stringDescription = FORMAT ["Task: Acquire Intel.<br/><br/>HQ believe that we have an opportunity to acquire top notch information about enemy forces operating in the area.<br/><br/>%3 the target data is in a %2, located <marker name='%5'>%4</marker>.<br/><br/>Retrieve the information and bring it back for analysis." , _missionTime call BIS_fnc_selectRandom , _objectName , _missionIntel call BIS_fnc_selectRandom , _missionWherabouts call BIS_fnc_selectRandom , _stringName ]; //Create A task [[8, _stringName , _stringDescription , _pos ],"MCC_fnc_makeTaks",true,false] call BIS_fnc_MP ; //Give it public name [[[netid _obj ,_obj ], _name ], "MCC_fnc_setVehicleName", true, false] call BIS_fnc_MP ; //---Create A trigger--- _capturVar = FORMAT ['[[2, "%1", "", [0,0,0]],"MCC_fnc_makeTaks",true,false] spawn BIS_fnc_MP;',_stringName ]; _stateCond = FORMAT ['!alive %1', _name ]; [0, getpos _obj , [1,1], "NONE", "PRESENT", "RECTANGLE", name _obj , _capturVar ,0,2,_stateCond ,""] execVM MCC_path + "mcc\general_scripts\triggers\triggers_execute.sqf"; }; //clear_area case "clear_area": { _stringName = FORMAT ["%1 Capture and Hold",_nameTask ]; _stringDescription = FORMAT ["Task: Capture and Hold.<br/><br/>%1 enemy forces established a foothold <marker name='%3'>%2</marker>.<br/><br/>We can't allow this to continue!<br/><br/>Go there and kick them out!!" , _missionTime call BIS_fnc_selectRandom , _missionWherabouts call BIS_fnc_selectRandom , _stringName ]; //Create A task [[8, _stringName , _stringDescription , _pos ],"MCC_fnc_makeTaks",true,false] call BIS_fnc_MP ; //Give it public name [[[netid _obj ,_obj ], _name ], "MCC_fnc_setVehicleName", true, false] call BIS_fnc_MP ; //---Create A trigger--- _capturVar = FORMAT ['[[2, "%1", "", [0,0,0]],"MCC_fnc_makeTaks",true,false] spawn BIS_fnc_MP;',_stringName ]; _stateCond = FORMAT ['!alive %1', _name ]; [0, getpos _obj , [1,1], "NONE", "PRESENT", "RECTANGLE", name _obj , _capturVar ,0,2,_stateCond ,""] execVM MCC_path + "mcc\general_scripts\triggers\triggers_execute.sqf"; }; //disableIED case "disableIED": { _stringName = FORMAT ["%1 Disable IED",_nameTask ]; _stringDescription = FORMAT ["Task: Disable IED.<br/><br/>%1 enemy forces have placed a massive Improvised Explosive Device (IED) on a road <marker name='%3'>%2</marker>.<br/><br/>We must disable it before it can cause any damage.<br/><br/>Tread carefully, find the IED and disarm it." , _missionIntel call BIS_fnc_selectRandom , _missionWherabouts call BIS_fnc_selectRandom , _stringName ]; //Create A task [[8, _stringName , _stringDescription , _pos ],"MCC_fnc_makeTaks",true,false] call BIS_fnc_MP ; //Give it public name [[[netid _obj ,_obj ], _name ], "MCC_fnc_setVehicleName", true, false] call BIS_fnc_MP ; //---Create A trigger--- _capturVar = FORMAT ['[[2, "%1", "", [0,0,0]],"MCC_fnc_makeTaks",true,false] spawn BIS_fnc_MP;',_stringName ]; _stateCond = FORMAT ['!alive %1', _name ]; [0, getpos _obj , [1,1], "NONE", "PRESENT", "RECTANGLE", _name , _capturVar ,0,2,_stateCond ,""] execVM MCC_path + "mcc\general_scripts\triggers\triggers_execute.sqf"; };}; MCC_MWObjectivesNames = [_pos ,"",_stringName ,_stringDescription ,"","",1,[]];publicVariable "MCC_MWObjectivesNames";
|
|