difficultyEnabled: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (format) |
Killzone Kid (talk | contribs) (example) |
||
Line 18: | Line 18: | ||
|x1= <code>[[hint]] [[str]] ([[difficultyEnabled]] "armor");</code> |= Example 1 | |x1= <code>[[hint]] [[str]] ([[difficultyEnabled]] "armor");</code> |= Example 1 | ||
|x2= List current difficulty settings: | |||
<code>[[call]] { | |||
[[private]] ["_diff", "_cfg", "_flags", "_res"]; | |||
_diff <nowiki>=</nowiki> []; | |||
_cfg <nowiki>=</nowiki> [[configFile]] >> "CfgDifficulties"; | |||
{ | |||
_flags <nowiki>=</nowiki> _cfg >> [[configName]] _x >> "Flags"; | |||
[[for]] "_i" [[from]] 0 [[to]] [[count]] _flags - 1 [[do]] { | |||
_diff [[pushBack]] [[configName]] (_flags [[select]] _i); | |||
}; | |||
} [[forEach]] ("true" [[configClasses]] _cfg); | |||
_diff <nowiki>=</nowiki> _diff [[arrayIntersect]] _diff; | |||
_diff [[sort]] [[true]]; | |||
_res <nowiki>=</nowiki> [[text]] ""; | |||
{ | |||
_res <nowiki>=</nowiki> [[composeText]] [_res, [[parseText]] [[format]] [ | |||
"<t align<nowiki>=</nowiki>'left'>%1 - %2</t>", | |||
_x, | |||
[1, 0] [[select]] [[difficultyEnabled]] _x | |||
], [[lineBreak]]]; | |||
} [[forEach]] _diff; | |||
[[hint]] _res; | |||
};</code>|= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 01:04, 30 June 2015
Description
- Description:
- Checks specific difficulty settings of the current user. Difficulty flag names can be found in the ArmA profile file under class Difficulties/xxx/Flags (xxx being regular or veteran).
- Groups:
- Uncategorised
Syntax
- Syntax:
- difficultyEnabled flagName
- Parameters:
- flagName: String - difficulty flag name
- Return Value:
- Boolean
Examples
- Example 1:
hint str (difficultyEnabled "armor");
- Example 2:
- List current difficulty settings:
call { private ["_diff", "_cfg", "_flags", "_res"]; _diff = []; _cfg = configFile >> "CfgDifficulties"; { _flags = _cfg >> configName _x >> "Flags"; for "_i" from 0 to count _flags - 1 do { _diff pushBack configName (_flags select _i); }; } forEach ("true" configClasses _cfg); _diff = _diff arrayIntersect _diff; _diff sort true; _res = text ""; { _res = composeText [_res, parseText format [ "<t align='left'>%1 - %2</t>", _x, [1, 0] select difficultyEnabled _x ], lineBreak]; } forEach _diff; hint _res; };
Additional Information
- See also:
- difficultyArma 3 Difficulty Menu
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes
- Posted on June 29, 2015 - 23:20 (UTC)
- Killzone Kid
-
Arma 3 Flags:
- 3rdPersonView
- armor
- autoAim
- autoGuideAT
- autoSpot
- autoTrimEnabled
- cameraShake
- clockIndicator
- deathMessages
- enemyTag
- extendetInfoType
- friendlyTag
- hud
- hudGroupInfo
- hudPerm
- hudWp
- hudWpPerm
- map
- mineTag
- netStats
- roughLanding
- stanceIndicator
- stressDamageEnabled
- unlimitedSaves
- vonID
- vonId
- weaponCursor
- windEnabled
- Crowe
- Possible Values for Arma 2:
- 3rdPersonView
- armor
- autoSpot
- autoGuideAT
- autoAim
- allowSeagull
- clockIndicator
- deathMessages
- enemyTag
- friendlyTag
- hud
- hudPerm
- hudWp
- hudWpPerm
- map
- netStats
- suppressPlayer
- tracers
- realisticFatigue
- ultraAI
- unlimitedSaves
- weaponCursor