Difference between revisions of "AI Craftapalooza Machines"
Jump to navigation
Jump to search
Troylaurin (talk | contribs) |
Troylaurin (talk | contribs) (Properly escape "or" operators in scripts | -> {{!}}) |
||
Line 71: | Line 71: | ||
tier = global.int.get("craft_tier:2.1") | tier = global.int.get("craft_tier:2.1") | ||
count = global.double.get("craft_count:2.1") | count = global.double.get("craft_count:2.1") | ||
− | gotoif(99, tier < 1 | + | gotoif(99, tier < 1 {{!}} tier > 10 {{!}} count < 1.0 {{!}} global.int.get("craft_status") > 199) |
executesync("craft 2:1:in") | executesync("craft 2:1:in") | ||
Line 290: | Line 290: | ||
tier = global.int.get("craft_tier:2.2") | tier = global.int.get("craft_tier:2.2") | ||
count = global.double.get("craft_count:2.2") | count = global.double.get("craft_count:2.2") | ||
− | gotoif(99, tier < 1 | + | gotoif(99, tier < 1 {{!}} tier > 10 {{!}} count < 1.0 {{!}} global.int.get("craft_status") > 199) |
executesync("craft 2:2:in") | executesync("craft 2:2:in") | ||
Line 539: | Line 539: | ||
tier = global.int.get("craft_tier:2.3") | tier = global.int.get("craft_tier:2.3") | ||
count = global.double.get("craft_count:2.3") | count = global.double.get("craft_count:2.3") | ||
− | gotoif(99, tier < 1 | + | gotoif(99, tier < 1 {{!}} tier > 10 {{!}} count < 1.0 {{!}} global.int.get("craft_status") > 199) |
executesync("craft 2:3:in") | executesync("craft 2:3:in") | ||
Line 785: | Line 785: | ||
tier = global.int.get("craft_tier:2.4") | tier = global.int.get("craft_tier:2.4") | ||
count = global.double.get("craft_count:2.4") | count = global.double.get("craft_count:2.4") | ||
− | gotoif(99, tier < 1 | + | gotoif(99, tier < 1 {{!}} tier > 10 {{!}} count < 1.0 {{!}} global.int.get("craft_status") > 199) |
motors = count * floor((22211111111.0 / (10.0 ^ i2d(tier))) % 10.0) | motors = count * floor((22211111111.0 / (10.0 ^ i2d(tier))) % 10.0) | ||
Line 945: | Line 945: | ||
tier = global.int.get("craft_tier:2.5") | tier = global.int.get("craft_tier:2.5") | ||
count = global.double.get("craft_count:2.5") | count = global.double.get("craft_count:2.5") | ||
− | gotoif(99, tier < 1 | + | gotoif(99, tier < 1 {{!}} tier > 10 {{!}} count < 1.0 {{!}} global.int.get("craft_status") > 199) |
executesync("craft 2:5:in") | executesync("craft 2:5:in") | ||
Line 1,093: | Line 1,093: | ||
tier = global.int.get("craft_tier:2.5") | tier = global.int.get("craft_tier:2.5") | ||
count = global.double.get("craft_count:2.5") | count = global.double.get("craft_count:2.5") | ||
− | gotoif(99, tier < 1 | + | gotoif(99, tier < 1 {{!}} tier > 10 {{!}} count < 1.0 {{!}} global.int.get("craft_status") > 199) |
; blocks = count * floor((64400000001.0 / (10.0 ^ i2d(tier))) % 10.0) | ; blocks = count * floor((64400000001.0 / (10.0 ^ i2d(tier))) % 10.0) | ||
Line 1,184: | Line 1,184: | ||
tier = global.int.get("craft_tier:2.6") | tier = global.int.get("craft_tier:2.6") | ||
count = global.double.get("craft_count:2.6") | count = global.double.get("craft_count:2.6") | ||
− | gotoif(99, tier < 1 | + | gotoif(99, tier < 1 {{!}} tier > 10 {{!}} count < 1.0 {{!}} global.int.get("craft_status") > 199) |
executesync("craft 2:6:in") | executesync("craft 2:6:in") | ||
Line 1,295: | Line 1,295: | ||
executesync("craft 3:1") | executesync("craft 3:1") | ||
− | gotoif(99, global.int.get("craft_status") > 199 | + | gotoif(99, global.int.get("craft_status") > 199 {{!}} tier > 1) |
; Tier 1 has to buy hammers! | ; Tier 1 has to buy hammers! | ||
click(vec(0.96 * i2d(width()), 0.49 * i2d(height()))) | click(vec(0.96 * i2d(width()), 0.49 * i2d(height()))) | ||
Line 1,362: | Line 1,362: | ||
tier = global.int.get("craft_tier:2.7") | tier = global.int.get("craft_tier:2.7") | ||
count = global.double.get("craft_count:2.7") | count = global.double.get("craft_count:2.7") | ||
− | gotoif(99, tier < 1 | + | gotoif(99, tier < 1 {{!}} tier > 10 {{!}} count < 1.0 {{!}} global.int.get("craft_status") > 199) |
executesync("craft 2:7:in") | executesync("craft 2:7:in") | ||
Line 1,526: | Line 1,526: | ||
tier = global.int.get("craft_tier:2.8") | tier = global.int.get("craft_tier:2.8") | ||
count = global.double.get("craft_count:2.8") | count = global.double.get("craft_count:2.8") | ||
− | gotoif(99, tier < 1 | + | gotoif(99, tier < 1 {{!}} tier > 10 {{!}} count < 1.0 {{!}} global.int.get("craft_status") > 199) |
executesync("craft 2:8:in") | executesync("craft 2:8:in") | ||
Line 1,687: | Line 1,687: | ||
tier = global.int.get("craft_tier:2.9") | tier = global.int.get("craft_tier:2.9") | ||
count = global.double.get("craft_count:2.9") | count = global.double.get("craft_count:2.9") | ||
− | gotoif(99, tier < 1 | + | gotoif(99, tier < 1 {{!}} tier > 10 {{!}} count < 1.0 {{!}} global.int.get("craft_status") > 199) |
executesync("craft 2:9:in") | executesync("craft 2:9:in") | ||
Line 1,921: | Line 1,921: | ||
tier = global.int.get("craft_tier:2.10") | tier = global.int.get("craft_tier:2.10") | ||
count = global.double.get("craft_count:2.10") | count = global.double.get("craft_count:2.10") | ||
− | gotoif(99, tier < 1 | + | gotoif(99, tier < 1 {{!}} tier > 10 {{!}} count < 1.0 {{!}} global.int.get("craft_status") > 199) |
executesync("craft 2:10:in") | executesync("craft 2:10:in") |
Revision as of 06:44, 26 January 2021
Contents
Machine scripts
Oven (1)
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 2:1 | 16 |
| |||
craft 2:1:in | 18 |
| |||
craft 2:1:plates | 11 |
|
Assembler (2)
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 2:2 | 17 |
| |||
craft 2:2:in | 13 |
| |||
craft 2:2:plates | 20 |
|
Refiner (3)
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 2:3 | 16 |
| |||
craft 2:3:in | 17 |
| |||
craft 2:3:misc | 18 |
|
Crusher (4)
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 2:4 | 14 |
| |||
craft 2:4:in | 18 |
|
Cutter (5)
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 2:5 | 15 |
| |||
craft 2:5:in | 17 |
| |||
craft 2:5:plates | 12 |
|
Presser (6)
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 2:6 | 17 |
| |||
craft 2:6:in | 22 |
|
Mixer (7)
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 2:7 | 14 |
| |||
craft 2:7:in | 18 |
|
Belt (8)
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 2:8 | 14 |
| |||
craft 2:8:in | 18 |
|
Shaper (9)
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 2:9 | 15 |
| |||
craft 2:9:in | 13 |
| |||
craft 2:9:plates | 18 |
|
Boiler (10)
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 2:10 | 21 |
| |||
craft 2:10:in | 13 |
| |||
craft 2:10:plates | 8 |
|