Advertisement
zkb1325

Alits Life Factories Config

Feb 19th, 2024 (edited)
1,431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.86 KB | None | 0 0
  1. class FactorySettings {
  2.     mapIcon = "loc_Stack";
  3.     mapIconColor = "ColorYellow";
  4.     continueProductionQueueOffline = 1; //1 = true, 0 = false. If the production queue will continue even if the player is offline or if the server is down.
  5. };
  6.  
  7. class Factories {
  8.     class ExampleFactory {
  9.         objectVar = "ExampleFactory"; // If you do not place an object in the editor and set the variable name to this then this factory will not show up
  10.         displayName = "Example Factory";
  11.         factoryCost = 10000;
  12.         maxWorkers = 10;
  13.         workerCost = 1000;
  14.         manufactureTime = "300/_workerCount";
  15.         maxWeight = 1000;
  16.         onManufactureComplete = "systemChat format ['%1 finished %2x %3', configName (_this#0), _this#2, _this#1];";
  17.  
  18.         class Items {
  19.             class Iron {
  20.                 required[] = {{"iron_unrefined", 1}};
  21.                 output[] = {{"iron_refined", 1}};
  22.                 manufactureTime = "20"; // Manufacturing 1 item will take 1 minute since it gets rounded up to the nearest minute, it would be better use of time to manufacture in multiples of 3
  23.                 onManufactureCompleteItem = "life_atmbank = life_atmbank + 10*(_this#2); systemChat format ['$%1 added to bank for completing %2x %3', 10*(_this#2), _this#2, _this#1];";
  24.             };
  25.             class Copper {
  26.                 required[] = {{"copper_unrefined", 1}};
  27.                 output[] = {{"copper_refined", 1}};
  28.             };
  29.             class Glass {
  30.                 required[] = {{"sand", 2}};
  31.                 output[] = {{"glass", 1}};
  32.             };
  33.             class U_C_WorkerCoveralls {
  34.                 required[] = {{"iron_refined", 1}};
  35.                 output[] = {{"U_C_WorkerCoveralls", 1}};
  36.                 manufactureTime = "60";
  37.             };
  38.             class H_BandMask_blk {
  39.                 required[] = {{"iron_refined", 1}};
  40.                 output[] = {{"H_BandMask_blk", 1}};
  41.                 manufactureTime = "60";
  42.             };
  43.             class G_Combat {
  44.                 required[] = {{"iron_refined", 1}};
  45.                 output[] = {{"G_Combat", 1}};
  46.                 manufactureTime = "60";
  47.             };
  48.             class V_TacVest_blk_POLICE {
  49.                 displayName = "Police Vest";
  50.                 required[] = {{"iron_refined", 1}};
  51.                 output[] = {{"V_TacVest_blk_POLICE", 1}};
  52.                 manufactureTime = "60";
  53.             };
  54.             class B_Carryall_ocamo {
  55.                 required[] = {{"iron_refined", 1}};
  56.                 output[] = {{"B_Carryall_ocamo", 1}};
  57.                 manufactureTime = "60";
  58.             };
  59.             class arifle_SPAR_01_blk_F {
  60.                 required[] = {{"iron_refined", 2}};
  61.                 output[] = {{"arifle_SPAR_01_blk_F", 1}};
  62.                 manufactureTime = "1000/_workerCount";
  63.             };
  64.             class 30Rnd_556x45_Stanag {
  65.                 required[] = {{"copper_refined", 1}};
  66.                 output[] = {{"30Rnd_556x45_Stanag", 1}};
  67.             };
  68.             class optic_Hamr {
  69.                 required[] = {{"iron_refined", 1}, {"glass", 1}};
  70.                 output[] = {{"optic_Hamr", 2}};
  71.             };
  72.             class C_Offroad_02_unarmed_F {
  73.                 required[] = {{"iron_refined", 10}, {"glass", 4}};
  74.                 output[] = {{"C_Offroad_02_unarmed_F", 1}};
  75.                 manufactureTime = "45*60"; // 45 minute manufacture time
  76.             };
  77.             class Recycle_C_Offroad_02_unarmed_F {
  78.                 displayName = "Recycle Vehicle";
  79.                 icon = "\A3\ui_f\data\map\markers\military\objective_CA.paa";
  80.                 required[] = {{"C_Offroad_02_unarmed_F", 1}};
  81.                 output[] = {{"iron_refined", 10}, {"glass", 4}};
  82.                 manufactureTime = "1"; // Even though it's set to 1 second it will get rounded up to 1 minute
  83.             };
  84.         };
  85.     };
  86. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement