{ "questIDHigh:4": 0, "preRequisites:9": { "0:10": { "questIDHigh:4": 0, "questIDLow:4": 1763 } }, "questIDLow:4": 1764, "properties:10": { "betterquesting:10": { "snd_complete:8": "random.levelup", "taskLogic:8": "AND", "partySingleReward:1": 0, "visibility:8": "NORMAL", "isMain:1": 0, "simultaneous:1": 0, "icon:10": { "id:8": "gregtech:gt.metaitem.01", "Count:3": 1, "Damage:2": 32740, "OreDict:8": "" }, "snd_update:8": "random.levelup", "repeatTime:3": -1, "globalShare:1": 1, "questLogic:8": "AND", "repeat_relative:1": 1, "name:8": "Basic Power Display", "isGlobal:1": 0, "lockedProgress:1": 0, "autoClaim:1": 0, "isSilent:1": 0, "desc:8": "For this part we will learn how to use our adapter, place it next to, let\u0027s say your EBFs battery buffer and connect it to the computer with cables.\nNow lets type in lua while on the computer to open the LUA environment where we can test things without worrying about saving and trying our program.\n\nType in \u0027component.list()\u0027 this will display a table of all of .list from component. What we\u0027re looking for is gt_batterybuffer.\nIf you have too many nearby things it may not display and the way to search the entire list of components is too advanced for starters.\n\nSo now assign a variable to it; for example \u0027a \u003d component.gt_batterybuffer\u0027; now we can call \u0027a\u0027 to see what methods the batteryBuffer has.\nWhat we\u0027ll be using in this example is the \u0027getBatteryCharge\u0027 method. So type \u0027a.getBatteryCharge(1)\u0027 this will call the method getBatteryCharge from the first inventory slot on the gt_batterybuffer in component.\n\nSo if we\u0027re using a 2x2 battery buffer; we can type something like, \u0027for i\u003d1, 4 do print(a.getBatteryCharge(i)) end\u0027\nPoof you now see what all the batteries EU values. Now what can we do with this?\n\nTry making a variable called \u0027batteryCharge \u003d 0\u0027, now do \u0027for i\u003d1, 4 do batteryCharge \u003d batteryCharge + a.getBatteryCharge(i) end\u0027\n\nNow print(batteryCharge) will display the total charge. Here\u0027s a program example of this being used.\n\nPlace in your tape drive and type \u0027install\u0027, and follow the promps to install it into C. Then edit it, test it, figure how it works.\n\nI suppose that\u0027s enough for now; congrats! Experiment and learn, and don\u0027t forget to check google as much as possible! \nThis questline will be updated again in the future; but I figure this is a good ending point for now." } }, "tasks:9": { "0:10": { "index:3": 0, "taskID:8": "bq_standard:checkbox" } }, "rewards:9": { "0:10": { "rewardID:8": "bq_standard:item", "index:3": 0, "rewards:9": { "0:10": { "id:8": "OpenComputers:item", "Count:3": 1, "tag:10": { "oc:data:10": { "node:10": { "address:8": "9147f798-ee2f-44da-b736-b6a30beed8da", "visibility:4": 2, "buffer:6": 0.0 }, "owners:9": { "0:10": { "handles:9": {}, "address:8": "9fbc465f-657a-437e-9f90-f18aaf9eb423" } }, "oc:fs.label:8": "PowerDisplay", "fs:10": { "output:9": {}, "input:9": {}, "capacity.used:4": 2045 } } }, "Damage:2": 4, "OreDict:8": "" } } } } }