Difference between revisions of "AI Craftapalooza Parts"
Jump to navigation
Jump to search
Troylaurin (talk | contribs) |
Troylaurin (talk | contribs) |
||
Line 1,589: | Line 1,589: | ||
|} | |} | ||
|} | |} | ||
+ | |} | ||
+ | |||
+ | ====Wires==== | ||
+ | (pic) | ||
+ | {| class="wikitable" | ||
+ | !Name | ||
+ | !Lines | ||
+ | !Code | ||
+ | |- | ||
+ | |craft part:wire | ||
+ | |9 | ||
+ | |{{AIScript | ||
+ | |code= | ||
+ | D2NyYWZ0IHBhcnQ6d2lyZQAAAAAAAAAACQAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmds | ||
+ | b2JhbC5pbnQuZ2V0CGNvbnN0YW50BA9jcmFmdF90aWVyOndpcmUQbG9jYWwuZG91YmxlLnNldAhjb25z | ||
+ | dGFudAQFY291bnQRZ2xvYmFsLmRvdWJsZS5nZXQIY29uc3RhbnQEEGNyYWZ0X2NvdW50OndpcmUOZ2Vu | ||
+ | ZXJpYy5nb3RvaWYIY29uc3RhbnQCYwAAAA9jb21wYXJpc29uLmJvb2wPY29tcGFyaXNvbi5ib29sD2Nv | ||
+ | bXBhcmlzb24uYm9vbA5jb21wYXJpc29uLmludA1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyCGNv | ||
+ | bnN0YW50BAE8CGNvbnN0YW50AgEAAAAIY29uc3RhbnQEAXwOY29tcGFyaXNvbi5pbnQNbG9jYWwuaW50 | ||
+ | LmdldAhjb25zdGFudAQEdGllcghjb25zdGFudAQBPghjb25zdGFudAIKAAAACGNvbnN0YW50BAF8EWNv | ||
+ | bXBhcmlzb24uZG91YmxlEGxvY2FsLmRvdWJsZS5nZXQIY29uc3RhbnQEBWNvdW50CGNvbnN0YW50BAE8 | ||
+ | CGNvbnN0YW50AwAAAAAAAPA/CGNvbnN0YW50BAF8DmNvbXBhcmlzb24uaW50Dmdsb2JhbC5pbnQuZ2V0 | ||
+ | CGNvbnN0YW50BAxjcmFmdF9z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RhbnQEBWNhYmxlDWxvY2Fs | ||
+ | LmludC5nZXQIY29uc3RhbnQEBHRpZXIQbG9jYWwuZG91YmxlLmdldAhjb25zdGFudAQFY291bnQIY29u | ||
+ | c3RhbnQECHJlZmluZXJ5EWdlbmVyaWMud2FpdHVudGlsEWNvbXBhcmlzb24uZG91YmxlE2ZhY3Rvcnku | ||
+ | aXRlbXMuY291bnQIY29uc3RhbnQEBHdpcmUNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25z | ||
+ | dGFudAQCPj0QbG9jYWwuZG91YmxlLmdldAhjb25zdGFudAQFY291bnQ= | ||
+ | |src= | ||
+ | :global double craft_inventory | ||
+ | :local int tier | ||
+ | :local double count | ||
+ | |||
+ | tier = global.int.get("craft_tier:wire") | ||
+ | count = global.double.get("craft_count:wire") | ||
+ | gotoif(99, tier < 1 | tier > 10 | count < 1.0 | global.int.get("craft_status") > 199) | ||
+ | |||
+ | cables: gotoif(wires, count < craft_inventory * count("cable", tier)) | ||
+ | waitwhile(active("refinery")) | ||
+ | produce("ingot", tier, ceil((count - craft_inventory * count("cable", tier)) / 2.0), "refinery") | ||
+ | waitwhile(active("refinery")) | ||
+ | |||
+ | wires: produce("cable", tier, count, "refinery") | ||
+ | waituntil(count("wire", tier) >= count) | ||
+ | }} | ||
+ | |} | ||
+ | |||
+ | ====Screws==== | ||
+ | (pic) | ||
+ | {| class="wikitable" | ||
+ | !Name | ||
+ | !Lines | ||
+ | !Code | ||
+ | |- | ||
+ | |craft part:screw | ||
+ | |12 | ||
+ | |{{AIScript | ||
+ | |code= | ||
+ | EGNyYWZ0IHBhcnQ6c2NyZXcAAAAAAAAAAAwAAAANbG9jYWwuaW50LnNldAhjb25zdGFudAQEdGllcg5n | ||
+ | bG9iYWwuaW50LmdldAhjb25zdGFudAQQY3JhZnRfdGllcjpzY3JldxBsb2NhbC5kb3VibGUuc2V0CGNv | ||
+ | bnN0YW50BAVjb3VudBFnbG9iYWwuZG91YmxlLmdldAhjb25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udAMAAAAAAAAAAA== | ||
+ | |src= | ||
+ | :global double craft_inventory | ||
+ | :local int tier | ||
+ | :local double count | ||
+ | |||
+ | tier = global.int.get("craft_tier:screw") | ||
+ | count = global.double.get("craft_count:screw") | ||
+ | gotoif(99, tier < 1 | tier > 10 | count < 1.0 | global.int.get("craft_status") > 199) | ||
+ | |||
+ | :local double rods | ||
+ | rods = ceil(count / 4.0) | ||
+ | |||
+ | rods: gotoif(screws, rods <= craft_inventory * count("rod", tier)) | ||
+ | waitwhile(active("shaper")) | ||
+ | produce("ingot", tier, ceil((rods - craft_inventory * count("rod", tier)) / 2.0), "shaper") | ||
+ | waitwhile(active("shaper")) | ||
+ | |||
+ | screws: waitwhile(active("cutter")) | ||
+ | produce("rod", tier, rods, "cutter") | ||
+ | waitwhile(active("cutter")) | ||
+ | |||
+ | wait(0.0) | ||
+ | }} | ||
|} | |} |
Revision as of 09:26, 22 January 2021
Parts scripts
Output | Part | Scripts | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | chips |
| |||||||||||||||||||||||||||
2 | plates |
| |||||||||||||||||||||||||||
3 | dense plates |
| |||||||||||||||||||||||||||
4 | blocks |
| |||||||||||||||||||||||||||
5 | cables |
| |||||||||||||||||||||||||||
6 | insulated cables |
| |||||||||||||||||||||||||||
7 | rods |
| |||||||||||||||||||||||||||
8 | motors |
| |||||||||||||||||||||||||||
9 | pumps |
|
Wires
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft part:wire | 9 |
|
Screws
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft part:screw | 12 |
|