Jump to content
Sign in to follow this  
An Fiach

Difficulty Level

Recommended Posts

Ok so maybe I'm overlooking it but a search hasnt yielded the answer for me. When making a mission in the editor, how can you set the default difficulty for the mission? Is this something to be set by those playing the mission (SP) or the server settings (MP)? Thanks for the help.

Share this post


Link to post
Share on other sites

setting difficulty can be done on both sides - player side can set there difficulty by selecting options in single player or an admin selecting the from Rookie to Vet mode :)

but the mission maker can add it to - they can add DAY/NIGHT SUN/RAIN - they can even make it possible to select how many enemy u want per wave/town per player :)

Share this post


Link to post
Share on other sites

Great, how does the mission maker do it? I know about the time and weather , pretty simple. I even know about the other things you mention (don't know how but I know it involves scripting) Like I'm saying, I may be overlooking it I just want to know, is it something to be scripted/typed into the mission file or is there a selection someplace and I' blind? Thanks.

Share this post


Link to post
Share on other sites

Difficulty is chosen when the mission is selected (with the #missions or #vote missions commands). It has nothing at all to do with scripting really.

Then one can add additional difficulty settings (which includes some scripting/coding in the init.sqf and description.ext files) that can be designed in different ways. The most common one being to modify the AI skill level for all units. This would appear in the small two-column menu that may appear in some missions with some custom, mission-specific settings at the same screen you select your unit at.

Share this post


Link to post
Share on other sites

is there a way to Read out the selectet Defficulty and put it in a Variable ?

Share this post


Link to post
Share on other sites
is there a way to Read out the selectet Defficulty and put it in a Variable ?

Bumb.

Im using "ctab mod" in my mission that im creating.... and really want to know how to override default difficulty, like map info. so is there a way to script in the difficulty in Init.sfq or something???

Share this post


Link to post
Share on other sites
... really want to know how to override default difficulty, like map info. so is there a way to script in the difficulty in Init.sfq or something???

Here's an idea to increase Ai difficulty.

description.ext

class Params
{
   class AI_Skill
   {
	title = "Difficulty:";
	values[] = {0,1,3};
	texts[] = {"Easy","Medium","Hard"};
	default = 1;
   }; 
};  

init.sqf

switch (paramsArray select 0) do {
case 0 : {
	{
		if ((side _x) == EAST) then {
			_x setSkill ["general",0.5];
			_x setSkill ["aimingAccuracy",0.2];
			_x setSkill ["aimingShake",0.2];
			_x setSkill ["aimingSpeed",0.5];
			_x setSkill ["endurance",0.1];
			_x setSkill ["spotDistance",0.1];
			_x setSkill ["spotTime",0.1];
			_x setSkill ["courage",1];
			_x setSkill ["reloadspeed",0.1];
			_x setSkill ["commanding",0.5];
		};
	} forEach allUnits;
};
case 1 : {
	{
		if ((side _x) == EAST) then {
			_x setSkill ["general",0.75];
			_x setSkill ["aimingAccuracy",0.3];
			_x setSkill ["aimingShake",0.3];
			_x setSkill ["aimingSpeed",0.7];
			_x setSkill ["endurance",0.5];
			_x setSkill ["spotDistance",0.3];
			_x setSkill ["spotTime",0.3];
			_x setSkill ["courage",1];
			_x setSkill ["reloadspeed",0.5];
			_x setSkill ["commanding",0.75];
		};
	} forEach allUnits;
};
case 2 : {
	{
		if ((side _x) == EAST) then {
			_x setSkill ["general",1];
			_x setSkill ["aimingAccuracy",0.5];
			_x setSkill ["aimingShake",0.5];
			_x setSkill ["aimingSpeed",0.75];
			_x setSkill ["endurance",1];
			_x setSkill ["spotDistance",0.5];
			_x setSkill ["spotTime",0.5];
			_x setSkill ["courage",1];
			_x setSkill ["reloadspeed",0.75];
			_x setSkill ["commanding",1];
		};
	} forEach allUnits;
};
};  

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×