Difference between revisions of "AI Craftapalooza CNC"
Jump to navigation
Jump to search
Troylaurin (talk | contribs) (Created page with "{| class="wikitable" !Script !Lines !Notes !Source |- |craft init |9 |Impulse on wake |{{AIScript |code= CmNyYWZ0IGluaXQBAAAABndha2V1cAAAAAAJAAAADmdsb2JhbC5pbnQuc2V0CGNvbnN0YW...") |
Troylaurin (talk | contribs) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| + | === Command scripts === | ||
{| class="wikitable" | {| class="wikitable" | ||
!Script | !Script | ||
| Line 37: | Line 38: | ||
|13 | |13 | ||
|Impulse on 0 | |Impulse on 0 | ||
| − | * while in the factory | + | |
| + | *while in the factory | ||
|{{AIScript | |{{AIScript | ||
|code= | |code= | ||
| Line 253: | Line 255: | ||
|craft script check | |craft script check | ||
|3 | |3 | ||
| − | | | + | |Uses a timing hack to determine if the target script exists, and sets status to 404 if it doesn't. |
|{{AIScript | |{{AIScript | ||
|code= | |code= | ||
| Line 274: | Line 276: | ||
|? | |? | ||
|Impulse on 4 | |Impulse on 4 | ||
| − | * while in town | + | |
| − | * while in producer mode (1) | + | *while in town |
| + | *while in producer mode (1) | ||
|TODO | |TODO | ||
| Line 282: | Line 285: | ||
|4 | |4 | ||
|Impulse on 4 | |Impulse on 4 | ||
| − | * while in the factory | + | |
| − | * while in machine mode (2) | + | *while in the factory |
| + | *while in machine mode (2) | ||
|{{AIScript | |{{AIScript | ||
|code= | |code= | ||
| Line 326: | Line 330: | ||
|craft ingot | |craft ingot | ||
|13 | |13 | ||
| − | | | + | |Inputs: |
| + | *<code>craft_tier:ingot</code> (int) | ||
| + | *<code>craft_count:ingot</code> (double) | ||
| + | *<code>craft_verify:ingot</code> (int) | ||
| + | ** If 1, will only count and not create ingots | ||
| + | |||
| + | Note: will always use ingots in inventory, regardless of <code>craft_inventory</code> setting. | ||
| + | Note: will exit immediately if <code>craft_status</code> contains a terminal value. | ||
| + | |||
|{{AIScript | |{{AIScript | ||
|code= | |code= | ||
Latest revision as of 01:13, 22 January 2021
Command scripts
| Script | Lines | Notes | Source | |||
|---|---|---|---|---|---|---|
| craft init | 9 | Impulse on wake |
| |||
| craft GO | 13 | Impulse on 0
|
| |||
| craft tier up | 1 | Impulse on 1 |
| |||
| craft mode up | 2 | Impulse on 2 |
| |||
| craft output up | 2 | Impulse on 3 |
| |||
| craft count up | 5 | Impulse on 9 |
| |||
| craft count down | 5 | Impulse on 8 |
| |||
| craft inventory use | 1 | Impulse on 5 |
| |||
| craft script check | 3 | Uses a timing hack to determine if the target script exists, and sets status to 404 if it doesn't. |
| |||
| craft output producer | ? | Impulse on 4
|
TODO | |||
| craft output machine | 4 | Impulse on 4
|
| |||
| craft ingot | 13 | Inputs:
Note: will always use ingots in inventory, regardless of |
|