Difference between revisions of "AI Craftapalooza Parts"
Jump to navigation
Jump to search
Troylaurin (talk | contribs) (Properly escape "or" conditions) |
Troylaurin (talk | contribs) |
||
Line 1: | Line 1: | ||
===Parts scripts=== | ===Parts scripts=== | ||
− | + | ====Chips (1)==== | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[File:Chip recipe.png|frameless]] | [[File:Chip recipe.png|frameless]] | ||
− | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 19: | Line 11: | ||
|craft 3:1 | |craft 3:1 | ||
|20 | |20 | ||
− | | | + | |{{AIScript |
− | { | + | |code= |
− | + | CWNyYWZ0IDM6MQAAAAAAAAAAFAAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmdsb2JhbC5p | |
− | + | bnQuZ2V0CGNvbnN0YW50BA5jcmFmdF90aWVyOjMuMRBsb2NhbC5kb3VibGUuc2V0CGNvbnN0YW50BAVj | |
− | + | b3VudBFnbG9iYWwuZG91YmxlLmdldAhjb25zdGFudAQPY3JhZnRfY291bnQ6My4xDmdlbmVyaWMuZ290 | |
− | + | b2lmCGNvbnN0YW50AmMAAAAPY29tcGFyaXNvbi5ib29sD2NvbXBhcmlzb24uYm9vbA5jb21wYXJpc29u | |
− | + | LmludA1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyCGNvbnN0YW50BAE8CGNvbnN0YW50AgEAAAAI | |
− | + | Y29uc3RhbnQEAXwOY29tcGFyaXNvbi5pbnQNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25z | |
− | + | dGFudAQBPghjb25zdGFudAIFAAAACGNvbnN0YW50BAF8EWNvbXBhcmlzb24uZG91YmxlEGxvY2FsLmRv | |
− | + | dWJsZS5nZXQIY29uc3RhbnQEBWNvdW50CGNvbnN0YW50BAE8CGNvbnN0YW50AwAAAAAAAPA/E2dlbmVy | |
− | + | aWMuZXhlY3V0ZXN5bmMIY29uc3RhbnQEDGNyYWZ0IDM6MTppbhBsb2NhbC5kb3VibGUuc2V0CGNvbnN0 | |
− | + | YW50BAhib2FyZF9oaRFhcml0aG1ldGljLmRvdWJsZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVj | |
− | + | b3VudAhjb25zdGFudAQBKgNpMmQOYXJpdGhtZXRpYy5pbnQOYXJpdGhtZXRpYy5pbnQIY29uc3RhbnQC | |
− | + | AigNAAhjb25zdGFudAQBLw5hcml0aG1ldGljLmludAhjb25zdGFudAIKAAAACGNvbnN0YW50BANwb3cN | |
− | + | bG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFudAQDbW9kCGNvbnN0YW50AgoAAAAQbG9j | |
− | + | YWwuZG91YmxlLnNldAhjb25zdGFudAQKY2lyY3VpdF9oaRFhcml0aG1ldGljLmRvdWJsZRBsb2NhbC5k | |
− | + | b3VibGUuZ2V0CGNvbnN0YW50BAVjb3VudAhjb25zdGFudAQBKgNpMmQOYXJpdGhtZXRpYy5pbnQOYXJp | |
− | + | dGhtZXRpYy5pbnQIY29uc3RhbnQCpGwDAAhjb25zdGFudAQBLw5hcml0aG1ldGljLmludAhjb25zdGFu | |
− | + | dAIKAAAACGNvbnN0YW50BANwb3cNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFudAQD | |
− | + | bW9kCGNvbnN0YW50AgoAAAAOZ2xvYmFsLmludC5zZXQIY29uc3RhbnQEEGNyYWZ0X3RpZXI6aW5nb3QO | |
− | + | YXJpdGhtZXRpYy5pbnQNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFudAQBKghjb25z | |
− | + | dGFudAICAAAAEWdsb2JhbC5kb3VibGUuc2V0CGNvbnN0YW50BBFjcmFmdF9jb3VudDppbmdvdBFhcml0 | |
− | + | aG1ldGljLmRvdWJsZQpkb3VibGUubWF4CGNvbnN0YW50AwAAAAAAAAAAEWFyaXRobWV0aWMuZG91Ymxl | |
− | + | EGxvY2FsLmRvdWJsZS5nZXQIY29uc3RhbnQECGJvYXJkX2hpCGNvbnN0YW50BAEtEWFyaXRobWV0aWMu | |
− | + | ZG91YmxlEWdsb2JhbC5kb3VibGUuZ2V0CGNvbnN0YW50BA9jcmFmdF9pbnZlbnRvcnkIY29uc3RhbnQE | |
− | + | ASoRYXJpdGhtZXRpYy5kb3VibGUTZmFjdG9yeS5pdGVtcy5jb3VudAhjb25zdGFudAQFcGxhdGUOYXJp | |
− | + | dGhtZXRpYy5pbnQNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFudAQBKghjb25zdGFu | |
− | + | dAICAAAACGNvbnN0YW50BAErE2ZhY3RvcnkuaXRlbXMuY291bnQIY29uc3RhbnQEDXBsYXRlLmNpcmN1 | |
− | + | aXQOYXJpdGhtZXRpYy5pbnQNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFudAQBKghj | |
− | + | b25zdGFudAICAAAACGNvbnN0YW50BAErCmRvdWJsZS5tYXgIY29uc3RhbnQDAAAAAAAAAAALZG91Ymxl | |
− | + | LmNlaWwRYXJpdGhtZXRpYy5kb3VibGURYXJpdGhtZXRpYy5kb3VibGUQbG9jYWwuZG91YmxlLmdldAhj | |
− | + | b25zdGFudAQKY2lyY3VpdF9oaQhjb25zdGFudAQBLRFhcml0aG1ldGljLmRvdWJsZRFnbG9iYWwuZG91 | |
− | + | YmxlLmdldAhjb25zdGFudAQPY3JhZnRfaW52ZW50b3J5CGNvbnN0YW50BAEqEWFyaXRobWV0aWMuZG91 | |
− | + | YmxlE2ZhY3RvcnkuaXRlbXMuY291bnQIY29uc3RhbnQEBWNhYmxlDmFyaXRobWV0aWMuaW50DWxvY2Fs | |
− | + | LmludC5nZXQIY29uc3RhbnQEBHRpZXIIY29uc3RhbnQEASoIY29uc3RhbnQCAgAAAAhjb25zdGFudAQB | |
− | + | KxNmYWN0b3J5Lml0ZW1zLmNvdW50CGNvbnN0YW50BAdjaXJjdWl0DmFyaXRobWV0aWMuaW50DWxvY2Fs | |
− | + | LmludC5nZXQIY29uc3RhbnQEBHRpZXIIY29uc3RhbnQEASoIY29uc3RhbnQCAgAAAAhjb25zdGFudAQB | |
− | + | Lwhjb25zdGFudAMAAAAAAAAAQBNnZW5lcmljLmV4ZWN1dGVzeW5jCGNvbnN0YW50BAtjcmFmdCBpbmdv | |
− | + | dA5nZW5lcmljLmdvdG9pZghjb25zdGFudAJjAAAADmNvbXBhcmlzb24uaW50Dmdsb2JhbC5pbnQuZ2V0 | |
− | + | CGNvbnN0YW50BAxjcmFmdF9zdGF0dXMIY29uc3RhbnQEAT4IY29uc3RhbnQCxwAAABBsb2NhbC5kb3Vi | |
− | + | bGUuc2V0CGNvbnN0YW50BAhib2FyZF9sbxFhcml0aG1ldGljLmRvdWJsZRBsb2NhbC5kb3VibGUuZ2V0 | |
− | + | CGNvbnN0YW50BAVjb3VudAhjb25zdGFudAQBKgNpMmQOYXJpdGhtZXRpYy5pbnQOYXJpdGhtZXRpYy5p | |
− | + | bnQIY29uc3RhbnQCmjANAAhjb25zdGFudAQBLw5hcml0aG1ldGljLmludAhjb25zdGFudAIKAAAACGNv | |
− | + | bnN0YW50BANwb3cNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFudAQDbW9kCGNvbnN0 | |
− | + | YW50AgoAAAAQbG9jYWwuZG91YmxlLnNldAhjb25zdGFudAQKY2lyY3VpdF9sbxFhcml0aG1ldGljLmRv | |
− | + | dWJsZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVjb3VudAhjb25zdGFudAQBKghjb25zdGFudAMA | |
− | | | + | AAAAAAAAQA5nbG9iYWwuaW50LnNldAhjb25zdGFudAQQY3JhZnRfdGllcjppbmdvdA5hcml0aG1ldGlj |
− | CWNyYWZ0IDM6MQAAAAAAAAAAFAAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmdsb2JhbC5p | + | LmludA5hcml0aG1ldGljLmludA1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyCGNvbnN0YW50BAEq |
− | bnQuZ2V0CGNvbnN0YW50BA5jcmFmdF90aWVyOjMuMRBsb2NhbC5kb3VibGUuc2V0CGNvbnN0YW50BAVj | + | CGNvbnN0YW50AgIAAAAIY29uc3RhbnQEAS0IY29uc3RhbnQCAQAAABFnbG9iYWwuZG91YmxlLnNldAhj |
− | b3VudBFnbG9iYWwuZG91YmxlLmdldAhjb25zdGFudAQPY3JhZnRfY291bnQ6My4xDmdlbmVyaWMuZ290 | + | b25zdGFudAQRY3JhZnRfY291bnQ6aW5nb3QRYXJpdGhtZXRpYy5kb3VibGUKZG91YmxlLm1heAhjb25z |
− | b2lmCGNvbnN0YW50AmMAAAAPY29tcGFyaXNvbi5ib29sD2NvbXBhcmlzb24uYm9vbA5jb21wYXJpc29u | + | dGFudAMAAAAAAAAAABFhcml0aG1ldGljLmRvdWJsZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAhi |
− | LmludA1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyCGNvbnN0YW50BAE8CGNvbnN0YW50AgEAAAAI | + | b2FyZF9sbwhjb25zdGFudAQBLRFhcml0aG1ldGljLmRvdWJsZRFnbG9iYWwuZG91YmxlLmdldAhjb25z |
− | Y29uc3RhbnQEAXwOY29tcGFyaXNvbi5pbnQNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25z | + | dGFudAQPY3JhZnRfaW52ZW50b3J5CGNvbnN0YW50BAEqEWFyaXRobWV0aWMuZG91YmxlE2ZhY3Rvcnku |
− | dGFudAQBPghjb25zdGFudAIFAAAACGNvbnN0YW50BAF8EWNvbXBhcmlzb24uZG91YmxlEGxvY2FsLmRv | + | aXRlbXMuY291bnQIY29uc3RhbnQEBXBsYXRlDmFyaXRobWV0aWMuaW50DmFyaXRobWV0aWMuaW50DWxv |
− | dWJsZS5nZXQIY29uc3RhbnQEBWNvdW50CGNvbnN0YW50BAE8CGNvbnN0YW50AwAAAAAAAPA/E2dlbmVy | + | Y2FsLmludC5nZXQIY29uc3RhbnQEBHRpZXIIY29uc3RhbnQEASoIY29uc3RhbnQCAgAAAAhjb25zdGFu |
− | aWMuZXhlY3V0ZXN5bmMIY29uc3RhbnQEDGNyYWZ0IDM6MTppbhBsb2NhbC5kb3VibGUuc2V0CGNvbnN0 | + | dAQBLQhjb25zdGFudAIBAAAACGNvbnN0YW50BAErE2ZhY3RvcnkuaXRlbXMuY291bnQIY29uc3RhbnQE |
− | YW50BAhib2FyZF9oaRFhcml0aG1ldGljLmRvdWJsZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVj | + | DXBsYXRlLmNpcmN1aXQOYXJpdGhtZXRpYy5pbnQOYXJpdGhtZXRpYy5pbnQNbG9jYWwuaW50LmdldAhj |
− | b3VudAhjb25zdGFudAQBKgNpMmQOYXJpdGhtZXRpYy5pbnQOYXJpdGhtZXRpYy5pbnQIY29uc3RhbnQC | + | b25zdGFudAQEdGllcghjb25zdGFudAQBKghjb25zdGFudAICAAAACGNvbnN0YW50BAEtCGNvbnN0YW50 |
− | AigNAAhjb25zdGFudAQBLw5hcml0aG1ldGljLmludAhjb25zdGFudAIKAAAACGNvbnN0YW50BANwb3cN | + | AgEAAAAIY29uc3RhbnQEASsKZG91YmxlLm1heAhjb25zdGFudAMAAAAAAAAAAAtkb3VibGUuY2VpbBFh |
− | bG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFudAQDbW9kCGNvbnN0YW50AgoAAAAQbG9j | + | cml0aG1ldGljLmRvdWJsZRFhcml0aG1ldGljLmRvdWJsZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50 |
− | YWwuZG91YmxlLnNldAhjb25zdGFudAQKY2lyY3VpdF9oaRFhcml0aG1ldGljLmRvdWJsZRBsb2NhbC5k | + | BApjaXJjdWl0X2xvCGNvbnN0YW50BAEtEWFyaXRobWV0aWMuZG91YmxlEWdsb2JhbC5kb3VibGUuZ2V0 |
− | b3VibGUuZ2V0CGNvbnN0YW50BAVjb3VudAhjb25zdGFudAQBKgNpMmQOYXJpdGhtZXRpYy5pbnQOYXJp | + | CGNvbnN0YW50BA9jcmFmdF9pbnZlbnRvcnkIY29uc3RhbnQEASoRYXJpdGhtZXRpYy5kb3VibGUTZmFj |
− | dGhtZXRpYy5pbnQIY29uc3RhbnQCpGwDAAhjb25zdGFudAQBLw5hcml0aG1ldGljLmludAhjb25zdGFu | + | dG9yeS5pdGVtcy5jb3VudAhjb25zdGFudAQFY2FibGUOYXJpdGhtZXRpYy5pbnQOYXJpdGhtZXRpYy5p |
− | dAIKAAAACGNvbnN0YW50BANwb3cNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFudAQD | + | bnQNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFudAQBKghjb25zdGFudAICAAAACGNv |
− | bW9kCGNvbnN0YW50AgoAAAAOZ2xvYmFsLmludC5zZXQIY29uc3RhbnQEEGNyYWZ0X3RpZXI6aW5nb3QO | + | bnN0YW50BAEtCGNvbnN0YW50AgEAAAAIY29uc3RhbnQEASsTZmFjdG9yeS5pdGVtcy5jb3VudAhjb25z |
− | YXJpdGhtZXRpYy5pbnQNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFudAQBKghjb25z | + | dGFudAQHY2lyY3VpdA5hcml0aG1ldGljLmludA5hcml0aG1ldGljLmludA1sb2NhbC5pbnQuZ2V0CGNv |
− | dGFudAICAAAAEWdsb2JhbC5kb3VibGUuc2V0CGNvbnN0YW50BBFjcmFmdF9jb3VudDppbmdvdBFhcml0 | + | bnN0YW50BAR0aWVyCGNvbnN0YW50BAEqCGNvbnN0YW50AgIAAAAIY29uc3RhbnQEAS0IY29uc3RhbnQC |
− | aG1ldGljLmRvdWJsZQpkb3VibGUubWF4CGNvbnN0YW50AwAAAAAAAAAAEWFyaXRobWV0aWMuZG91Ymxl | + | AQAAAAhjb25zdGFudAQBLwhjb25zdGFudAMAAAAAAAAAQBNnZW5lcmljLmV4ZWN1dGVzeW5jCGNvbnN0 |
− | EGxvY2FsLmRvdWJsZS5nZXQIY29uc3RhbnQECGJvYXJkX2hpCGNvbnN0YW50BAEtEWFyaXRobWV0aWMu | + | YW50BAtjcmFmdCBpbmdvdA5nbG9iYWwuaW50LnNldAhjb25zdGFudAQQY3JhZnRfc3RhdHVzOjMuMQhj |
− | ZG91YmxlEWdsb2JhbC5kb3VibGUuZ2V0CGNvbnN0YW50BA9jcmFmdF9pbnZlbnRvcnkIY29uc3RhbnQE | + | b25zdGFudAIBAAAAD2dlbmVyaWMuZXhlY3V0ZQhjb25zdGFudAQPY3JhZnQgMzoxOmJvYXJkD2dlbmVy |
− | ASoRYXJpdGhtZXRpYy5kb3VibGUTZmFjdG9yeS5pdGVtcy5jb3VudAhjb25zdGFudAQFcGxhdGUOYXJp | + | aWMuZXhlY3V0ZQhjb25zdGFudAQRY3JhZnQgMzoxOmNpcmN1aXQRZ2VuZXJpYy53YWl0dW50aWwPY29t |
− | dGhtZXRpYy5pbnQNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFudAQBKghjb25zdGFu | + | cGFyaXNvbi5ib29sD2NvbXBhcmlzb24uYm9vbA9jb21wYXJpc29uLmJvb2wPY29tcGFyaXNvbi5ib29s |
− | dAICAAAACGNvbnN0YW50BAErE2ZhY3RvcnkuaXRlbXMuY291bnQIY29uc3RhbnQEDXBsYXRlLmNpcmN1 | + | DmNvbXBhcmlzb24uaW50Dmdsb2JhbC5pbnQuZ2V0CGNvbnN0YW50BBBjcmFmdF9zdGF0dXM6My4xCGNv |
− | aXQOYXJpdGhtZXRpYy5pbnQNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFudAQBKghj | + | bnN0YW50BAI+PQhjb25zdGFudAIHAAAACGNvbnN0YW50BAEmEWNvbXBhcmlzb24uZG91YmxlE2ZhY3Rv |
− | b25zdGFudAICAAAACGNvbnN0YW50BAErCmRvdWJsZS5tYXgIY29uc3RhbnQDAAAAAAAAAAALZG91Ymxl | + | cnkuaXRlbXMuY291bnQIY29uc3RhbnQEDXBsYXRlLmNpcmN1aXQOYXJpdGhtZXRpYy5pbnQOYXJpdGht |
− | LmNlaWwRYXJpdGhtZXRpYy5kb3VibGURYXJpdGhtZXRpYy5kb3VibGUQbG9jYWwuZG91YmxlLmdldAhj | + | ZXRpYy5pbnQNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFudAQBKghjb25zdGFudAIC |
− | b25zdGFudAQKY2lyY3VpdF9oaQhjb25zdGFudAQBLRFhcml0aG1ldGljLmRvdWJsZRFnbG9iYWwuZG91 | + | AAAACGNvbnN0YW50BAEtCGNvbnN0YW50AgEAAAAIY29uc3RhbnQEAj49EGxvY2FsLmRvdWJsZS5nZXQI |
− | YmxlLmdldAhjb25zdGFudAQPY3JhZnRfaW52ZW50b3J5CGNvbnN0YW50BAEqEWFyaXRobWV0aWMuZG91 | + | Y29uc3RhbnQECGJvYXJkX2xvCGNvbnN0YW50BAEmEWNvbXBhcmlzb24uZG91YmxlE2ZhY3RvcnkuaXRl |
− | YmxlE2ZhY3RvcnkuaXRlbXMuY291bnQIY29uc3RhbnQEBWNhYmxlDmFyaXRobWV0aWMuaW50DWxvY2Fs | + | bXMuY291bnQIY29uc3RhbnQEDXBsYXRlLmNpcmN1aXQOYXJpdGhtZXRpYy5pbnQNbG9jYWwuaW50Lmdl |
− | LmludC5nZXQIY29uc3RhbnQEBHRpZXIIY29uc3RhbnQEASoIY29uc3RhbnQCAgAAAAhjb25zdGFudAQB | + | dAhjb25zdGFudAQEdGllcghjb25zdGFudAQBKghjb25zdGFudAICAAAACGNvbnN0YW50BAI+PRBsb2Nh |
− | KxNmYWN0b3J5Lml0ZW1zLmNvdW50CGNvbnN0YW50BAdjaXJjdWl0DmFyaXRobWV0aWMuaW50DWxvY2Fs | + | bC5kb3VibGUuZ2V0CGNvbnN0YW50BAhib2FyZF9oaQhjb25zdGFudAQBJhFjb21wYXJpc29uLmRvdWJs |
− | LmludC5nZXQIY29uc3RhbnQEBHRpZXIIY29uc3RhbnQEASoIY29uc3RhbnQCAgAAAAhjb25zdGFudAQB | + | ZRNmYWN0b3J5Lml0ZW1zLmNvdW50CGNvbnN0YW50BAdjaXJjdWl0DmFyaXRobWV0aWMuaW50DmFyaXRo |
− | Lwhjb25zdGFudAMAAAAAAAAAQBNnZW5lcmljLmV4ZWN1dGVzeW5jCGNvbnN0YW50BAtjcmFmdCBpbmdv | + | bWV0aWMuaW50DWxvY2FsLmludC5nZXQIY29uc3RhbnQEBHRpZXIIY29uc3RhbnQEASoIY29uc3RhbnQC |
− | dA5nZW5lcmljLmdvdG9pZghjb25zdGFudAJjAAAADmNvbXBhcmlzb24uaW50Dmdsb2JhbC5pbnQuZ2V0 | + | AgAAAAhjb25zdGFudAQBLQhjb25zdGFudAIBAAAACGNvbnN0YW50BAI+PRBsb2NhbC5kb3VibGUuZ2V0 |
− | CGNvbnN0YW50BAxjcmFmdF9zdGF0dXMIY29uc3RhbnQEAT4IY29uc3RhbnQCxwAAABBsb2NhbC5kb3Vi | + | CGNvbnN0YW50BApjaXJjdWl0X2xvCGNvbnN0YW50BAEmEWNvbXBhcmlzb24uZG91YmxlE2ZhY3Rvcnku |
− | bGUuc2V0CGNvbnN0YW50BAhib2FyZF9sbxFhcml0aG1ldGljLmRvdWJsZRBsb2NhbC5kb3VibGUuZ2V0 | + | aXRlbXMuY291bnQIY29uc3RhbnQEB2NpcmN1aXQOYXJpdGhtZXRpYy5pbnQNbG9jYWwuaW50LmdldAhj |
− | CGNvbnN0YW50BAVjb3VudAhjb25zdGFudAQBKgNpMmQOYXJpdGhtZXRpYy5pbnQOYXJpdGhtZXRpYy5p | + | b25zdGFudAQEdGllcghjb25zdGFudAQBKghjb25zdGFudAICAAAACGNvbnN0YW50BAI+PRBsb2NhbC5k |
− | bnQIY29uc3RhbnQCmjANAAhjb25zdGFudAQBLw5hcml0aG1ldGljLmludAhjb25zdGFudAIKAAAACGNv | + | b3VibGUuZ2V0CGNvbnN0YW50BApjaXJjdWl0X2hpDWZhY3RvcnkuY3JhZnQIY29uc3RhbnQEBGNoaXAN |
− | bnN0YW50BANwb3cNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFudAQDbW9kCGNvbnN0 | + | bG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllchBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVjb3Vu |
− | YW50AgoAAAAQbG9jYWwuZG91YmxlLnNldAhjb25zdGFudAQKY2lyY3VpdF9sbxFhcml0aG1ldGljLmRv | + | dA== |
− | dWJsZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVjb3VudAhjb25zdGFudAQBKghjb25zdGFudAMA | + | |src= |
− | AAAAAAAAQA5nbG9iYWwuaW50LnNldAhjb25zdGFudAQQY3JhZnRfdGllcjppbmdvdA5hcml0aG1ldGlj | + | ; Chips |
− | LmludA5hcml0aG1ldGljLmludA1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyCGNvbnN0YW50BAEq | + | :global double craft_inventory |
− | CGNvbnN0YW50AgIAAAAIY29uc3RhbnQEAS0IY29uc3RhbnQCAQAAABFnbG9iYWwuZG91YmxlLnNldAhj | + | :local int tier |
− | b25zdGFudAQRY3JhZnRfY291bnQ6aW5nb3QRYXJpdGhtZXRpYy5kb3VibGUKZG91YmxlLm1heAhjb25z | + | :local double count |
− | dGFudAMAAAAAAAAAABFhcml0aG1ldGljLmRvdWJsZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAhi | + | :local double board_lo |
− | b2FyZF9sbwhjb25zdGFudAQBLRFhcml0aG1ldGljLmRvdWJsZRFnbG9iYWwuZG91YmxlLmdldAhjb25z | + | :local double board_hi |
− | dGFudAQPY3JhZnRfaW52ZW50b3J5CGNvbnN0YW50BAEqEWFyaXRobWV0aWMuZG91YmxlE2ZhY3Rvcnku | + | :local double circuit_lo |
− | aXRlbXMuY291bnQIY29uc3RhbnQEBXBsYXRlDmFyaXRobWV0aWMuaW50DmFyaXRobWV0aWMuaW50DWxv | + | :local double circuit_hi |
− | Y2FsLmludC5nZXQIY29uc3RhbnQEBHRpZXIIY29uc3RhbnQEASoIY29uc3RhbnQCAgAAAAhjb25zdGFu | + | |
− | dAQBLQhjb25zdGFudAIBAAAACGNvbnN0YW50BAErE2ZhY3RvcnkuaXRlbXMuY291bnQIY29uc3RhbnQE | + | tier = global.int.get("craft_tier:3.1") |
− | DXBsYXRlLmNpcmN1aXQOYXJpdGhtZXRpYy5pbnQOYXJpdGhtZXRpYy5pbnQNbG9jYWwuaW50LmdldAhj | + | count = global.double.get("craft_count:3.1") |
− | b25zdGFudAQEdGllcghjb25zdGFudAQBKghjb25zdGFudAICAAAACGNvbnN0YW50BAEtCGNvbnN0YW50 | + | gotoif(99, tier < 1 {{!}} tier > 5 {{!}} count < 1.0) |
− | AgEAAAAIY29uc3RhbnQEASsKZG91YmxlLm1heAhjb25zdGFudAMAAAAAAAAAAAtkb3VibGUuY2VpbBFh | ||
− | cml0aG1ldGljLmRvdWJsZRFhcml0aG1ldGljLmRvdWJsZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50 | ||
− | BApjaXJjdWl0X2xvCGNvbnN0YW50BAEtEWFyaXRobWV0aWMuZG91YmxlEWdsb2JhbC5kb3VibGUuZ2V0 | ||
− | CGNvbnN0YW50BA9jcmFmdF9pbnZlbnRvcnkIY29uc3RhbnQEASoRYXJpdGhtZXRpYy5kb3VibGUTZmFj | ||
− | dG9yeS5pdGVtcy5jb3VudAhjb25zdGFudAQFY2FibGUOYXJpdGhtZXRpYy5pbnQOYXJpdGhtZXRpYy5p | ||
− | bnQNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFudAQBKghjb25zdGFudAICAAAACGNv | ||
− | bnN0YW50BAEtCGNvbnN0YW50AgEAAAAIY29uc3RhbnQEASsTZmFjdG9yeS5pdGVtcy5jb3VudAhjb25z | ||
− | dGFudAQHY2lyY3VpdA5hcml0aG1ldGljLmludA5hcml0aG1ldGljLmludA1sb2NhbC5pbnQuZ2V0CGNv | ||
− | bnN0YW50BAR0aWVyCGNvbnN0YW50BAEqCGNvbnN0YW50AgIAAAAIY29uc3RhbnQEAS0IY29uc3RhbnQC | ||
− | AQAAAAhjb25zdGFudAQBLwhjb25zdGFudAMAAAAAAAAAQBNnZW5lcmljLmV4ZWN1dGVzeW5jCGNvbnN0 | ||
− | YW50BAtjcmFmdCBpbmdvdA5nbG9iYWwuaW50LnNldAhjb25zdGFudAQQY3JhZnRfc3RhdHVzOjMuMQhj | ||
− | b25zdGFudAIBAAAAD2dlbmVyaWMuZXhlY3V0ZQhjb25zdGFudAQPY3JhZnQgMzoxOmJvYXJkD2dlbmVy | ||
− | aWMuZXhlY3V0ZQhjb25zdGFudAQRY3JhZnQgMzoxOmNpcmN1aXQRZ2VuZXJpYy53YWl0dW50aWwPY29t | ||
− | cGFyaXNvbi5ib29sD2NvbXBhcmlzb24uYm9vbA9jb21wYXJpc29uLmJvb2wPY29tcGFyaXNvbi5ib29s | ||
− | DmNvbXBhcmlzb24uaW50Dmdsb2JhbC5pbnQuZ2V0CGNvbnN0YW50BBBjcmFmdF9zdGF0dXM6My4xCGNv | ||
− | bnN0YW50BAI+PQhjb25zdGFudAIHAAAACGNvbnN0YW50BAEmEWNvbXBhcmlzb24uZG91YmxlE2ZhY3Rv | ||
− | cnkuaXRlbXMuY291bnQIY29uc3RhbnQEDXBsYXRlLmNpcmN1aXQOYXJpdGhtZXRpYy5pbnQOYXJpdGht | ||
− | ZXRpYy5pbnQNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFudAQBKghjb25zdGFudAIC | ||
− | AAAACGNvbnN0YW50BAEtCGNvbnN0YW50AgEAAAAIY29uc3RhbnQEAj49EGxvY2FsLmRvdWJsZS5nZXQI | ||
− | Y29uc3RhbnQECGJvYXJkX2xvCGNvbnN0YW50BAEmEWNvbXBhcmlzb24uZG91YmxlE2ZhY3RvcnkuaXRl | ||
− | bXMuY291bnQIY29uc3RhbnQEDXBsYXRlLmNpcmN1aXQOYXJpdGhtZXRpYy5pbnQNbG9jYWwuaW50Lmdl | ||
− | dAhjb25zdGFudAQEdGllcghjb25zdGFudAQBKghjb25zdGFudAICAAAACGNvbnN0YW50BAI+PRBsb2Nh | ||
− | bC5kb3VibGUuZ2V0CGNvbnN0YW50BAhib2FyZF9oaQhjb25zdGFudAQBJhFjb21wYXJpc29uLmRvdWJs | ||
− | ZRNmYWN0b3J5Lml0ZW1zLmNvdW50CGNvbnN0YW50BAdjaXJjdWl0DmFyaXRobWV0aWMuaW50DmFyaXRo | ||
− | bWV0aWMuaW50DWxvY2FsLmludC5nZXQIY29uc3RhbnQEBHRpZXIIY29uc3RhbnQEASoIY29uc3RhbnQC | ||
− | AgAAAAhjb25zdGFudAQBLQhjb25zdGFudAIBAAAACGNvbnN0YW50BAI+PRBsb2NhbC5kb3VibGUuZ2V0 | ||
− | CGNvbnN0YW50BApjaXJjdWl0X2xvCGNvbnN0YW50BAEmEWNvbXBhcmlzb24uZG91YmxlE2ZhY3Rvcnku | ||
− | aXRlbXMuY291bnQIY29uc3RhbnQEB2NpcmN1aXQOYXJpdGhtZXRpYy5pbnQNbG9jYWwuaW50LmdldAhj | ||
− | b25zdGFudAQEdGllcghjb25zdGFudAQBKghjb25zdGFudAICAAAACGNvbnN0YW50BAI+PRBsb2NhbC5k | ||
− | b3VibGUuZ2V0CGNvbnN0YW50BApjaXJjdWl0X2hpDWZhY3RvcnkuY3JhZnQIY29uc3RhbnQEBGNoaXAN | ||
− | bG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllchBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVjb3Vu | ||
− | dA== | ||
− | + | ; Verify ingot resources | |
− | + | ; Also craft lower tier chips for input | |
− | + | executesync("craft 3:1:in") | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | ; Ensure we have enough ingots (hi) | |
− | + | board_hi = count * i2d((862210 / (10 ^ tier)) % 10) | |
− | + | circuit_hi = count * i2d((224420 / (10 ^ tier)) % 10) | |
− | ; | ||
− | |||
− | |||
global.int.set("craft_tier:ingot", tier * 2) | global.int.set("craft_tier:ingot", tier * 2) | ||
− | global.double.set("craft_count:ingot", max(0.0, | + | global.double.set("craft_count:ingot", max(0.0, board_hi - craft_inventory * (count("plate", tier * 2) + count("plate.circuit", tier * 2))) + max(0.0, ceil((circuit_hi - craft_inventory * (count("cable", tier * 2) + count("circuit", tier * 2)))/2.0))) |
− | |||
executesync("craft ingot") | executesync("craft ingot") | ||
gotoif(99, global.int.get("craft_status") > 199) | gotoif(99, global.int.get("craft_status") > 199) | ||
− | ; | + | ; Ensure we have enough ingots (lo) |
− | + | board_lo = count * i2d((864410 / (10 ^ tier)) % 10) | |
− | + | circuit_lo = count * 2.0 | |
global.int.set("craft_tier:ingot", tier * 2 - 1) | global.int.set("craft_tier:ingot", tier * 2 - 1) | ||
− | global.double.set("craft_count:ingot", max(0.0, | + | global.double.set("craft_count:ingot", max(0.0, board_lo - craft_inventory * (count("plate", tier * 2 - 1) + count("plate.circuit", tier * 2 - 1))) + max(0.0, ceil((circuit_lo - craft_inventory * (count("cable", tier * 2 - 1) + count("circuit", tier * 2 - 1)))/2.0))) |
− | |||
executesync("craft ingot") | executesync("craft ingot") | ||
− | |||
− | + | global.int.set("craft_status:3.1", 1) | |
− | global.int.set(" | + | execute("craft 3:1:board") |
− | + | execute("craft 3:1:circuit") | |
− | |||
− | |||
− | + | waituntil(global.int.get("craft_status:3.1") >= 7 & count("plate.circuit", tier * 2 - 1) >= board_lo & count("plate.circuit", tier * 2) >= board_hi & count("circuit", tier * 2 - 1) >= circuit_lo & count("circuit", tier * 2) >= circuit_hi) | |
− | global.int. | + | craft("chip", tier, count) |
− | + | }} | |
− | |||
|- | |- | ||
− | | | + | |craft 3:1:in |
+ | |18 | ||
+ | |{{AIScript | ||
+ | |code= | ||
DGNyYWZ0IDM6MTppbgAAAAAAAAAAEgAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmdsb2Jh | DGNyYWZ0IDM6MTppbgAAAAAAAAAAEgAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmdsb2Jh | ||
bC5pbnQuZ2V0CGNvbnN0YW50BA5jcmFmdF90aWVyOjMuMRBsb2NhbC5kb3VibGUuc2V0CGNvbnN0YW50 | bC5pbnQuZ2V0CGNvbnN0YW50BA5jcmFmdF90aWVyOjMuMRBsb2NhbC5kb3VibGUuc2V0CGNvbnN0YW50 | ||
Line 279: | Line 223: | ||
aWVyEWdsb2JhbC5kb3VibGUuc2V0CGNvbnN0YW50BA9jcmFmdF9jb3VudDozLjEQbG9jYWwuZG91Ymxl | aWVyEWdsb2JhbC5kb3VibGUuc2V0CGNvbnN0YW50BA9jcmFmdF9jb3VudDozLjEQbG9jYWwuZG91Ymxl | ||
LmdldAhjb25zdGFudAQFY291bnQ= | LmdldAhjb25zdGFudAQFY291bnQ= | ||
− | + | |src= | |
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
:global double craft_inventory | :global double craft_inventory | ||
:local int tier | :local int tier | ||
− | :local double | + | :local double count |
− | |||
tier = global.int.get("craft_tier:3.1") | tier = global.int.get("craft_tier:3.1") | ||
− | + | count = global.double.get("craft_count:3.1") | |
− | |||
− | ; | + | ; Ingots (hi) |
− | + | ; board_hi = global.double.get("craft_count:3.1") * i2d((862210 / (10 ^ mytier)) % 10) | |
− | + | ; circuit_hi = global.double.get("craft_count:3.1") * i2d((224420 / (10 ^ mytier)) % 10) | |
− | + | global.int.set("craft_tier:ingot", tier * 2) | |
+ | global.double.set("craft_count:ingot", max(0.0, count * i2d((862210 / (10 ^ tier)) % 10) - craft_inventory * (count("plate", tier * 2) + count("plate.circuit", tier * 2))) + max(0.0, ceil((count * i2d((224420 / (10 ^ tier)) % 10) - craft_inventory * (count("cable", tier * 2) + count("circuit", tier * 2)))/2.0))) | ||
+ | global.int.set("craft_verify:ingot", 1) | ||
+ | executesync("craft ingot") | ||
+ | gotoif(99, global.int.get("craft_status") > 199) | ||
− | + | ; Ingots (lo) | |
− | + | ; board_lo = global.double.get("craft_count:3.1") * i2d((864410 / (10 ^ mytier)) % 10) | |
− | + | ; circuit_lo = global.double.get("craft_count:3.1") * 2.0 | |
+ | global.int.set("craft_tier:ingot", tier * 2 - 1) | ||
+ | global.double.set("craft_count:ingot", max(0.0, count * i2d((864410 / (10 ^ tier)) % 10) - craft_inventory * (count("plate", tier * 2 - 1) + count("plate.circuit", tier * 2 - 1))) + max(0.0, ceil((count*2.0 - craft_inventory * (count("cable", tier * 2 - 1) + count("circuit", tier * 2 - 1)))/2.0))) | ||
+ | global.int.set("craft_verify:ingot", 1) | ||
+ | executesync("craft ingot") | ||
+ | gotoif(99, global.int.get("craft_status") > 199) | ||
− | ; | + | ; Input chips |
− | + | global.int.set("craft_tier:3.1", tier - 1) | |
− | + | global.double.set("craft_count:3.1", count * 2.0 * (floor(664200.0 / (10.0 ^ i2d(tier))) % 10.0) - craft_inventory * count("chip", tier - 1)) | |
− | + | executesync("craft 3:1") | |
+ | gotoif(99, global.int.get("craft_status") > 199) | ||
− | + | ; Restore state for this tier | |
− | + | global.int.set("craft_tier:3.1", tier) | |
− | + | global.double.set("craft_count:3.1", count) | |
+ | }} | ||
− | + | |- | |
− | + | |craft 3:1:board | |
− | + | |16 | |
− | | | + | |{{AIScript |
− | | | + | |code= |
D2NyYWZ0IDM6MTpib2FyZAAAAAAAAAAAEAAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmds | D2NyYWZ0IDM6MTpib2FyZAAAAAAAAAAAEAAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmds | ||
b2JhbC5pbnQuZ2V0CGNvbnN0YW50BA5jcmFmdF90aWVyOjMuMRBsb2NhbC5kb3VibGUuc2V0CGNvbnN0 | b2JhbC5pbnQuZ2V0CGNvbnN0YW50BA5jcmFmdF90aWVyOjMuMRBsb2NhbC5kb3VibGUuc2V0CGNvbnN0 | ||
Line 413: | Line 356: | ||
MQ5hcml0aG1ldGljLmludA5nbG9iYWwuaW50LmdldAhjb25zdGFudAQQY3JhZnRfc3RhdHVzOjMuMQhj | MQ5hcml0aG1ldGljLmludA5nbG9iYWwuaW50LmdldAhjb25zdGFudAQQY3JhZnRfc3RhdHVzOjMuMQhj | ||
b25zdGFudAQBKwhjb25zdGFudAICAAAA | b25zdGFudAQBKwhjb25zdGFudAICAAAA | ||
− | + | |src= | |
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
:global double craft_inventory | :global double craft_inventory | ||
:local int tier | :local int tier | ||
− | :local double | + | :local double board_lo |
− | :local double | + | :local double board_hi |
tier = global.int.get("craft_tier:3.1") | tier = global.int.get("craft_tier:3.1") | ||
− | + | board_lo = global.double.get("craft_count:3.1") * i2d((864410 / (10 ^ tier)) % 10) | |
− | + | board_hi = global.double.get("craft_count:3.1") * i2d((862210 / (10 ^ tier)) % 10) | |
− | ; Craft | + | ; Craft plates |
− | lo1: gotoif(hi1, | + | lo1: gotoif(hi1, board_lo <= craft_inventory * (count("plate.circuit", tier * 2 - 1) + count("plate", tier * 2 - 1))) |
− | + | waitwhile(active("presser")) | |
− | + | produce("ingot", tier * 2 - 1, board_lo - craft_inventory * (count("plate.circuit", tier * 2 - 1) + count("plate", tier * 2 - 1)), "presser") | |
− | hi1: gotoif(lo2, | + | hi1: gotoif(lo2, board_hi <= craft_inventory * (count("plate.circuit", tier * 2) + count("plate", tier * 2))) |
− | + | waitwhile(active("presser")) | |
− | + | produce("ingot", tier * 2, board_hi - craft_inventory * (count("plate.circuit", tier * 2) + count("plate", tier * 2)), "presser") | |
− | ; Craft circuit | + | ; Craft circuit boards |
− | lo2: gotoif(hi2, | + | lo2: gotoif(hi2, board_lo <= craft_inventory * (count("plate.circuit", tier * 2 - 1))) |
− | waitwhile(count(" | + | waitwhile(active("refinery") {{!}} count("plate", tier * 2 - 1) < board_lo - craft_inventory * (count("plate.circuit", tier * 2 - 1))) |
− | produce(" | + | produce("plate", tier * 2 - 1, board_lo - craft_inventory * (count("plate.circuit", tier * 2 - 1)), "refinery") |
− | hi2: gotoif(end, | + | hi2: gotoif(end, board_hi <= craft_inventory * (count("plate.circuit", tier * 2))) |
− | waitwhile(count(" | + | waitwhile(active("refinery") {{!}} count("plate", tier * 2) < board_hi - craft_inventory * (count("plate.circuit", tier * 2))) |
− | produce(" | + | produce("plate", tier * 2, board_hi - craft_inventory * (count("plate.circuit", tier * 2)), "refinery") |
− | end: global.int.set("craft_status:3.1", global.int.get("craft_status:3.1") + | + | end: global.int.set("craft_status:3.1", global.int.get("craft_status:3.1") + 2) |
+ | }} | ||
− | |||
|- | |- | ||
− | | | + | |craft 3:1:circuit |
+ | |16 | ||
+ | |{{AIScript | ||
+ | |code= | ||
EWNyYWZ0IDM6MTpjaXJjdWl0AAAAAAAAAAAQAAAADWxvY2FsLmludC5zZXQIY29uc3RhbnQEBHRpZXIO | EWNyYWZ0IDM6MTpjaXJjdWl0AAAAAAAAAAAQAAAADWxvY2FsLmludC5zZXQIY29uc3RhbnQEBHRpZXIO | ||
Z2xvYmFsLmludC5nZXQIY29uc3RhbnQEDmNyYWZ0X3RpZXI6My4xEGxvY2FsLmRvdWJsZS5zZXQIY29u | Z2xvYmFsLmludC5nZXQIY29uc3RhbnQEDmNyYWZ0X3RpZXI6My4xEGxvY2FsLmRvdWJsZS5zZXQIY29u | ||
Line 546: | Line 482: | ||
ZnRfc3RhdHVzOjMuMQ5hcml0aG1ldGljLmludA5nbG9iYWwuaW50LmdldAhjb25zdGFudAQQY3JhZnRf | ZnRfc3RhdHVzOjMuMQ5hcml0aG1ldGljLmludA5nbG9iYWwuaW50LmdldAhjb25zdGFudAQQY3JhZnRf | ||
c3RhdHVzOjMuMQhjb25zdGFudAQBKwhjb25zdGFudAIEAAAA | c3RhdHVzOjMuMQhjb25zdGFudAQBKwhjb25zdGFudAIEAAAA | ||
− | + | |src= | |
− | + | :global double craft_inventory | |
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | :global | ||
− | |||
:local int tier | :local int tier | ||
+ | :local double circuit_lo | ||
+ | :local double circuit_hi | ||
− | tier = global.int.get("craft_tier:3. | + | tier = global.int.get("craft_tier:3.1") |
− | + | circuit_lo = global.double.get("craft_count:3.1") * 2.0 | |
− | gotoif( | + | circuit_hi = global.double.get("craft_count:3.1") * i2d((224420 / (10 ^ tier)) % 10) |
+ | |||
+ | ; Craft cables | ||
+ | lo1: gotoif(hi1, circuit_lo <= craft_inventory * (count("circuit", tier * 2 - 1) + count("cable", tier * 2 - 1))) | ||
+ | waitwhile(active("refinery")) | ||
+ | produce("ingot", tier * 2 - 1, ceil((circuit_lo - craft_inventory * (count("circuit", tier * 2 - 1) + count("cable", tier * 2 - 1))) / 2.0), "refinery") | ||
− | + | hi1: gotoif(lo2, circuit_hi <= craft_inventory * (count("circuit", tier * 2) + count("cable", tier * 2))) | |
− | + | waitwhile(active("refinery")) | |
− | + | produce("ingot", tier * 2, ceil((circuit_hi - craft_inventory * (count("circuit", tier * 2) + count("cable", tier * 2))) / 2.0), "refinery") | |
− | |||
− | waitwhile(active(" | + | ; Craft circuit wires |
− | produce(" | + | lo2: gotoif(hi2, circuit_lo <= craft_inventory * count("circuit", tier * 2 - 1)) |
− | < | + | waitwhile(count("cable", tier * 2 - 1) < circuit_lo - craft_inventory * count("circuit", tier * 2 - 1) {{!}} active("assembler")) |
− | | | + | produce("cable", tier * 2 - 1, circuit_lo - craft_inventory * count("circuit", tier * 2 - 1), "assembler") |
− | | | + | |
− | CWNyYWZ0IDM6MgAAAAAAAAAACQAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmdsb2JhbC5p | + | hi2: gotoif(end, circuit_hi <= craft_inventory * count("circuit", tier * 2)) |
− | bnQuZ2V0CGNvbnN0YW50BA5jcmFmdF90aWVyOjMuMhBsb2NhbC5kb3VibGUuc2V0CGNvbnN0YW50BAVj | + | waitwhile(count("cable", tier * 2) < circuit_hi - craft_inventory * count("circuit", tier * 2) {{!}} active("assembler")) |
− | b3VudBFnbG9iYWwuZG91YmxlLmdldAhjb25zdGFudAQPY3JhZnRfY291bnQ6My4yDmdlbmVyaWMuZ290 | + | produce("cable", tier * 2, circuit_hi - craft_inventory * count("circuit", tier * 2), "assembler") |
+ | |||
+ | end: global.int.set("craft_status:3.1", global.int.get("craft_status:3.1") + 4) | ||
+ | }} | ||
+ | |} | ||
+ | |||
+ | |||
+ | ====Plates (2)==== | ||
+ | [[File:Gold plate.png|frameless]] | ||
+ | |||
+ | {| class="wikitable" | ||
+ | !Name | ||
+ | !Lines | ||
+ | !Code | ||
+ | |- | ||
+ | |craft 3:2 | ||
+ | |9 | ||
+ | |{{AIScript | ||
+ | |code= | ||
+ | CWNyYWZ0IDM6MgAAAAAAAAAACQAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmdsb2JhbC5p | ||
+ | bnQuZ2V0CGNvbnN0YW50BA5jcmFmdF90aWVyOjMuMhBsb2NhbC5kb3VibGUuc2V0CGNvbnN0YW50BAVj | ||
+ | b3VudBFnbG9iYWwuZG91YmxlLmdldAhjb25zdGFudAQPY3JhZnRfY291bnQ6My4yDmdlbmVyaWMuZ290 | ||
b2lmCGNvbnN0YW50AmMAAAAPY29tcGFyaXNvbi5ib29sD2NvbXBhcmlzb24uYm9vbA5jb21wYXJpc29u | b2lmCGNvbnN0YW50AmMAAAAPY29tcGFyaXNvbi5ib29sD2NvbXBhcmlzb24uYm9vbA5jb21wYXJpc29u | ||
LmludA1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyCGNvbnN0YW50BAE8CGNvbnN0YW50AgEAAAAI | LmludA1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyCGNvbnN0YW50BAE8CGNvbnN0YW50AgEAAAAI | ||
Line 602: | Line 543: | ||
eS5wcm9kdWNlCGNvbnN0YW50BAVpbmdvdA1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyEGxvY2Fs | eS5wcm9kdWNlCGNvbnN0YW50BAVpbmdvdA1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyEGxvY2Fs | ||
LmRvdWJsZS5nZXQIY29uc3RhbnQEBWNvdW50CGNvbnN0YW50BAdwcmVzc2Vy | LmRvdWJsZS5nZXQIY29uc3RhbnQEBWNvdW50CGNvbnN0YW50BAdwcmVzc2Vy | ||
+ | |src= | ||
+ | ; Regular plates | ||
+ | :global int craft_status | ||
+ | :local double count | ||
+ | :local int tier | ||
+ | |||
+ | tier = global.int.get("craft_tier:3.2") | ||
+ | count = global.double.get("craft_count:3.2") | ||
+ | gotoif(99, tier < 1 {{!}} tier > 10 {{!}} count < 1.0) | ||
+ | |||
+ | global.int.set("craft_tier:ingot", tier) | ||
+ | global.double.set("craft_count:ingot", count) | ||
+ | executesync("craft ingot") | ||
+ | gotoif(99, craft_status > 199) | ||
− | + | waitwhile(active("presser")) | |
+ | produce("ingot", tier, count, "presser") | ||
+ | }} | ||
|} | |} | ||
− | + | ||
− | + | ||
− | + | ====Dense plates (3)==== | |
− | |||
[[File:Dense gold plate.png|frameless]] | [[File:Dense gold plate.png|frameless]] | ||
− | + | ||
{| class="wikitable" | {| class="wikitable" | ||
!Name | !Name | ||
Line 618: | Line 574: | ||
|craft 3:3 | |craft 3:3 | ||
|14 | |14 | ||
− | | | + | |{{AIScript |
− | + | |code= | |
− | + | CWNyYWZ0IDM6MwAAAAAAAAAADgAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmdsb2JhbC5p | |
− | + | bnQuZ2V0CGNvbnN0YW50BA5jcmFmdF90aWVyOjMuMxBsb2NhbC5kb3VibGUuc2V0CGNvbnN0YW50BAVj | |
− | | | + | b3VudBFnbG9iYWwuZG91YmxlLmdldAhjb25zdGFudAQPY3JhZnRfY291bnQ6My4zDmdlbmVyaWMuZ290 |
− | ; Dense plates | + | b2lmCGNvbnN0YW50AmMAAAAPY29tcGFyaXNvbi5ib29sD2NvbXBhcmlzb24uYm9vbA5jb21wYXJpc29u |
− | :global double craft_inventory | + | LmludA1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyCGNvbnN0YW50BAE8CGNvbnN0YW50AgEAAAAI |
− | :local int tier | + | Y29uc3RhbnQEAXwOY29tcGFyaXNvbi5pbnQNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25z |
− | :local double count | + | dGFudAQBPghjb25zdGFudAIKAAAACGNvbnN0YW50BAF8EWNvbXBhcmlzb24uZG91YmxlEGxvY2FsLmRv |
− | :local double plates | + | dWJsZS5nZXQIY29uc3RhbnQEBWNvdW50CGNvbnN0YW50BAE8CGNvbnN0YW50AwAAAAAAAPA/EGxvY2Fs |
− | + | LmRvdWJsZS5zZXQIY29uc3RhbnQEBnBsYXRlcxFhcml0aG1ldGljLmRvdWJsZRFhcml0aG1ldGljLmRv | |
− | tier = global.int.get("craft_tier:3.3") | + | dWJsZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVjb3VudAhjb25zdGFudAQBKghjb25zdGFudAMA |
− | count = global.double.get("craft_count:3.3") | + | AAAAAAAiQAhjb25zdGFudAQBLRFhcml0aG1ldGljLmRvdWJsZRFnbG9iYWwuZG91YmxlLmdldAhjb25z |
− | gotoif(99, tier < 1 {{!}} tier > 10 {{!}} count < 1.0) | + | dGFudAQPY3JhZnRfaW52ZW50b3J5CGNvbnN0YW50BAEqE2ZhY3RvcnkuaXRlbXMuY291bnQIY29uc3Rh |
− | + | bnQEC3BsYXRlLnN0YWNrDWxvY2FsLmludC5nZXQIY29uc3RhbnQEBHRpZXIOZ2xvYmFsLmludC5zZXQI | |
− | plates = count * 9.0 - craft_inventory * count("plate.stack", tier) | + | Y29uc3RhbnQEEGNyYWZ0X3RpZXI6aW5nb3QNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllchFnbG9i |
− | + | YWwuZG91YmxlLnNldAhjb25zdGFudAQRY3JhZnRfY291bnQ6aW5nb3QRYXJpdGhtZXRpYy5kb3VibGUQ | |
− | global.int.set("craft_tier:ingot", tier) | + | bG9jYWwuZG91YmxlLmdldAhjb25zdGFudAQGcGxhdGVzCGNvbnN0YW50BAEtEWFyaXRobWV0aWMuZG91 |
− | global.double.set("craft_count:ingot", plates - craft_inventory * count("plate", tier)) | + | YmxlEWdsb2JhbC5kb3VibGUuZ2V0CGNvbnN0YW50BA9jcmFmdF9pbnZlbnRvcnkIY29uc3RhbnQEASoT |
− | executesync("craft ingot") | + | ZmFjdG9yeS5pdGVtcy5jb3VudAhjb25zdGFudAQFcGxhdGUNbG9jYWwuaW50LmdldAhjb25zdGFudAQE |
− | gotoif(99, global.int.get("craft_status") > 199) | + | dGllchNnZW5lcmljLmV4ZWN1dGVzeW5jCGNvbnN0YW50BAtjcmFmdCBpbmdvdA5nZW5lcmljLmdvdG9p |
− | + | Zghjb25zdGFudAJjAAAADmNvbXBhcmlzb24uaW50Dmdsb2JhbC5pbnQuZ2V0CGNvbnN0YW50BAxjcmFm | |
− | + | dF9zdGF0dXMIY29uc3RhbnQEAT4IY29uc3RhbnQCxwAAAA5nZW5lcmljLmdvdG9pZghjb25zdGFudAIM | |
− | + | AAAAEWNvbXBhcmlzb24uZG91YmxlEGxvY2FsLmRvdWJsZS5nZXQIY29uc3RhbnQEBnBsYXRlcwhjb25z | |
− | + | dGFudAQCPD0RYXJpdGhtZXRpYy5kb3VibGURZ2xvYmFsLmRvdWJsZS5nZXQIY29uc3RhbnQED2NyYWZ0 | |
− | + | X2ludmVudG9yeQhjb25zdGFudAQBKhNmYWN0b3J5Lml0ZW1zLmNvdW50CGNvbnN0YW50BAVwbGF0ZQ1s | |
− | + | b2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyEWdlbmVyaWMud2FpdHdoaWxlFmZhY3RvcnkubWFjaGlu | |
− | + | ZS5hY3RpdmUIY29uc3RhbnQEB3ByZXNzZXIPZmFjdG9yeS5wcm9kdWNlCGNvbnN0YW50BAVpbmdvdA1s | |
− | + | b2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyEWFyaXRobWV0aWMuZG91YmxlEGxvY2FsLmRvdWJsZS5n | |
− | + | ZXQIY29uc3RhbnQEBnBsYXRlcwhjb25zdGFudAQBLRFhcml0aG1ldGljLmRvdWJsZRFnbG9iYWwuZG91 | |
− | + | YmxlLmdldAhjb25zdGFudAQPY3JhZnRfaW52ZW50b3J5CGNvbnN0YW50BAEqE2ZhY3RvcnkuaXRlbXMu | |
− | + | Y291bnQIY29uc3RhbnQEBXBsYXRlDWxvY2FsLmludC5nZXQIY29uc3RhbnQEBHRpZXIIY29uc3RhbnQE | |
− | + | B3ByZXNzZXIRZ2VuZXJpYy53YWl0d2hpbGUPY29tcGFyaXNvbi5ib29sEWNvbXBhcmlzb24uZG91Ymxl | |
− | + | E2ZhY3RvcnkuaXRlbXMuY291bnQIY29uc3RhbnQEBXBsYXRlDWxvY2FsLmludC5nZXQIY29uc3RhbnQE | |
− | + | BHRpZXIIY29uc3RhbnQEATwQbG9jYWwuZG91YmxlLmdldAhjb25zdGFudAQGcGxhdGVzCGNvbnN0YW50 | |
− | + | BAF8FmZhY3RvcnkubWFjaGluZS5hY3RpdmUIY29uc3RhbnQEB3ByZXNzZXINZmFjdG9yeS5jcmFmdAhj | |
− | + | b25zdGFudAQLcGxhdGUuc3RhY2sNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllchFhcml0aG1ldGlj | |
− | + | LmRvdWJsZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVjb3VudAhjb25zdGFudAQBLRFhcml0aG1l | |
− | + | dGljLmRvdWJsZRFnbG9iYWwuZG91YmxlLmdldAhjb25zdGFudAQPY3JhZnRfaW52ZW50b3J5CGNvbnN0 | |
− | + | YW50BAEqE2ZhY3RvcnkuaXRlbXMuY291bnQIY29uc3RhbnQEC3BsYXRlLnN0YWNrDWxvY2FsLmludC5n | |
− | + | ZXQIY29uc3RhbnQEBHRpZXIPZmFjdG9yeS5wcm9kdWNlCGNvbnN0YW50BAtwbGF0ZS5zdGFjaw1sb2Nh | |
− | + | bC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyEGxvY2FsLmRvdWJsZS5nZXQIY29uc3RhbnQEBWNvdW50CGNv | |
− | + | bnN0YW50BAdwcmVzc2Vy | |
− | + | |src= | |
− | + | ; Dense plates | |
− | + | :global double craft_inventory | |
− | + | :local int tier | |
− | + | :local double count | |
− | + | :local double plates | |
− | + | ||
− | + | tier = global.int.get("craft_tier:3.3") | |
− | + | count = global.double.get("craft_count:3.3") | |
− | + | gotoif(99, tier < 1 {{!}} tier > 10 {{!}} count < 1.0) | |
− | + | ||
− | + | plates = count * 9.0 - craft_inventory * count("plate.stack", tier) | |
− | + | ||
− | + | global.int.set("craft_tier:ingot", tier) | |
− | + | global.double.set("craft_count:ingot", plates - craft_inventory * count("plate", tier)) | |
− | + | executesync("craft ingot") | |
− | + | gotoif(99, global.int.get("craft_status") > 199) | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | < | + | plates: gotoif(stacks, plates <= craft_inventory * count("plate", tier)) |
− | + | waitwhile(active("presser")) | |
− | |} | + | produce("ingot", tier, plates - craft_inventory * count("plate", tier), "presser") |
− | + | ||
− | + | stacks: waitwhile(count("plate", tier) < plates {{!}} active("presser")) | |
− | + | craft("plate.stack", tier, count - craft_inventory * count("plate.stack", tier)) | |
− | [[File:Gold block.png|frameless]] | + | produce("plate.stack", tier, count, "presser") |
− | + | }} | |
− | {| class="wikitable" | + | |} |
+ | |||
+ | |||
+ | ====Blocks (4)==== | ||
+ | [[File:Gold block.png|frameless]] | ||
+ | |||
+ | {| class="wikitable" | ||
!Name | !Name | ||
!Lines | !Lines | ||
Line 709: | Line 656: | ||
|craft 3:4 | |craft 3:4 | ||
|10 | |10 | ||
− | | | + | |{{AIScript |
− | + | |code= | |
− | + | CWNyYWZ0IDM6NAAAAAAAAAAACgAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmdsb2JhbC5p | |
− | + | bnQuZ2V0CGNvbnN0YW50BA5jcmFmdF90aWVyOjMuNBBsb2NhbC5kb3VibGUuc2V0CGNvbnN0YW50BAVj | |
− | + | b3VudBFnbG9iYWwuZG91YmxlLmdldAhjb25zdGFudAQPY3JhZnRfY291bnQ6My40DmdlbmVyaWMuZ290 | |
− | + | b2lmCGNvbnN0YW50AmMAAAAPY29tcGFyaXNvbi5ib29sD2NvbXBhcmlzb24uYm9vbA5jb21wYXJpc29u | |
− | + | LmludA1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyCGNvbnN0YW50BAE8CGNvbnN0YW50AgEAAAAI | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | CWNyYWZ0IDM6NAAAAAAAAAAACgAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmdsb2JhbC5p | ||
− | bnQuZ2V0CGNvbnN0YW50BA5jcmFmdF90aWVyOjMuNBBsb2NhbC5kb3VibGUuc2V0CGNvbnN0YW50BAVj | ||
− | b3VudBFnbG9iYWwuZG91YmxlLmdldAhjb25zdGFudAQPY3JhZnRfY291bnQ6My40DmdlbmVyaWMuZ290 | ||
− | b2lmCGNvbnN0YW50AmMAAAAPY29tcGFyaXNvbi5ib29sD2NvbXBhcmlzb24uYm9vbA5jb21wYXJpc29u | ||
− | LmludA1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyCGNvbnN0YW50BAE8CGNvbnN0YW50AgEAAAAI | ||
Y29uc3RhbnQEAXwOY29tcGFyaXNvbi5pbnQNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25z | Y29uc3RhbnQEAXwOY29tcGFyaXNvbi5pbnQNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25z | ||
dGFudAQBPghjb25zdGFudAIKAAAACGNvbnN0YW50BAF8EWNvbXBhcmlzb24uZG91YmxlEGxvY2FsLmRv | dGFudAQBPghjb25zdGFudAIKAAAACGNvbnN0YW50BAF8EWNvbXBhcmlzb24uZG91YmxlEGxvY2FsLmRv | ||
Line 764: | Line 685: | ||
b25zdGFudAQOcGxhdGVzcGVyYmxvY2sNZmFjdG9yeS5jcmFmdAhjb25zdGFudAQFYmxvY2sNbG9jYWwu | b25zdGFudAQOcGxhdGVzcGVyYmxvY2sNZmFjdG9yeS5jcmFmdAhjb25zdGFudAQFYmxvY2sNbG9jYWwu | ||
aW50LmdldAhjb25zdGFudAQEdGllchBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVjb3VudA== | aW50LmdldAhjb25zdGFudAQEdGllchBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVjb3VudA== | ||
− | + | |src= | |
− | </ | + | ; Blocks |
− | + | :global double craft_inventory | |
+ | :local int tier | ||
+ | :local double count | ||
+ | :local double platesperblock | ||
+ | :local double stacks | ||
+ | :local double plates | ||
+ | |||
+ | tier = global.int.get("craft_tier:3.4") | ||
+ | count = global.double.get("craft_count:3.4") | ||
+ | gotoif(99, tier < 1 {{!}} tier > 10 {{!}} count < 1.0) | ||
+ | |||
+ | plates: platesperblock = 4.0 * round((33332222220.0 / (10.0 ^ i2d(tier))) % 10.0) | ||
+ | global.int.set("craft_tier:3.3", tier) | ||
+ | global.double.set("craft_count:3.3", count * platesperblock - craft_inventory * count("plate.dense", tier)) | ||
+ | executesync("craft 3:3") | ||
+ | gotoif(99, global.int.get("craft_status") > 199) | ||
+ | |||
+ | waitwhile(count("plate.dense", tier) < count * platesperblock) | ||
+ | craft("block", tier, count) | ||
+ | }} | ||
|} | |} | ||
− | + | ||
− | + | ||
− | + | ====Cables (5)==== | |
[[File:Golden cable.png|frameless]] | [[File:Golden cable.png|frameless]] | ||
− | + | ||
{| class="wikitable" | {| class="wikitable" | ||
!Name | !Name | ||
Line 780: | Line 720: | ||
|craft 3:5 | |craft 3:5 | ||
|9 | |9 | ||
− | | | + | |{{AIScript |
− | + | |code= | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
CWNyYWZ0IDM6NQAAAAAAAAAACQAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmdsb2JhbC5p | CWNyYWZ0IDM6NQAAAAAAAAAACQAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmdsb2JhbC5p | ||
bnQuZ2V0CGNvbnN0YW50BA5jcmFmdF90aWVyOjMuNRBsb2NhbC5kb3VibGUuc2V0CGNvbnN0YW50BAVj | bnQuZ2V0CGNvbnN0YW50BA5jcmFmdF90aWVyOjMuNRBsb2NhbC5kb3VibGUuc2V0CGNvbnN0YW50BAVj | ||
Line 822: | Line 740: | ||
aG1ldGljLmRvdWJsZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVjb3VudAhjb25zdGFudAQBLwhj | aG1ldGljLmRvdWJsZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVjb3VudAhjb25zdGFudAQBLwhj | ||
b25zdGFudAMAAAAAAAAAQAhjb25zdGFudAQIcmVmaW5lcnk= | b25zdGFudAMAAAAAAAAAQAhjb25zdGFudAQIcmVmaW5lcnk= | ||
+ | |src= | ||
+ | ; Cables | ||
+ | :global double craft_inventory | ||
+ | :local int tier | ||
+ | :local double count | ||
− | </ | + | tier = global.int.get("craft_tier:3.5") |
− | + | count = global.double.get("craft_count:3.5") | |
− | |} | + | gotoif(99, tier < 1 {{!}} tier > 10 {{!}} count < 1.0) |
− | + | ||
− | + | global.int.set("craft_tier:ingot", tier) | |
− | + | global.double.set("craft_count:ingot", count / 2.0) | |
+ | executesync("craft ingot") | ||
+ | gotoif(99, global.int.get("craft_status") > 199) | ||
+ | |||
+ | waitwhile(active("refinery")) | ||
+ | produce("ingot", tier, ceil(count / 2.0), "refinery") | ||
+ | }} | ||
+ | |} | ||
+ | |||
+ | |||
+ | ====Insulated cables (6)==== | ||
[[File:Golden insulated cable.png|frameless]] | [[File:Golden insulated cable.png|frameless]] | ||
− | + | ||
{| class="wikitable" | {| class="wikitable" | ||
!Name | !Name | ||
Line 838: | Line 771: | ||
|craft 3:6 | |craft 3:6 | ||
|21 | |21 | ||
− | | | + | |{{AIScript |
− | + | |code= | |
− | + | CWNyYWZ0IDM6NgAAAAAAAAAAFQAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmdsb2JhbC5p | |
− | + | bnQuZ2V0CGNvbnN0YW50BA5jcmFmdF90aWVyOjMuNhBsb2NhbC5kb3VibGUuc2V0CGNvbnN0YW50BAVj | |
− | | | + | b3VudBFnbG9iYWwuZG91YmxlLmdldAhjb25zdGFudAQPY3JhZnRfY291bnQ6My42DmdlbmVyaWMuZ290 |
− | ; Insulated cables | + | b2lmCGNvbnN0YW50AmMAAAAPY29tcGFyaXNvbi5ib29sD2NvbXBhcmlzb24uYm9vbA5jb21wYXJpc29u |
− | :global double craft_inventory | + | LmludA1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyCGNvbnN0YW50BAE8CGNvbnN0YW50AgEAAAAI |
− | :local int tier | + | Y29uc3RhbnQEAXwOY29tcGFyaXNvbi5pbnQNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25z |
− | :local double count | + | dGFudAQBPghjb25zdGFudAIKAAAACGNvbnN0YW50BAF8EWNvbXBhcmlzb24uZG91YmxlEGxvY2FsLmRv |
− | :local double cables | + | dWJsZS5nZXQIY29uc3RhbnQEBWNvdW50CGNvbnN0YW50BAE8CGNvbnN0YW50AwAAAAAAAPA/EGxvY2Fs |
− | :local double rubber | + | LmRvdWJsZS5zZXQIY29uc3RhbnQEBmNhYmxlcxFhcml0aG1ldGljLmRvdWJsZRBsb2NhbC5kb3VibGUu |
− | + | Z2V0CGNvbnN0YW50BAVjb3VudAhjb25zdGFudAQBKgpkb3VibGUubWF4CmRvdWJsZS5tYXgIY29uc3Rh | |
− | tier = global.int.get("craft_tier:3.6") | + | bnQDAAAAAAAA8D8RYXJpdGhtZXRpYy5kb3VibGUDaTJkDWxvY2FsLmludC5nZXQIY29uc3RhbnQEBHRp |
− | count = global.double.get("craft_count:3.6") | + | ZXIIY29uc3RhbnQEAS0IY29uc3RhbnQDAAAAAAAAAEAKZG91YmxlLm1heBFhcml0aG1ldGljLmRvdWJs |
− | gotoif(99, tier < 1 {{!}} tier > 10 {{!}} count < 1.0) | + | ZQhjb25zdGFudAMAAAAAAAAkQAhjb25zdGFudAQBLRFhcml0aG1ldGljLmRvdWJsZQhjb25zdGFudAMA |
− | + | AAAAAAAUQAhjb25zdGFudAQBKhFhcml0aG1ldGljLmRvdWJsZRFhcml0aG1ldGljLmRvdWJsZQNpMmQN | |
− | cables = count * max(max(1.0, i2d(tier) - 2.0), max(10.0 - (5.0 * ((i2d(tier) - 8.0) ^ 2.0)), ceil(((i2d(tier) - 1.0) ^ 1.5) - 11.0))) | + | bG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFudAQBLQhjb25zdGFudAMAAAAAAAAgQAhj |
− | rubber = count * max(0.0, ((2.0 * i2d(tier)) - 4.0) - max(0.0, 2.0 - ((i2d(tier) - 8.0) * (i2d(tier) - 9.0)))) | + | b25zdGFudAQDcG93CGNvbnN0YW50AwAAAAAAAABAC2RvdWJsZS5jZWlsEWFyaXRobWV0aWMuZG91Ymxl |
− | + | EWFyaXRobWV0aWMuZG91YmxlEWFyaXRobWV0aWMuZG91YmxlA2kyZA1sb2NhbC5pbnQuZ2V0CGNvbnN0 | |
− | + | YW50BAR0aWVyCGNvbnN0YW50BAEtCGNvbnN0YW50AwAAAAAAAPA/CGNvbnN0YW50BANwb3cIY29uc3Rh | |
− | + | bnQDAAAAAAAA+D8IY29uc3RhbnQEAS0IY29uc3RhbnQDAAAAAAAAJkAQbG9jYWwuZG91YmxlLnNldAhj | |
− | + | b25zdGFudAQGcnViYmVyEWFyaXRobWV0aWMuZG91YmxlEGxvY2FsLmRvdWJsZS5nZXQIY29uc3RhbnQE | |
− | + | BWNvdW50CGNvbnN0YW50BAEqCmRvdWJsZS5tYXgIY29uc3RhbnQDAAAAAAAAAAARYXJpdGhtZXRpYy5k | |
− | + | b3VibGURYXJpdGhtZXRpYy5kb3VibGURYXJpdGhtZXRpYy5kb3VibGUIY29uc3RhbnQDAAAAAAAAAEAI | |
− | + | Y29uc3RhbnQEASoDaTJkDWxvY2FsLmludC5nZXQIY29uc3RhbnQEBHRpZXIIY29uc3RhbnQEAS0IY29u | |
− | + | c3RhbnQDAAAAAAAAEEAIY29uc3RhbnQEAS0KZG91YmxlLm1heAhjb25zdGFudAMAAAAAAAAAABFhcml0 | |
− | + | aG1ldGljLmRvdWJsZQhjb25zdGFudAMAAAAAAAAAQAhjb25zdGFudAQBLRFhcml0aG1ldGljLmRvdWJs | |
− | + | ZRFhcml0aG1ldGljLmRvdWJsZQNpMmQNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFu | |
− | + | dAQBLQhjb25zdGFudAMAAAAAAAAgQAhjb25zdGFudAQBKhFhcml0aG1ldGljLmRvdWJsZQNpMmQNbG9j | |
− | + | YWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFudAQBLQhjb25zdGFudAMAAAAAAAAiQA5nZW5l | |
− | + | cmljLmdvdG9pZghjb25zdGFudAIKAAAAEWNvbXBhcmlzb24uZG91YmxlE2ZhY3RvcnkuaXRlbXMuY291 | |
− | + | bnQIY29uc3RhbnQEBnJ1YmJlcghjb25zdGFudAIBAAAACGNvbnN0YW50BAI+PRFhcml0aG1ldGljLmRv | |
− | + | dWJsZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAZydWJiZXIIY29uc3RhbnQEAS0RYXJpdGhtZXRp | |
− | + | Yy5kb3VibGURZ2xvYmFsLmRvdWJsZS5nZXQIY29uc3RhbnQED2NyYWZ0X2ludmVudG9yeQhjb25zdGFu | |
− | + | dAQBKhNmYWN0b3J5Lml0ZW1zLmNvdW50CGNvbnN0YW50BAxwbGF0ZS5ydWJiZXIIY29uc3RhbnQCAQAA | |
− | + | AA5nbG9iYWwuaW50LnNldAhjb25zdGFudAQMY3JhZnRfc3RhdHVzCGNvbnN0YW50ApwBAAAOZ2xvYmFs | |
− | + | LmludC5zZXQIY29uc3RhbnQEEmNyYWZ0X3JlcXVpcmVfdGllcghjb25zdGFudAL/////EWdsb2JhbC5k | |
− | + | b3VibGUuc2V0CGNvbnN0YW50BBNjcmFmdF9yZXF1aXJlX2NvdW50EGxvY2FsLmRvdWJsZS5nZXQIY29u | |
− | + | c3RhbnQEBnJ1YmJlcg5nbG9iYWwuaW50LnNldAhjb25zdGFudAQQY3JhZnRfdGllcjppbmdvdA1sb2Nh | |
− | + | bC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyEWdsb2JhbC5kb3VibGUuc2V0CGNvbnN0YW50BBFjcmFmdF9j | |
− | + | b3VudDppbmdvdBFhcml0aG1ldGljLmRvdWJsZRFhcml0aG1ldGljLmRvdWJsZRBsb2NhbC5kb3VibGUu | |
− | + | Z2V0CGNvbnN0YW50BAZjYWJsZXMIY29uc3RhbnQEAS0TZmFjdG9yeS5pdGVtcy5jb3VudAhjb25zdGFu | |
− | + | dAQFY2FibGUNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFudAQBLwhjb25zdGFudAMA | |
− | + | AAAAAAAAQBNnZW5lcmljLmV4ZWN1dGVzeW5jCGNvbnN0YW50BAtjcmFmdCBpbmdvdA5nZW5lcmljLmdv | |
− | + | dG9pZghjb25zdGFudAJjAAAADmNvbXBhcmlzb24uaW50Dmdsb2JhbC5pbnQuZ2V0CGNvbnN0YW50BAxj | |
− | + | cmFmdF9zdGF0dXMIY29uc3RhbnQEAT4IY29uc3RhbnQCxwAAAA5nZW5lcmljLmdvdG9pZghjb25zdGFu | |
− | + | dAIRAAAAEWNvbXBhcmlzb24uZG91YmxlEGxvY2FsLmRvdWJsZS5nZXQIY29uc3RhbnQEBmNhYmxlcwhj | |
− | + | b25zdGFudAQCPD0RYXJpdGhtZXRpYy5kb3VibGURZ2xvYmFsLmRvdWJsZS5nZXQIY29uc3RhbnQED2Ny | |
− | + | YWZ0X2ludmVudG9yeQhjb25zdGFudAQBKhNmYWN0b3J5Lml0ZW1zLmNvdW50CGNvbnN0YW50BAVjYWJs | |
− | + | ZQ1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyEWdlbmVyaWMud2FpdHdoaWxlFmZhY3RvcnkubWFj | |
− | + | aGluZS5hY3RpdmUIY29uc3RhbnQECHJlZmluZXJ5D2ZhY3RvcnkucHJvZHVjZQhjb25zdGFudAQFaW5n | |
− | + | b3QNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcgtkb3VibGUuY2VpbBFhcml0aG1ldGljLmRvdWJs | |
− | + | ZRFhcml0aG1ldGljLmRvdWJsZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAZjYWJsZXMIY29uc3Rh | |
− | + | bnQEAS0RYXJpdGhtZXRpYy5kb3VibGURZ2xvYmFsLmRvdWJsZS5nZXQIY29uc3RhbnQED2NyYWZ0X2lu | |
− | + | dmVudG9yeQhjb25zdGFudAQBKhNmYWN0b3J5Lml0ZW1zLmNvdW50CGNvbnN0YW50BAVjYWJsZQ1sb2Nh | |
− | + | bC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyCGNvbnN0YW50BAEvCGNvbnN0YW50AwAAAAAAAABACGNvbnN0 | |
− | + | YW50BAhyZWZpbmVyeQ5nZW5lcmljLmdvdG9pZghjb25zdGFudAIUAAAAEWNvbXBhcmlzb24uZG91Ymxl | |
− | + | EGxvY2FsLmRvdWJsZS5nZXQIY29uc3RhbnQEBnJ1YmJlcghjb25zdGFudAQCPD0TZmFjdG9yeS5pdGVt | |
− | + | cy5jb3VudAhjb25zdGFudAQMcGxhdGUucnViYmVyCGNvbnN0YW50AgEAAAARZ2VuZXJpYy53YWl0d2hp | |
− | + | bGUWZmFjdG9yeS5tYWNoaW5lLmFjdGl2ZQhjb25zdGFudAQHcHJlc3Nlcg9mYWN0b3J5LnByb2R1Y2UI | |
− | + | Y29uc3RhbnQEBnJ1YmJlcg1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyEWFyaXRobWV0aWMuZG91 | |
− | + | YmxlEGxvY2FsLmRvdWJsZS5nZXQIY29uc3RhbnQEBnJ1YmJlcghjb25zdGFudAQBLRFhcml0aG1ldGlj | |
− | + | LmRvdWJsZRFnbG9iYWwuZG91YmxlLmdldAhjb25zdGFudAQPY3JhZnRfaW52ZW50b3J5CGNvbnN0YW50 | |
− | + | BAEqE2ZhY3RvcnkuaXRlbXMuY291bnQIY29uc3RhbnQEDHBsYXRlLnJ1YmJlcghjb25zdGFudAIBAAAA | |
− | + | CGNvbnN0YW50BAdwcmVzc2VyEWdlbmVyaWMud2FpdHVudGlsD2NvbXBhcmlzb24uYm9vbBFjb21wYXJp | |
− | + | c29uLmRvdWJsZRNmYWN0b3J5Lml0ZW1zLmNvdW50CGNvbnN0YW50BAVjYWJsZQ1sb2NhbC5pbnQuZ2V0 | |
− | + | CGNvbnN0YW50BAR0aWVyCGNvbnN0YW50BAI+PRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAZjYWJs | |
− | + | ZXMIY29uc3RhbnQEASYRY29tcGFyaXNvbi5kb3VibGUTZmFjdG9yeS5pdGVtcy5jb3VudAhjb25zdGFu | |
− | + | dAQMcGxhdGUucnViYmVyCGNvbnN0YW50AgEAAAAIY29uc3RhbnQEAj49EGxvY2FsLmRvdWJsZS5nZXQI | |
− | + | Y29uc3RhbnQEBnJ1YmJlcg1mYWN0b3J5LmNyYWZ0CGNvbnN0YW50BA9jYWJsZS5pbnN1bGF0ZWQNbG9j | |
− | + | YWwuaW50LmdldAhjb25zdGFudAQEdGllchBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVjb3VudA== | |
− | + | |src= | |
− | + | ; Insulated cables | |
− | + | :global double craft_inventory | |
− | + | :local int tier | |
− | + | :local double count | |
− | + | :local double cables | |
− | + | :local double rubber | |
− | + | ||
− | + | tier = global.int.get("craft_tier:3.6") | |
− | + | count = global.double.get("craft_count:3.6") | |
− | + | gotoif(99, tier < 1 {{!}} tier > 10 {{!}} count < 1.0) | |
− | + | ||
− | + | cables = count * max(max(1.0, i2d(tier) - 2.0), max(10.0 - (5.0 * ((i2d(tier) - 8.0) ^ 2.0)), ceil(((i2d(tier) - 1.0) ^ 1.5) - 11.0))) | |
− | + | rubber = count * max(0.0, ((2.0 * i2d(tier)) - 4.0) - max(0.0, 2.0 - ((i2d(tier) - 8.0) * (i2d(tier) - 9.0)))) | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </ | + | gotoif(ingots, count("rubber", 1) >= rubber - craft_inventory * count("plate.rubber", 1)) |
− | + | global.int.set("craft_status", 412) | |
+ | global.int.set("craft_require_tier", -1) | ||
+ | global.double.set("craft_require_count", rubber) | ||
+ | |||
+ | ingots: global.int.set("craft_tier:ingot", tier) | ||
+ | global.double.set("craft_count:ingot", (cables - count("cable", tier)) / 2.0) | ||
+ | executesync("craft ingot") | ||
+ | check: gotoif(99, global.int.get("craft_status") > 199) | ||
+ | |||
+ | cables: gotoif(rubber, cables <= craft_inventory * count("cable", tier)) | ||
+ | waitwhile(active("refinery")) | ||
+ | produce("ingot", tier, ceil((cables - craft_inventory * count("cable", tier)) / 2.0), "refinery") | ||
+ | |||
+ | rubber: gotoif(craft, rubber <= count("plate.rubber", 1)) | ||
+ | waitwhile(active("presser")) | ||
+ | produce("rubber", tier, rubber - craft_inventory * count("plate.rubber", 1), "presser") | ||
+ | |||
+ | craft: waituntil(count("cable", tier) >= cables & count("plate.rubber", 1) >= rubber) | ||
+ | craft("cable.insulated", tier, count) | ||
+ | }} | ||
|} | |} | ||
− | + | ||
− | + | ||
− | + | ====Rods (7)==== | |
[[File:Golden rod.png|frameless]] | [[File:Golden rod.png|frameless]] | ||
− | + | ||
{| class="wikitable" | {| class="wikitable" | ||
!Name | !Name | ||
Line 966: | Line 891: | ||
|craft 3:7 | |craft 3:7 | ||
|9 | |9 | ||
− | | | + | |{{AIScript |
− | + | |code= | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
CWNyYWZ0IDM6NwAAAAAAAAAACQAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmdsb2JhbC5p | CWNyYWZ0IDM6NwAAAAAAAAAACQAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmdsb2JhbC5p | ||
bnQuZ2V0CGNvbnN0YW50BA5jcmFmdF90aWVyOjMuNxBsb2NhbC5kb3VibGUuc2V0CGNvbnN0YW50BAVj | bnQuZ2V0CGNvbnN0YW50BA5jcmFmdF90aWVyOjMuNxBsb2NhbC5kb3VibGUuc2V0CGNvbnN0YW50BAVj | ||
Line 1,008: | Line 911: | ||
aG1ldGljLmRvdWJsZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVjb3VudAhjb25zdGFudAQBLwhj | aG1ldGljLmRvdWJsZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVjb3VudAhjb25zdGFudAQBLwhj | ||
b25zdGFudAMAAAAAAAAAQAhjb25zdGFudAQGc2hhcGVy | b25zdGFudAMAAAAAAAAAQAhjb25zdGFudAQGc2hhcGVy | ||
+ | |src= | ||
+ | ; Rods | ||
+ | :global double craft_inventory | ||
+ | :local int tier | ||
+ | :local double count | ||
− | </ | + | tier = global.int.get("craft_tier:3.7") |
− | + | count = global.double.get("craft_count:3.7") | |
+ | gotoif(99, tier < 1 {{!}} tier > 10 {{!}} count < 1.0) | ||
+ | |||
+ | global.int.set("craft_tier:ingot", tier) | ||
+ | global.double.set("craft_count:ingot", count / 2.0) | ||
+ | executesync("craft ingot") | ||
+ | gotoif(99, global.int.get("craft_status") > 199) | ||
+ | |||
+ | waitwhile(active("refinery")) | ||
+ | produce("ingot", tier, ceil(count / 2.0), "shaper") | ||
+ | }} | ||
|} | |} | ||
− | + | ||
− | + | ||
− | + | ====Motors (8)==== | |
[[File:Golden motor.png|frameless]] | [[File:Golden motor.png|frameless]] | ||
− | + | ||
{| class="wikitable" | {| class="wikitable" | ||
!Name | !Name | ||
Line 1,024: | Line 942: | ||
|craft 3:8 | |craft 3:8 | ||
|20 | |20 | ||
− | | | + | |{{AIScript |
− | + | |code= | |
− | + | CWNyYWZ0IDM6OAAAAAAAAAAAFAAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmdsb2JhbC5p | |
− | + | bnQuZ2V0CGNvbnN0YW50BA5jcmFmdF90aWVyOjMuOBBsb2NhbC5kb3VibGUuc2V0CGNvbnN0YW50BAVj | |
− | | | + | b3VudBFnbG9iYWwuZG91YmxlLmdldAhjb25zdGFudAQPY3JhZnRfY291bnQ6My44DmdlbmVyaWMuZ290 |
− | ; Motor | + | b2lmCGNvbnN0YW50AmMAAAAPY29tcGFyaXNvbi5ib29sD2NvbXBhcmlzb24uYm9vbA5jb21wYXJpc29u |
− | :global double craft_inventory | + | LmludA1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyCGNvbnN0YW50BAE8CGNvbnN0YW50AgEAAAAI |
− | :local int tier | + | Y29uc3RhbnQEAXwOY29tcGFyaXNvbi5pbnQNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25z |
− | :local double count | + | dGFudAQBPghjb25zdGFudAIKAAAACGNvbnN0YW50BAF8EWNvbXBhcmlzb24uZG91YmxlEGxvY2FsLmRv |
− | :local double rods | + | dWJsZS5nZXQIY29uc3RhbnQEBWNvdW50CGNvbnN0YW50BAE8CGNvbnN0YW50AwAAAAAAAPA/EGxvY2Fs |
− | :local double plates | + | LmRvdWJsZS5zZXQIY29uc3RhbnQEBHJvZHMRYXJpdGhtZXRpYy5kb3VibGURYXJpdGhtZXRpYy5kb3Vi |
− | + | bGUQbG9jYWwuZG91YmxlLmdldAhjb25zdGFudAQFY291bnQIY29uc3RhbnQEASoIY29uc3RhbnQDAAAA | |
− | tier = global.int.get("craft_tier:3.8") | + | AAAAAEAIY29uc3RhbnQEASsKZG91YmxlLm1heAhjb25zdGFudAMAAAAAAAAAAAtkb3VibGUuY2VpbBFh |
− | count = global.double.get("craft_count:3.8") | + | cml0aG1ldGljLmRvdWJsZRFhcml0aG1ldGljLmRvdWJsZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50 |
− | gotoif(99, tier < 1 {{!}} tier > 10 {{!}} count < 1.0) | + | BAVjb3VudAhjb25zdGFudAQBLRFhcml0aG1ldGljLmRvdWJsZRFnbG9iYWwuZG91YmxlLmdldAhjb25z |
− | + | dGFudAQPY3JhZnRfaW52ZW50b3J5CGNvbnN0YW50BAEqE2ZhY3RvcnkuaXRlbXMuY291bnQIY29uc3Rh | |
− | ; ingots | + | bnQEBXNjcmV3DWxvY2FsLmludC5nZXQIY29uc3RhbnQEBHRpZXIIY29uc3RhbnQEAS8IY29uc3RhbnQD |
− | rods = count * 2.0 + max(0.0, ceil((count - craft_inventory * count("screw", tier))/4.0)) | + | AAAAAAAAEEAOZ2VuZXJpYy5nb3RvaWYIY29uc3RhbnQCCQAAABFjb21wYXJpc29uLmRvdWJsZRBsb2Nh |
− | ;rods: produce("ingot", tier, ceil((rods - craft_inventory * count("rod", tier))/2.0), "shaper") | + | bC5kb3VibGUuZ2V0CGNvbnN0YW50BAVjb3VudAhjb25zdGFudAQCPD0TZmFjdG9yeS5pdGVtcy5jb3Vu |
− | ;wires: produce("ingot", tier, ceil((count - craft_inventory * (count("cable", tier) + count("wire", tier)))/2.0), "refinery") | + | dAhjb25zdGFudAQGcnViYmVyCGNvbnN0YW50AgEAAAAOZ2xvYmFsLmludC5zZXQIY29uc3RhbnQEDGNy |
− | ;plates: produce("ingot", tier, count * 4.0 - craft_inventory * count("plate", tier), "presser") | + | YWZ0X3N0YXR1cwhjb25zdGFudAKcAQAADmdsb2JhbC5pbnQuc2V0CGNvbnN0YW50BBJjcmFmdF9yZXF1 |
− | + | aXJlX3RpZXIIY29uc3RhbnQC/////xFnbG9iYWwuZG91YmxlLnNldAhjb25zdGFudAQTY3JhZnRfcmVx | |
− | gotoif(ingots, count <= count("rubber", 1)) | + | dWlyZV9jb3VudBBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVjb3VudA5nbG9iYWwuaW50LnNldAhj |
− | global.int.set("craft_status", 412) | + | b25zdGFudAQQY3JhZnRfdGllcjppbmdvdA1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyEWdsb2Jh |
− | global.int.set("craft_require_tier", -1) | + | bC5kb3VibGUuc2V0CGNvbnN0YW50BBFjcmFmdF9jb3VudDppbmdvdBFhcml0aG1ldGljLmRvdWJsZRFh |
− | global.double.set("craft_require_count", count) | + | cml0aG1ldGljLmRvdWJsZQpkb3VibGUubWF4CGNvbnN0YW50AwAAAAAAAAAAC2RvdWJsZS5jZWlsEWFy |
− | + | aXRobWV0aWMuZG91YmxlEWFyaXRobWV0aWMuZG91YmxlEGxvY2FsLmRvdWJsZS5nZXQIY29uc3RhbnQE | |
− | ingots: global.int.set("craft_tier:ingot", tier) | + | BHJvZHMIY29uc3RhbnQEAS0RYXJpdGhtZXRpYy5kb3VibGURZ2xvYmFsLmRvdWJsZS5nZXQIY29uc3Rh |
− | global.double.set("craft_count:ingot", max(0.0, ceil((rods - craft_inventory * count("rod", tier))/2.0)) + max(0.0, ceil((count - craft_inventory * (count("cable", tier) + count("wire", tier)))/2.0)) + max(0.0, count * 4.0 - craft_inventory * count("plate", tier))) | + | bnQED2NyYWZ0X2ludmVudG9yeQhjb25zdGFudAQBKhNmYWN0b3J5Lml0ZW1zLmNvdW50CGNvbnN0YW50 |
− | executesync("craft ingot") | + | BANyb2QNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFudAQBLwhjb25zdGFudAMAAAAA |
− | gotoif(99, global.int.get("craft_status") > 199) | + | AAAAQAhjb25zdGFudAQBKwpkb3VibGUubWF4CGNvbnN0YW50AwAAAAAAAAAAC2RvdWJsZS5jZWlsEWFy |
− | + | aXRobWV0aWMuZG91YmxlEWFyaXRobWV0aWMuZG91YmxlEGxvY2FsLmRvdWJsZS5nZXQIY29uc3RhbnQE | |
− | global.int.set("craft_status:3.8", 1) | + | BWNvdW50CGNvbnN0YW50BAEtEWFyaXRobWV0aWMuZG91YmxlEWdsb2JhbC5kb3VibGUuZ2V0CGNvbnN0 |
− | execute("craft 3:8:rods") | + | YW50BA9jcmFmdF9pbnZlbnRvcnkIY29uc3RhbnQEASoRYXJpdGhtZXRpYy5kb3VibGUTZmFjdG9yeS5p |
− | execute("craft 3:8:wire") | + | dGVtcy5jb3VudAhjb25zdGFudAQFY2FibGUNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25z |
− | + | dGFudAQBKxNmYWN0b3J5Lml0ZW1zLmNvdW50CGNvbnN0YW50BAR3aXJlDWxvY2FsLmludC5nZXQIY29u | |
− | ; plates | + | c3RhbnQEBHRpZXIIY29uc3RhbnQEAS8IY29uc3RhbnQDAAAAAAAAAEAIY29uc3RhbnQEASsKZG91Ymxl |
− | ;plates = count * 4.0 | + | Lm1heAhjb25zdGFudAMAAAAAAAAAABFhcml0aG1ldGljLmRvdWJsZRFhcml0aG1ldGljLmRvdWJsZRBs |
− | + | b2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVjb3VudAhjb25zdGFudAQBKghjb25zdGFudAMAAAAAAAAQ | |
− | gotoif(wait, count * 4.0 <= craft_inventory * count("plate", tier)) | + | QAhjb25zdGFudAQBLRFhcml0aG1ldGljLmRvdWJsZRFnbG9iYWwuZG91YmxlLmdldAhjb25zdGFudAQP |
− | waitwhile(active("presser")) | + | Y3JhZnRfaW52ZW50b3J5CGNvbnN0YW50BAEqE2ZhY3RvcnkuaXRlbXMuY291bnQIY29uc3RhbnQEBXBs |
− | produce("ingot", tier, count * 4.0 - craft_inventory * count("plate", tier), "presser") | + | YXRlDWxvY2FsLmludC5nZXQIY29uc3RhbnQEBHRpZXITZ2VuZXJpYy5leGVjdXRlc3luYwhjb25zdGFu |
− | + | dAQLY3JhZnQgaW5nb3QOZ2VuZXJpYy5nb3RvaWYIY29uc3RhbnQCYwAAAA5jb21wYXJpc29uLmludA5n | |
− | wait: waituntil(global.int.get("craft_status:3.8") >= 7 & count("plate", tier) >= count * 4.0 & count("rod", tier) >= count * 2.0 & count("screw", tier) >= count & count("wire", tier) >= count) | + | bG9iYWwuaW50LmdldAhjb25zdGFudAQMY3JhZnRfc3RhdHVzCGNvbnN0YW50BAE+CGNvbnN0YW50AscA |
− | craft("motor", tier, count) | + | AAAOZ2xvYmFsLmludC5zZXQIY29uc3RhbnQEEGNyYWZ0X3N0YXR1czozLjgIY29uc3RhbnQCAQAAAA9n |
− | + | ZW5lcmljLmV4ZWN1dGUIY29uc3RhbnQEDmNyYWZ0IDM6ODpyb2RzD2dlbmVyaWMuZXhlY3V0ZQhjb25z | |
− | + | dGFudAQOY3JhZnQgMzo4OndpcmUOZ2VuZXJpYy5nb3RvaWYIY29uc3RhbnQCEwAAABFjb21wYXJpc29u | |
− | + | LmRvdWJsZRFhcml0aG1ldGljLmRvdWJsZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVjb3VudAhj | |
− | + | b25zdGFudAQBKghjb25zdGFudAMAAAAAAAAQQAhjb25zdGFudAQCPD0RYXJpdGhtZXRpYy5kb3VibGUR | |
− | + | Z2xvYmFsLmRvdWJsZS5nZXQIY29uc3RhbnQED2NyYWZ0X2ludmVudG9yeQhjb25zdGFudAQBKhNmYWN0 | |
− | + | b3J5Lml0ZW1zLmNvdW50CGNvbnN0YW50BAVwbGF0ZQ1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVy | |
− | + | EWdlbmVyaWMud2FpdHdoaWxlFmZhY3RvcnkubWFjaGluZS5hY3RpdmUIY29uc3RhbnQEB3ByZXNzZXIP | |
− | + | ZmFjdG9yeS5wcm9kdWNlCGNvbnN0YW50BAVpbmdvdA1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVy | |
− | + | EWFyaXRobWV0aWMuZG91YmxlEWFyaXRobWV0aWMuZG91YmxlEGxvY2FsLmRvdWJsZS5nZXQIY29uc3Rh | |
− | + | bnQEBWNvdW50CGNvbnN0YW50BAEqCGNvbnN0YW50AwAAAAAAABBACGNvbnN0YW50BAEtEWFyaXRobWV0 | |
− | + | aWMuZG91YmxlEWdsb2JhbC5kb3VibGUuZ2V0CGNvbnN0YW50BA9jcmFmdF9pbnZlbnRvcnkIY29uc3Rh | |
− | + | bnQEASoTZmFjdG9yeS5pdGVtcy5jb3VudAhjb25zdGFudAQFcGxhdGUNbG9jYWwuaW50LmdldAhjb25z | |
− | + | dGFudAQEdGllcghjb25zdGFudAQHcHJlc3NlchFnZW5lcmljLndhaXR1bnRpbA9jb21wYXJpc29uLmJv | |
− | + | b2wPY29tcGFyaXNvbi5ib29sD2NvbXBhcmlzb24uYm9vbA9jb21wYXJpc29uLmJvb2wOY29tcGFyaXNv | |
− | + | bi5pbnQOZ2xvYmFsLmludC5nZXQIY29uc3RhbnQEEGNyYWZ0X3N0YXR1czozLjgIY29uc3RhbnQEAj49 | |
− | + | CGNvbnN0YW50AgcAAAAIY29uc3RhbnQEASYRY29tcGFyaXNvbi5kb3VibGUTZmFjdG9yeS5pdGVtcy5j | |
− | + | b3VudAhjb25zdGFudAQFcGxhdGUNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFudAQC | |
− | + | Pj0RYXJpdGhtZXRpYy5kb3VibGUQbG9jYWwuZG91YmxlLmdldAhjb25zdGFudAQFY291bnQIY29uc3Rh | |
− | + | bnQEASoIY29uc3RhbnQDAAAAAAAAEEAIY29uc3RhbnQEASYRY29tcGFyaXNvbi5kb3VibGUTZmFjdG9y | |
− | + | eS5pdGVtcy5jb3VudAhjb25zdGFudAQDcm9kDWxvY2FsLmludC5nZXQIY29uc3RhbnQEBHRpZXIIY29u | |
− | + | c3RhbnQEAj49EWFyaXRobWV0aWMuZG91YmxlEGxvY2FsLmRvdWJsZS5nZXQIY29uc3RhbnQEBWNvdW50 | |
− | + | CGNvbnN0YW50BAEqCGNvbnN0YW50AwAAAAAAAABACGNvbnN0YW50BAEmEWNvbXBhcmlzb24uZG91Ymxl | |
− | + | E2ZhY3RvcnkuaXRlbXMuY291bnQIY29uc3RhbnQEBXNjcmV3DWxvY2FsLmludC5nZXQIY29uc3RhbnQE | |
− | + | BHRpZXIIY29uc3RhbnQEAj49EGxvY2FsLmRvdWJsZS5nZXQIY29uc3RhbnQEBWNvdW50CGNvbnN0YW50 | |
− | + | BAEmEWNvbXBhcmlzb24uZG91YmxlE2ZhY3RvcnkuaXRlbXMuY291bnQIY29uc3RhbnQEBHdpcmUNbG9j | |
− | + | YWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25zdGFudAQCPj0QbG9jYWwuZG91YmxlLmdldAhjb25z | |
− | + | dGFudAQFY291bnQNZmFjdG9yeS5jcmFmdAhjb25zdGFudAQFbW90b3INbG9jYWwuaW50LmdldAhjb25z | |
− | + | dGFudAQEdGllchBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVjb3VudA== | |
− | + | |src= | |
− | + | ; Motor | |
− | + | :global double craft_inventory | |
− | + | :local int tier | |
− | + | :local double count | |
− | + | :local double rods | |
− | + | :local double plates | |
− | + | ||
− | + | tier = global.int.get("craft_tier:3.8") | |
− | + | count = global.double.get("craft_count:3.8") | |
− | + | gotoif(99, tier < 1 {{!}} tier > 10 {{!}} count < 1.0) | |
− | + | ||
− | + | ; ingots | |
− | + | rods = count * 2.0 + max(0.0, ceil((count - craft_inventory * count("screw", tier))/4.0)) | |
− | + | ;rods: produce("ingot", tier, ceil((rods - craft_inventory * count("rod", tier))/2.0), "shaper") | |
− | + | ;wires: produce("ingot", tier, ceil((count - craft_inventory * (count("cable", tier) + count("wire", tier)))/2.0), "refinery") | |
− | + | ;plates: produce("ingot", tier, count * 4.0 - craft_inventory * count("plate", tier), "presser") | |
− | + | ||
− | + | gotoif(ingots, count <= count("rubber", 1)) | |
− | + | global.int.set("craft_status", 412) | |
− | + | global.int.set("craft_require_tier", -1) | |
− | + | global.double.set("craft_require_count", count) | |
− | + | ||
− | + | ingots: global.int.set("craft_tier:ingot", tier) | |
− | + | global.double.set("craft_count:ingot", max(0.0, ceil((rods - craft_inventory * count("rod", tier))/2.0)) + max(0.0, ceil((count - craft_inventory * (count("cable", tier) + count("wire", tier)))/2.0)) + max(0.0, count * 4.0 - craft_inventory * count("plate", tier))) | |
− | + | executesync("craft ingot") | |
− | + | gotoif(99, global.int.get("craft_status") > 199) | |
− | + | ||
− | + | global.int.set("craft_status:3.8", 1) | |
− | + | execute("craft 3:8:rods") | |
− | + | execute("craft 3:8:wire") | |
− | + | ||
− | + | ; plates | |
− | + | ;plates = count * 4.0 | |
− | + | ||
− | + | gotoif(wait, count * 4.0 <= craft_inventory * count("plate", tier)) | |
− | + | waitwhile(active("presser")) | |
− | + | produce("ingot", tier, count * 4.0 - craft_inventory * count("plate", tier), "presser") | |
− | + | ||
− | + | wait: waituntil(global.int.get("craft_status:3.8") >= 7 & count("plate", tier) >= count * 4.0 & count("rod", tier) >= count * 2.0 & count("screw", tier) >= count & count("wire", tier) >= count) | |
− | + | craft("motor", tier, count) | |
− | + | }} | |
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
|craft 3:8:rods | |craft 3:8:rods | ||
|10 | |10 | ||
− | | | + | |{{AIScript |
− | + | |code= | |
− | + | DmNyYWZ0IDM6ODpyb2RzAAAAAAAAAAAKAAAADWxvY2FsLmludC5zZXQIY29uc3RhbnQEBHRpZXIOZ2xv | |
− | + | YmFsLmludC5nZXQIY29uc3RhbnQEDmNyYWZ0X3RpZXI6My44EGxvY2FsLmRvdWJsZS5zZXQIY29uc3Rh | |
− | + | bnQEBWNvdW50EWdsb2JhbC5kb3VibGUuZ2V0CGNvbnN0YW50BA9jcmFmdF9jb3VudDozLjgQbG9jYWwu | |
− | + | ZG91YmxlLnNldAhjb25zdGFudAQEcm9kcxFhcml0aG1ldGljLmRvdWJsZRFhcml0aG1ldGljLmRvdWJs | |
− | + | ZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVjb3VudAhjb25zdGFudAQBKghjb25zdGFudAMAAAAA | |
− | + | AAAAQAhjb25zdGFudAQBKwpkb3VibGUubWF4CGNvbnN0YW50AwAAAAAAAAAAC2RvdWJsZS5jZWlsEWFy | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | DmNyYWZ0IDM6ODpyb2RzAAAAAAAAAAAKAAAADWxvY2FsLmludC5zZXQIY29uc3RhbnQEBHRpZXIOZ2xv | ||
− | YmFsLmludC5nZXQIY29uc3RhbnQEDmNyYWZ0X3RpZXI6My44EGxvY2FsLmRvdWJsZS5zZXQIY29uc3Rh | ||
− | bnQEBWNvdW50EWdsb2JhbC5kb3VibGUuZ2V0CGNvbnN0YW50BA9jcmFmdF9jb3VudDozLjgQbG9jYWwu | ||
− | ZG91YmxlLnNldAhjb25zdGFudAQEcm9kcxFhcml0aG1ldGljLmRvdWJsZRFhcml0aG1ldGljLmRvdWJs | ||
− | ZRBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BAVjb3VudAhjb25zdGFudAQBKghjb25zdGFudAMAAAAA | ||
− | AAAAQAhjb25zdGFudAQBKwpkb3VibGUubWF4CGNvbnN0YW50AwAAAAAAAAAAC2RvdWJsZS5jZWlsEWFy | ||
aXRobWV0aWMuZG91YmxlEWFyaXRobWV0aWMuZG91YmxlEGxvY2FsLmRvdWJsZS5nZXQIY29uc3RhbnQE | aXRobWV0aWMuZG91YmxlEWFyaXRobWV0aWMuZG91YmxlEGxvY2FsLmRvdWJsZS5nZXQIY29uc3RhbnQE | ||
BWNvdW50CGNvbnN0YW50BAEtEWFyaXRobWV0aWMuZG91YmxlEWdsb2JhbC5kb3VibGUuZ2V0CGNvbnN0 | BWNvdW50CGNvbnN0YW50BAEtEWFyaXRobWV0aWMuZG91YmxlEWdsb2JhbC5kb3VibGUuZ2V0CGNvbnN0 | ||
Line 1,217: | Line 1,103: | ||
dGljLmludA5nbG9iYWwuaW50LmdldAhjb25zdGFudAQQY3JhZnRfc3RhdHVzOjMuOAhjb25zdGFudAQB | dGljLmludA5nbG9iYWwuaW50LmdldAhjb25zdGFudAQQY3JhZnRfc3RhdHVzOjMuOAhjb25zdGFudAQB | ||
Kwhjb25zdGFudAICAAAA | Kwhjb25zdGFudAICAAAA | ||
− | + | |src= | |
− | | | + | :global double craft_inventory |
− | + | :local int tier | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | :global double craft_inventory | ||
− | :local int tier | ||
:local double count | :local double count | ||
+ | :local double rods | ||
+ | ;:local double screws | ||
; rods & screws | ; rods & screws | ||
tier = global.int.get("craft_tier:3.8") | tier = global.int.get("craft_tier:3.8") | ||
count = global.double.get("craft_count:3.8") | count = global.double.get("craft_count:3.8") | ||
+ | ;screws = count | ||
+ | rods = count * 2.0 + max(0.0, ceil((count - craft_inventory * count("screw", tier))/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") | ||
− | gotoif( | + | screws: gotoif(end, count <= craft_inventory * count("screw", tier)) |
− | + | waitwhile(count("rod", tier) < (count - craft_inventory * count("screw", tier))/4.0 {{!}} active("cutter")) | |
− | produce(" | + | produce("rod", tier, ceil((count - craft_inventory * count("screw", tier))/4.0), "cutter") |
− | + | end: global.int.set("craft_status:3.8", global.int.get("craft_status:3.8") + 2) | |
− | + | }} | |
− | |||
− | |||
− | |||
|- | |- | ||
− | | | + | |craft 3:8:wire |
+ | |9 | ||
+ | |{{AIScript | ||
+ | |code= | ||
DmNyYWZ0IDM6ODp3aXJlAAAAAAAAAAAJAAAADWxvY2FsLmludC5zZXQIY29uc3RhbnQEBHRpZXIOZ2xv | DmNyYWZ0IDM6ODp3aXJlAAAAAAAAAAAJAAAADWxvY2FsLmludC5zZXQIY29uc3RhbnQEBHRpZXIOZ2xv | ||
YmFsLmludC5nZXQIY29uc3RhbnQEDmNyYWZ0X3RpZXI6My44EGxvY2FsLmRvdWJsZS5zZXQIY29uc3Rh | YmFsLmludC5nZXQIY29uc3RhbnQEDmNyYWZ0X3RpZXI6My44EGxvY2FsLmRvdWJsZS5zZXQIY29uc3Rh | ||
Line 1,282: | Line 1,167: | ||
Y3JhZnRfc3RhdHVzOjMuOA5hcml0aG1ldGljLmludA5nbG9iYWwuaW50LmdldAhjb25zdGFudAQQY3Jh | Y3JhZnRfc3RhdHVzOjMuOA5hcml0aG1ldGljLmludA5nbG9iYWwuaW50LmdldAhjb25zdGFudAQQY3Jh | ||
ZnRfc3RhdHVzOjMuOAhjb25zdGFudAQBKwhjb25zdGFudAIEAAAA | ZnRfc3RhdHVzOjMuOAhjb25zdGFudAQBKwhjb25zdGFudAIEAAAA | ||
− | + | |src= | |
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
:global double craft_inventory | :global double craft_inventory | ||
:local int tier | :local int tier | ||
:local double count | :local double count | ||
− | |||
− | |||
− | tier = global.int.get("craft_tier:3. | + | ; rods & screws |
− | count = global.double.get("craft_count:3. | + | tier = global.int.get("craft_tier:3.8") |
− | gotoif( | + | count = global.double.get("craft_count:3.8") |
+ | |||
+ | gotoif(wire, count <= craft_inventory * (count("cable", tier) + count("wire", tier))) | ||
+ | waitwhile(active("refinery")) | ||
+ | produce("ingot", tier, ceil((count - craft_inventory * (count("cable", tier) + count("wire", tier)))/2.0), "refinery") | ||
+ | |||
+ | wire: gotoif(end, count <= craft_inventory * count("wire", tier)) | ||
+ | waitwhile(count("cable", tier) < count - count - craft_inventory * count("wire", tier) {{!}} active("refinery")) | ||
+ | produce("cable", tier, count - craft_inventory * count("wire", tier), "refinery") | ||
+ | |||
+ | end: global.int.set("craft_status:3.8", global.int.get("craft_status:3.8") + 4) | ||
+ | }} | ||
+ | |} | ||
− | |||
− | |||
− | + | ====Pumps (9)==== | |
− | + | [[File:Golden pump.png|frameless]] | |
− | |||
− | + | {| class="wikitable" | |
− | + | !Name | |
− | + | !Lines | |
+ | !Code | ||
|- | |- | ||
− | | | + | |craft 3:9 |
− | CWNyYWZ0IDM6OQAAAAAAAAAACgAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmdsb2JhbC5p | + | |10 |
+ | |{{AIScript | ||
+ | |code= | ||
+ | CWNyYWZ0IDM6OQAAAAAAAAAACgAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmdsb2JhbC5p | ||
bnQuZ2V0CGNvbnN0YW50BA5jcmFmdF90aWVyOjMuORBsb2NhbC5kb3VibGUuc2V0CGNvbnN0YW50BAVj | bnQuZ2V0CGNvbnN0YW50BA5jcmFmdF90aWVyOjMuORBsb2NhbC5kb3VibGUuc2V0CGNvbnN0YW50BAVj | ||
b3VudBFnbG9iYWwuZG91YmxlLmdldAhjb25zdGFudAQPY3JhZnRfY291bnQ6My45DmdlbmVyaWMuZ290 | b3VudBFnbG9iYWwuZG91YmxlLmdldAhjb25zdGFudAQPY3JhZnRfY291bnQ6My45DmdlbmVyaWMuZ290 | ||
Line 1,352: | Line 1,228: | ||
dW1wDWxvY2FsLmludC5nZXQIY29uc3RhbnQEBHRpZXIQbG9jYWwuZG91YmxlLmdldAhjb25zdGFudAQF | dW1wDWxvY2FsLmludC5nZXQIY29uc3RhbnQEBHRpZXIQbG9jYWwuZG91YmxlLmdldAhjb25zdGFudAQF | ||
Y291bnQ= | Y291bnQ= | ||
− | + | |src= | |
− | + | ; Pumps | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
:global double craft_inventory | :global double craft_inventory | ||
:local int tier | :local int tier | ||
:local double count | :local double count | ||
:local double rubber | :local double rubber | ||
− | |||
:local double rods | :local double rods | ||
− | |||
tier = global.int.get("craft_tier:3.9") | tier = global.int.get("craft_tier:3.9") | ||
count = global.double.get("craft_count:3.9") | count = global.double.get("craft_count:3.9") | ||
+ | gotoif(99, tier < 1 {{!}} tier > 10 {{!}} count < 1.0) | ||
− | + | executesync("craft 3:9:in") | |
− | + | gotoif(99, global.int.get("craft_status") > 199) | |
− | gotoif( | ||
− | |||
− | |||
− | |||
− | + | global.int.set("craft_status:3.9", 1) | |
− | + | execute("craft 3:9:plates") | |
− | + | execute("craft 3:9:rings") | |
− | + | ||
− | + | waituntil(global.int.get("craft_status:3.9") >= 7 & count("plate", tier) >= count*2.0 & count("plate.rubber", 1) >= count*4.0 & count("ring", tier) >= count*2.0) | |
− | + | craft("pump", tier, count) | |
− | + | }} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
− | | | + | |craft 3:9:in |
+ | |16 | ||
+ | |{{AIScript | ||
+ | |code= | ||
DGNyYWZ0IDM6OTppbgAAAAAAAAAAEAAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmdsb2Jh | DGNyYWZ0IDM6OTppbgAAAAAAAAAAEAAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmdsb2Jh | ||
bC5pbnQuZ2V0CGNvbnN0YW50BA5jcmFmdF90aWVyOjMuORBsb2NhbC5kb3VibGUuc2V0CGNvbnN0YW50 | bC5pbnQuZ2V0CGNvbnN0YW50BA5jcmFmdF90aWVyOjMuORBsb2NhbC5kb3VibGUuc2V0CGNvbnN0YW50 | ||
Line 1,463: | Line 1,320: | ||
Y2FsLmludC5nZXQIY29uc3RhbnQEBHRpZXITZ2VuZXJpYy5leGVjdXRlc3luYwhjb25zdGFudAQJY3Jh | Y2FsLmludC5nZXQIY29uc3RhbnQEBHRpZXITZ2VuZXJpYy5leGVjdXRlc3luYwhjb25zdGFudAQJY3Jh | ||
ZnQgMzo4 | ZnQgMzo4 | ||
− | + | |src= | |
− | | | + | :global double craft_inventory |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | :global double craft_inventory | ||
:local int tier | :local int tier | ||
:local double count | :local double count | ||
+ | :local double rubber | ||
+ | :local double need_pumps | ||
+ | :local double rods | ||
+ | :local double plates | ||
tier = global.int.get("craft_tier:3.9") | tier = global.int.get("craft_tier:3.9") | ||
count = global.double.get("craft_count:3.9") | count = global.double.get("craft_count:3.9") | ||
− | ;plates = count * 2.0 | + | ; rubber and ingots |
− | + | rubber = max(0.0, count - craft_inventory * count("motor", tier)) + max(0.0, count*4.0 - craft_inventory * count("plate.rubber", tier)) | |
− | + | gotoif(ingots, rubber <= count("rubber", 1)) | |
− | + | global.int.set("craft_status", 412) | |
+ | global.int.set("craft_require_tier", -1) | ||
+ | global.double.set("craft_require_count", rubber) | ||
+ | |||
+ | ingots: global.int.set("craft_tier:ingot", tier) | ||
+ | ; plates: count*2.0 - craft_inventory * count("plate", tier) | ||
+ | ; rods = count * 2.0 - count("ring", tier) | ||
+ | ; rings: ceil((rods - craft_inventory * count("rod", tier))/2.0) | ||
+ | ; motors... | ||
+ | ; rods = count * 2.0 + max(0.0, ceil((count - craft_inventory * count("screw", tier))/4.0)) | ||
+ | ; global.double.set("craft_count:ingot", max(0.0, ceil((rods - craft_inventory * count("rod", tier))/2.0)) + max(0.0, ceil((count - craft_inventory * (count("cable", tier) + count("wire", tier)))/2.0)) + max(0.0, count * 4.0 - craft_inventory * count("plate", tier))) | ||
+ | need_pumps = max(0.0, count - craft_inventory * count("motor", tier)) | ||
+ | rods = max(0.0, count * 2.0 - count("ring", tier)) + need_pumps * 2.0 + max(0.0, ceil((need_pumps - craft_inventory * count("screw", tier))/4.0)) | ||
+ | global.double.set("craft_count:ingot", max(0.0, count*2.0 + need_pumps * 4.0 - craft_inventory * count("plate", tier)) + max(0.0, ceil((rods - craft_inventory * count("rod", tier))/2.0)) + max(0.0, ceil((count - craft_inventory * (count("cable", tier) + count("wire", tier)))/2.0))) | ||
+ | executesync("craft ingot") | ||
+ | gotoif(99, global.int.get("craft_status") > 199) | ||
+ | |||
+ | global.int.set("craft_tier:3.8", tier) | ||
+ | global.double.set("craft_count:3.8", count - craft_inventory * count("motor", tier)) | ||
+ | executesync("craft 3:8") | ||
+ | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
− | | | + | |craft 3:9:plates |
+ | |9 | ||
+ | |{{AIScript | ||
+ | |code= | ||
EGNyYWZ0IDM6OTpwbGF0ZXMAAAAAAAAAAAkAAAANbG9jYWwuaW50LnNldAhjb25zdGFudAQEdGllcg5n | EGNyYWZ0IDM6OTpwbGF0ZXMAAAAAAAAAAAkAAAANbG9jYWwuaW50LnNldAhjb25zdGFudAQEdGllcg5n | ||
bG9iYWwuaW50LmdldAhjb25zdGFudAQOY3JhZnRfdGllcjozLjkQbG9jYWwuZG91YmxlLnNldAhjb25z | bG9iYWwuaW50LmdldAhjb25zdGFudAQOY3JhZnRfdGllcjozLjkQbG9jYWwuZG91YmxlLnNldAhjb25z | ||
Line 1,521: | Line 1,390: | ||
aWMuaW50Dmdsb2JhbC5pbnQuZ2V0CGNvbnN0YW50BBBjcmFmdF9zdGF0dXM6My45CGNvbnN0YW50BAEr | aWMuaW50Dmdsb2JhbC5pbnQuZ2V0CGNvbnN0YW50BBBjcmFmdF9zdGF0dXM6My45CGNvbnN0YW50BAEr | ||
CGNvbnN0YW50AgIAAAA= | CGNvbnN0YW50AgIAAAA= | ||
− | + | |src= | |
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
:global double craft_inventory | :global double craft_inventory | ||
:local int tier | :local int tier | ||
:local double count | :local double count | ||
− | |||
tier = global.int.get("craft_tier:3.9") | tier = global.int.get("craft_tier:3.9") | ||
count = global.double.get("craft_count:3.9") | count = global.double.get("craft_count:3.9") | ||
− | ; 2 | + | ;plates = count * 2.0 |
− | + | plates: gotoif(rubber, count*2.0 < craft_inventory * count("plate", tier)) | |
− | + | waitwhile(active("presser")) | |
− | + | produce("ingot", tier, count*2.0 - craft_inventory * count("plate", tier), "presser") | |
− | produce(" | + | |
+ | rubber: gotoif(end, count*4.0 < craft_inventory * count("plate.rubber", tier)) | ||
+ | waitwhile(active("presser")) | ||
+ | produce("rubber", 1, count*4.0 - craft_inventory * count("plate.rubber", tier), "presser") | ||
− | + | end: global.int.set("craft_status:3.9", global.int.get("craft_status:3.9") + 2) | |
− | + | }} | |
− | |||
− | |||
− | |||
|- | |- | ||
− | | | + | |craft 3:9:rings |
+ | |10 | ||
+ | |{{AIScript | ||
+ | |code= | ||
D2NyYWZ0IDM6OTpyaW5ncwAAAAAAAAAACgAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmds | D2NyYWZ0IDM6OTpyaW5ncwAAAAAAAAAACgAAAA1sb2NhbC5pbnQuc2V0CGNvbnN0YW50BAR0aWVyDmds | ||
b2JhbC5pbnQuZ2V0CGNvbnN0YW50BA5jcmFmdF90aWVyOjMuORBsb2NhbC5kb3VibGUuc2V0CGNvbnN0 | b2JhbC5pbnQuZ2V0CGNvbnN0YW50BA5jcmFmdF90aWVyOjMuORBsb2NhbC5kb3VibGUuc2V0CGNvbnN0 | ||
Line 1,586: | Line 1,448: | ||
DmFyaXRobWV0aWMuaW50Dmdsb2JhbC5pbnQuZ2V0CGNvbnN0YW50BBBjcmFmdF9zdGF0dXM6My45CGNv | DmFyaXRobWV0aWMuaW50Dmdsb2JhbC5pbnQuZ2V0CGNvbnN0YW50BBBjcmFmdF9zdGF0dXM6My45CGNv | ||
bnN0YW50BAErCGNvbnN0YW50AgQAAAA= | bnN0YW50BAErCGNvbnN0YW50AgQAAAA= | ||
− | </ | + | |src= |
− | + | :global double craft_inventory | |
− | + | :local int tier | |
+ | :local double count | ||
+ | :local double rods | ||
+ | |||
+ | tier = global.int.get("craft_tier:3.9") | ||
+ | count = global.double.get("craft_count:3.9") | ||
+ | |||
+ | ; 2 rings | ||
+ | rods = count * 2.0 - count("ring", tier) | ||
+ | rods: gotoif(rings, rods < craft_inventory * count("rod", tier)) | ||
+ | waitwhile(active("shaper")) | ||
+ | produce("ingot", tier, ceil((rods - craft_inventory * count("rod", tier))/2.0), "shaper") | ||
+ | |||
+ | rings: gotoif(end, count*2.0 < craft_inventory * count("ring", tier)) | ||
+ | waitwhile(count("rod", tier) < rods {{!}} active("shaper")) | ||
+ | produce("rod", tier, count*2.0 - craft_inventory * count("ring", tier), "shaper") | ||
+ | |||
+ | end: global.int.set("craft_status:3.9", global.int.get("craft_status:3.9") + 4) | ||
+ | }} | ||
|} | |} | ||
+ | |||
====Wires==== | ====Wires==== | ||
Line 1,619: | Line 1,500: | ||
c3RhbnQEBWluZ290DWxvY2FsLmludC5nZXQIY29uc3RhbnQEBHRpZXILZG91YmxlLmNlaWwRYXJpdGht | c3RhbnQEBWluZ290DWxvY2FsLmludC5nZXQIY29uc3RhbnQEBHRpZXILZG91YmxlLmNlaWwRYXJpdGht | ||
ZXRpYy5kb3VibGURYXJpdGhtZXRpYy5kb3VibGUQbG9jYWwuZG91YmxlLmdldAhjb25zdGFudAQFY291 | ZXRpYy5kb3VibGURYXJpdGhtZXRpYy5kb3VibGUQbG9jYWwuZG91YmxlLmdldAhjb25zdGFudAQFY291 | ||
− | bnQIY29uc3RhbnQEAS0RYXJpdGhtZXRpYy5kb3VibGURZ2xvYmFsLmRvdWJsZS5nZXQIY29uc3RhbnQE | + | bnQIY29uc3RhbnQEAS0RYXJpdGhtZXRpYy5kb3VibGURZ2xvYmFsLmRvdWJsZS5nZXQIY29uc3RhbnQE |
− | D2NyYWZ0X2ludmVudG9yeQhjb25zdGFudAQBKhNmYWN0b3J5Lml0ZW1zLmNvdW50CGNvbnN0YW50BAVj | + | D2NyYWZ0X2ludmVudG9yeQhjb25zdGFudAQBKhNmYWN0b3J5Lml0ZW1zLmNvdW50CGNvbnN0YW50BAVj |
− | YWJsZQ1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyCGNvbnN0YW50BAEvCGNvbnN0YW50AwAAAAAA | + | YWJsZQ1sb2NhbC5pbnQuZ2V0CGNvbnN0YW50BAR0aWVyCGNvbnN0YW50BAEvCGNvbnN0YW50AwAAAAAA |
− | AABACGNvbnN0YW50BAhyZWZpbmVyeRFnZW5lcmljLndhaXR3aGlsZRZmYWN0b3J5Lm1hY2hpbmUuYWN0 | + | AABACGNvbnN0YW50BAhyZWZpbmVyeRFnZW5lcmljLndhaXR3aGlsZRZmYWN0b3J5Lm1hY2hpbmUuYWN0 |
− | aXZlCGNvbnN0YW50BAhyZWZpbmVyeQ9mYWN0b3J5LnByb2R1Y2UIY29uc3RhbnQEBWNhYmxlDWxvY2Fs | + | aXZlCGNvbnN0YW50BAhyZWZpbmVyeQ9mYWN0b3J5LnByb2R1Y2UIY29uc3RhbnQEBWNhYmxlDWxvY2Fs |
− | LmludC5nZXQIY29uc3RhbnQEBHRpZXIQbG9jYWwuZG91YmxlLmdldAhjb25zdGFudAQFY291bnQIY29u | + | LmludC5nZXQIY29uc3RhbnQEBHRpZXIQbG9jYWwuZG91YmxlLmdldAhjb25zdGFudAQFY291bnQIY29u |
− | c3RhbnQECHJlZmluZXJ5EWdlbmVyaWMud2FpdHVudGlsEWNvbXBhcmlzb24uZG91YmxlE2ZhY3Rvcnku | + | c3RhbnQECHJlZmluZXJ5EWdlbmVyaWMud2FpdHVudGlsEWNvbXBhcmlzb24uZG91YmxlE2ZhY3Rvcnku |
− | aXRlbXMuY291bnQIY29uc3RhbnQEBHdpcmUNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25z | + | aXRlbXMuY291bnQIY29uc3RhbnQEBHdpcmUNbG9jYWwuaW50LmdldAhjb25zdGFudAQEdGllcghjb25z |
− | dGFudAQCPj0QbG9jYWwuZG91YmxlLmdldAhjb25zdGFudAQFY291bnQ= | + | dGFudAQCPj0QbG9jYWwuZG91YmxlLmdldAhjb25zdGFudAQFY291bnQ= |
− | |src= | + | |src= |
− | :global double craft_inventory | + | :global double craft_inventory |
− | :local int tier | + | :local int tier |
− | :local double count | + | :local double count |
− | + | ||
− | tier = global.int.get("craft_tier:wire") | + | tier = global.int.get("craft_tier:wire") |
− | count = global.double.get("craft_count:wire") | + | count = global.double.get("craft_count:wire") |
− | gotoif(99, tier < 1 {{!}} tier > 10 {{!}} count < 1.0 {{!}} global.int.get("craft_status") > 199) | + | 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==== | ====Screws==== |
Latest revision as of 08:28, 27 January 2021
Contents
Parts scripts
Chips (1)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 3:1 | 20 |
| |||
craft 3:1:in | 18 |
| |||
craft 3:1:board | 16 |
| |||
craft 3:1:circuit | 16 |
|
Plates (2)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 3:2 | 9 |
|
Dense plates (3)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 3:3 | 14 |
|
Blocks (4)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 3:4 | 10 |
|
Cables (5)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 3:5 | 9 |
|
Insulated cables (6)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 3:6 | 21 |
|
Rods (7)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 3:7 | 9 |
|
Motors (8)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 3:8 | 20 |
| |||
craft 3:8:rods | 10 |
| |||
craft 3:8:wire | 9 |
|
Pumps (9)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft 3:9 | 10 |
| |||
craft 3:9:in | 16 |
| |||
craft 3:9:plates | 9 |
| |||
craft 3:9:rings | 10 |
|
Wires
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft part:wire | 9 |
|
Screws
(pic)
Name | Lines | Code | |||
---|---|---|---|---|---|
craft part:screw | 12 |
|