Biki Export Scripts: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix code)
(→‎Arma 3: CfgMarkerColors: Updated marker colour export script)
Line 183: Line 183:
<spoiler>
<spoiler>
<sqf>
<sqf>
private _output = format ["Last updated: {{GVI|arma3|%1}}", (productVersion select 2) / 100] + endl;
toFixed 2;
_output = _output + "{| class =""wikitable""" + endl + format ["|-%1! %2 !! %3", endl, "Config Name", "RGBA"];
{
private _condition = "true";
private _colour = getArray (_x >> "color") call BIS_fnc_colorConfigToRGBA;
private _markers = _condition configClasses (configFile >> "CfgMarkerColors");  
private _colourName = configName _x;
_output = _output + format ["%1|-%1|%2 || %3", endl, _colourName, _colour];
private _export = "";
} forEach configProperties [configFile >> "CfgMarkerColors"];
_export = "{| class=""wikitable sortable""" + endl + "|-" + endl;
_output = _output + endl + "|}";
_export = _export + "! style= ""width:50px"" | Preview !! Class Name !! Display Name !! RGBA (0-1) !! RGB (0-255) !! HTML" + endl + "|-" + endl;
copyToClipboard _output;
{
  private _classname = configName _x;
  private _name = getText (_x >> "name");  
  private _colorRGBArma = getArray (_x >> "color");
  _colorRGBArma = _colorRGBArma apply
  {
    if (_x isEqualType "") then
    {
      call compile _x;  
    }
    else
    {
      _x
    };
  };
  private _colorRGB255 = _colorRGBArma apply {_x * 255};  
  _export = _export + format ["| style=""background-color: rgb(%1, %2, %3);"" | || %4 || ''%5'' || [%6, %7, %8, %9] || [%10, %11, %12] || %13", _colorRGB255#0, _colorRGB255#1, _colorRGB255#2, _className, _name, _colorRGBArma#0, _colorRGBArma#1, _colorRGBArma#2, _colorRGBArma#3,_colorRGB255#0, _colorRGB255#1, _colorRGB255#2, _colorRGBArma call BIS_fnc_colorRGBtoHTML] + endl + "|-" + endl;  
} forEach _markers;  
_export = _export + "|}" + endl + endl;  
copyToClipboard _export;
</sqf>
</sqf>
</spoiler>
</spoiler>


= [[Arma 3: CfgMusic]] =
= [[Arma 3: CfgMusic]] =

Revision as of 17:04, 5 August 2024

This page contains all export scripts used to generate data on various pages on this wiki.

In order to quickly link to the export script used to generate data on a specific page use {{Wiki|extractionScript}} on that specific page.
The functions from this page (and more) are also available in this mod.

Arma: Airport IDs

Author: POLPOX


Arma 3: CfgFunctions

Author: R3vo


Arma 3: CfgIdentities

Author: Lou Montana and POLPOX


Arma 3: CfgMarkers

Author: R3vo


Arma 3: CfgMarkerColors

Author: R3vo

Arma 3: CfgMusic

Author: Killzone_Kid


Arma 3: Difficulty Settings

Author: Killzone_Kid


Arma 3: Display3DEN IDCs

Author: R3vo


Arma 3: Hitpoints

Author: R3vo


Arma 3: Moves

Author: Lou Montana


Arma 3: createSimpleObject/objects

Author: Lou Montana


Arma 3: createVehicle/vehicles

light version (without hitpoints)
Author: Lou Montana

heavy version (with hitpoints)
Author: Killzone_Kid

heavy version (with hidden hitpoints)
Author: Lou Montana from the above one


Arma 3: DLC Restrictions

Author: POLPOX


Arma 3: Shooting Targets

Author: R3vo


Arma 3: Sound Files

Author: Lou Montana


BIS_fnc_holdActionAdd

Author: Lou Montana


CfgGroups

Author: Lou Montana


CfgWorlds/Group*

Author: Killzone_Kid


inputAction/actions

Author: POLPOX


Mission Parameters

Author: Lou Montana


Modules

Author: R3vo


nearestTerrainObjects

Author: R3vo


Side Relations

Author: Lou Montana