Difference between revisions of "User:Troylaurin"
Jump to navigation
Jump to search
Troylaurin (talk | contribs) |
Troylaurin (talk | contribs) |
||
Line 1: | Line 1: | ||
− | + | A bunch of scripts to craft stuff. | |
− | <br /> | + | |
+ | |||
+ | IN DEVELOPMENT. USE AT YOUR OWN RISK.<br /> | ||
+ | |||
+ | == General scripts == | ||
{| class="wikitable" | {| class="wikitable" | ||
− | |||
!Script | !Script | ||
!Info | !Info | ||
Line 10: | Line 13: | ||
|1 impulse | |1 impulse | ||
− | * on wake | + | *on wake |
− | |||
− | |||
9 actions | 9 actions | ||
Line 45: | Line 46: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
+ | |- | ||
+ | |craft GO | ||
+ | | | ||
+ | | | ||
|- | |- | ||
|craft tier up | |craft tier up | ||
|1 impulse | |1 impulse | ||
− | * key 1 | + | *key 1 |
1 condition | 1 condition | ||
+ | |||
+ | * not busy crafting | ||
1 action | 1 action | ||
Line 76: | Line 83: | ||
|} | |} | ||
|- | |- | ||
+ | |craft mode up | ||
+ | |1 impulse | ||
+ | |||
+ | * key 2 | ||
+ | |||
+ | 1 condition | ||
+ | |||
+ | * not busy crafting | ||
+ | |||
+ | 2 actions | ||
| | | | ||
+ | {| class="wikitable mw-collapsible mw-collapsed" | ||
+ | ! | ||
+ | |- | ||
+ | |<syntaxhighlight lang="actionscript"> | ||
+ | :global int craft_mode | ||
+ | :global int craft_output | ||
+ | |||
+ | key.2() | ||
+ | (global.int.get("craft_busy") == 0) | ||
+ | |||
+ | craft_mode = (craft_mode % 3) + 1 | ||
+ | craft_output = 1 | ||
+ | </syntaxhighlight> | ||
+ | |- | ||
+ | |<syntaxhighlight lang="text"> | ||
+ | DWNyYWZ0IG1vZGUgdXABAAAABWtleS4yAQAAAA5jb21wYXJpc29uLmludA5nbG9iYWwuaW50LmdldAhj | ||
+ | b25zdGFudAQKY3JhZnRfYnVzeQhjb25zdGFudAQCPT0IY29uc3RhbnQCAAAAAAIAAAAOZ2xvYmFsLmlu | ||
+ | dC5zZXQIY29uc3RhbnQECmNyYWZ0X21vZGUOYXJpdGhtZXRpYy5pbnQOYXJpdGhtZXRpYy5pbnQOZ2xv | ||
+ | YmFsLmludC5nZXQIY29uc3RhbnQECmNyYWZ0X21vZGUIY29uc3RhbnQEA21vZAhjb25zdGFudAIDAAAA | ||
+ | CGNvbnN0YW50BAErCGNvbnN0YW50AgEAAAAOZ2xvYmFsLmludC5zZXQIY29uc3RhbnQEDGNyYWZ0X291 | ||
+ | dHB1dAhjb25zdGFudAIBAAAA | ||
+ | </syntaxhighlight> | ||
+ | |} | ||
+ | |- | ||
+ | |craft output up | ||
+ | |1 impulse | ||
+ | |||
+ | * key 3 | ||
+ | |||
+ | 1 condition | ||
+ | |||
+ | * not busy crafting | ||
+ | |||
+ | 2 actions | ||
+ | | | ||
+ | {| class="wikitable mw-collapsible mw-collapsed" | ||
+ | ! | ||
+ | |- | ||
+ | |<syntaxhighlight lang="actionscript"> | ||
+ | :global int craft_mode | ||
+ | :global int craft_output | ||
+ | :local int max | ||
+ | |||
+ | key.3() | ||
+ | (global.int.get("craft_busy") == 0) | ||
+ | |||
+ | max = (13101300 / (100 ^ craft_mode)) % 100 | ||
+ | craft_output = (craft_output % max) + 1 | ||
+ | </syntaxhighlight> | ||
+ | |- | ||
+ | |<syntaxhighlight lang="text"> | ||
+ | D2NyYWZ0IG91dHB1dCB1cAEAAAAFa2V5LjMBAAAADmNvbXBhcmlzb24uaW50Dmdsb2JhbC5pbnQuZ2V0 | ||
+ | CGNvbnN0YW50BApjcmFmdF9idXN5CGNvbnN0YW50BAI9PQhjb25zdGFudAIAAAAAAgAAAA1sb2NhbC5p | ||
+ | bnQuc2V0CGNvbnN0YW50BANtYXgOYXJpdGhtZXRpYy5pbnQOYXJpdGhtZXRpYy5pbnQIY29uc3RhbnQC | ||
+ | 9OjHAAhjb25zdGFudAQBLw5hcml0aG1ldGljLmludAhjb25zdGFudAJkAAAACGNvbnN0YW50BANwb3cO | ||
+ | Z2xvYmFsLmludC5nZXQIY29uc3RhbnQECmNyYWZ0X21vZGUIY29uc3RhbnQEA21vZAhjb25zdGFudAJk | ||
+ | AAAADmdsb2JhbC5pbnQuc2V0CGNvbnN0YW50BAxjcmFmdF9vdXRwdXQOYXJpdGhtZXRpYy5pbnQOYXJp | ||
+ | dGhtZXRpYy5pbnQOZ2xvYmFsLmludC5nZXQIY29uc3RhbnQEDGNyYWZ0X291dHB1dAhjb25zdGFudAQD | ||
+ | bW9kDWxvY2FsLmludC5nZXQIY29uc3RhbnQEA21heAhjb25zdGFudAQBKwhjb25zdGFudAIBAAAA | ||
+ | </syntaxhighlight> | ||
+ | |} | ||
+ | |- | ||
+ | |craft count up | ||
+ | |1 impulse | ||
+ | |||
+ | * key 9 | ||
+ | |||
+ | 1 condition | ||
+ | |||
+ | * not busy crafting | ||
+ | |||
+ | 5 actions | ||
| | | | ||
+ | {| class="wikitable mw-collapsible mw-collapsed" | ||
+ | ! | ||
+ | |- | ||
+ | |<syntaxhighlight lang="actionscript"> | ||
+ | :global double craft_count | ||
+ | :local double pow | ||
+ | :local double inc | ||
+ | |||
+ | key.9() | ||
+ | (global.int.get("craft_busy") == 0) | ||
+ | |||
+ | gotoif(99, craft_count > 900000.0) | ||
+ | gotoif(a, craft_count < 1.0) | ||
+ | pow = double.floor(0.01 + (craft_count // 10.0)) | ||
+ | a: inc = 10.0 ^ pow | ||
+ | craft_count = craft_count + inc | ||
+ | </syntaxhighlight> | ||
+ | |- | ||
+ | |<syntaxhighlight lang="text"> | ||
+ | DmNyYWZ0IGNvdW50IHVwAQAAAAVrZXkuOQEAAAAOY29tcGFyaXNvbi5pbnQOZ2xvYmFsLmludC5nZXQI | ||
+ | Y29uc3RhbnQECmNyYWZ0X2J1c3kIY29uc3RhbnQEAj09CGNvbnN0YW50AgAAAAAFAAAADmdlbmVyaWMu | ||
+ | Z290b2lmCGNvbnN0YW50AmMAAAARY29tcGFyaXNvbi5kb3VibGURZ2xvYmFsLmRvdWJsZS5nZXQIY29u | ||
+ | c3RhbnQEC2NyYWZ0X2NvdW50CGNvbnN0YW50BAE+CGNvbnN0YW50AwAAAABAdytBDmdlbmVyaWMuZ290 | ||
+ | b2lmCGNvbnN0YW50AgQAAAARY29tcGFyaXNvbi5kb3VibGURZ2xvYmFsLmRvdWJsZS5nZXQIY29uc3Rh | ||
+ | bnQEC2NyYWZ0X2NvdW50CGNvbnN0YW50BAE8CGNvbnN0YW50AwAAAAAAAPA/EGxvY2FsLmRvdWJsZS5z | ||
+ | ZXQIY29uc3RhbnQEA3Bvdwxkb3VibGUuZmxvb3IRYXJpdGhtZXRpYy5kb3VibGUIY29uc3RhbnQDexSu | ||
+ | R+F6hD8IY29uc3RhbnQEASsRYXJpdGhtZXRpYy5kb3VibGURZ2xvYmFsLmRvdWJsZS5nZXQIY29uc3Rh | ||
+ | bnQEC2NyYWZ0X2NvdW50CGNvbnN0YW50BANsb2cIY29uc3RhbnQDAAAAAAAAJEAQbG9jYWwuZG91Ymxl | ||
+ | LnNldAhjb25zdGFudAQDaW5jEWFyaXRobWV0aWMuZG91YmxlCGNvbnN0YW50AwAAAAAAACRACGNvbnN0 | ||
+ | YW50BANwb3cQbG9jYWwuZG91YmxlLmdldAhjb25zdGFudAQDcG93EWdsb2JhbC5kb3VibGUuc2V0CGNv | ||
+ | bnN0YW50BAtjcmFmdF9jb3VudBFhcml0aG1ldGljLmRvdWJsZRFnbG9iYWwuZG91YmxlLmdldAhjb25z | ||
+ | dGFudAQLY3JhZnRfY291bnQIY29uc3RhbnQEASsQbG9jYWwuZG91YmxlLmdldAhjb25zdGFudAQDaW5j | ||
+ | </syntaxhighlight> | ||
+ | |} | ||
+ | |- | ||
+ | |craft count down | ||
+ | |1 impulse | ||
+ | |||
+ | * key 8 | ||
+ | |||
+ | 1 condition | ||
+ | |||
+ | * not busy crafting | ||
+ | |||
+ | 5 actions | ||
| | | | ||
+ | {| class="wikitable mw-collapsible mw-collapsed" | ||
+ | ! | ||
+ | |- | ||
+ | |<syntaxhighlight lang="actionscript"> | ||
+ | :global double craft_count | ||
+ | :local double pow | ||
+ | :local double inc | ||
+ | |||
+ | key.8() | ||
+ | (global.int.get("craft_busy") == 0) | ||
+ | |||
+ | gotoif(a, craft_count < 1.0) | ||
+ | pow = double.floor(-0.01 + (craft_count // 10.0)) | ||
+ | a: inc = 10.0 ^ pow | ||
+ | gotoif(99, craft_count - inc < 1.0) | ||
+ | craft_count = craft_count - inc | ||
+ | </syntaxhighlight> | ||
+ | |- | ||
+ | |<syntaxhighlight lang="text"> | ||
+ | EGNyYWZ0IGNvdW50IGRvd24BAAAABWtleS44AQAAAA5jb21wYXJpc29uLmludA5nbG9iYWwuaW50Lmdl | ||
+ | dAhjb25zdGFudAQKY3JhZnRfYnVzeQhjb25zdGFudAQCPT0IY29uc3RhbnQCAAAAAAUAAAAOZ2VuZXJp | ||
+ | Yy5nb3RvaWYIY29uc3RhbnQCAwAAABFjb21wYXJpc29uLmRvdWJsZRFnbG9iYWwuZG91YmxlLmdldAhj | ||
+ | b25zdGFudAQLY3JhZnRfY291bnQIY29uc3RhbnQEATwIY29uc3RhbnQDAAAAAAAA8D8QbG9jYWwuZG91 | ||
+ | YmxlLnNldAhjb25zdGFudAQDcG93DGRvdWJsZS5mbG9vchFhcml0aG1ldGljLmRvdWJsZQhjb25zdGFu | ||
+ | dAN7FK5H4XqEvwhjb25zdGFudAQBKxFhcml0aG1ldGljLmRvdWJsZRFnbG9iYWwuZG91YmxlLmdldAhj | ||
+ | b25zdGFudAQLY3JhZnRfY291bnQIY29uc3RhbnQEA2xvZwhjb25zdGFudAMAAAAAAAAkQBBsb2NhbC5k | ||
+ | b3VibGUuc2V0CGNvbnN0YW50BANpbmMRYXJpdGhtZXRpYy5kb3VibGUIY29uc3RhbnQDAAAAAAAAJEAI | ||
+ | Y29uc3RhbnQEA3BvdxBsb2NhbC5kb3VibGUuZ2V0CGNvbnN0YW50BANwb3cOZ2VuZXJpYy5nb3RvaWYI | ||
+ | Y29uc3RhbnQCYwAAABFjb21wYXJpc29uLmRvdWJsZRFhcml0aG1ldGljLmRvdWJsZRFnbG9iYWwuZG91 | ||
+ | YmxlLmdldAhjb25zdGFudAQLY3JhZnRfY291bnQIY29uc3RhbnQEAS0QbG9jYWwuZG91YmxlLmdldAhj | ||
+ | b25zdGFudAQDaW5jCGNvbnN0YW50BAE8CGNvbnN0YW50AwAAAAAAAPA/EWdsb2JhbC5kb3VibGUuc2V0 | ||
+ | CGNvbnN0YW50BAtjcmFmdF9jb3VudBFhcml0aG1ldGljLmRvdWJsZRFnbG9iYWwuZG91YmxlLmdldAhj | ||
+ | b25zdGFudAQLY3JhZnRfY291bnQIY29uc3RhbnQEAS0QbG9jYWwuZG91YmxlLmdldAhjb25zdGFudAQD | ||
+ | aW5j | ||
+ | </syntaxhighlight> | ||
|} | |} | ||
+ | |- | ||
+ | |craft inventory use | ||
+ | |1 impulse | ||
+ | |||
+ | * key 5 | ||
+ | |||
+ | 1 condition | ||
+ | |||
+ | * not busy crafting | ||
+ | |||
+ | 1 action | ||
+ | | | ||
+ | {| class="wikitable mw-collapsible mw-collapsed" | ||
+ | ! | ||
+ | |- | ||
+ | |<syntaxhighlight lang="actionscript"> | ||
+ | :global double craft_inventory | ||
+ | |||
+ | key.5() | ||
+ | (global.int.get("craft_busy") == 0) | ||
+ | |||
+ | craft_inventory = 1.0 - craft_inventory | ||
+ | </syntaxhighlight> | ||
+ | |- | ||
+ | |<syntaxhighlight lang="text"> | ||
+ | E2NyYWZ0IGludmVudG9yeSB1c2UBAAAABWtleS41AQAAAA5jb21wYXJpc29uLmludA5nbG9iYWwuaW50 | ||
+ | LmdldAhjb25zdGFudAQKY3JhZnRfYnVzeQhjb25zdGFudAQCPT0IY29uc3RhbnQCAAAAAAEAAAARZ2xv | ||
+ | YmFsLmRvdWJsZS5zZXQIY29uc3RhbnQED2NyYWZ0X2ludmVudG9yeRFhcml0aG1ldGljLmRvdWJsZQhj | ||
+ | b25zdGFudAMAAAAAAADwPwhjb25zdGFudAQBLRFnbG9iYWwuZG91YmxlLmdldAhjb25zdGFudAQPY3Jh | ||
+ | ZnRfaW52ZW50b3J5 | ||
+ | </syntaxhighlight> | ||
+ | |} | ||
+ | |- | ||
+ | |craft script check | ||
+ | |TODO | ||
+ | | | ||
+ | {| class="wikitable mw-collapsible mw-collapsed" | ||
+ | ! | ||
+ | |- | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | |} | ||
+ | |- | ||
+ | |craft producer set (pg1) | ||
+ | |1 impulse | ||
+ | |||
+ | * key 4 | ||
+ | |||
+ | 1 condition | ||
+ | |||
+ | * not busy crafting & crafting producers | ||
+ | |||
+ | 14 actions | ||
+ | | | ||
+ | {| class="wikitable mw-collapsible mw-collapsed" | ||
+ | ! | ||
+ | |- | ||
+ | |<syntaxhighlight lang="actionscript"> | ||
+ | :global int craft_output | ||
+ | |||
+ | key.4() | ||
+ | (global.int.get("craft_busy") == 0 & global.int.get("craft_mode") == 1) | ||
+ | |||
+ | craft_output = 1 | ||
+ | gotoif(a, isopen("powerplant")) | ||
+ | gotoif(b, isopen("mine")) | ||
+ | gotoif(c, isopen("factory")) | ||
+ | gotoif(d, isopen("headquarters")) | ||
+ | gotoif(e, isopen("arcade")) | ||
+ | gotoif(f, isopen("laboratory")) | ||
+ | goto(99) | ||
+ | f: craft_output = craft_output + 1 | ||
+ | e: craft_output = craft_output + 1 | ||
+ | d: craft_output = craft_output + 1 | ||
+ | c: craft_output = craft_output + 1 | ||
+ | b: craft_output = craft_output + 1 | ||
+ | a: craft_output = craft_output + 1 | ||
+ | </syntaxhighlight> | ||
+ | |- | ||
+ | |<syntaxhighlight lang="text"> | ||
+ | GGNyYWZ0IHByb2R1Y2VyIHNldCAocGcxKQEAAAAFa2V5LjQBAAAAD2NvbXBhcmlzb24uYm9vbA5jb21w | ||
+ | YXJpc29uLmludA5nbG9iYWwuaW50LmdldAhjb25zdGFudAQKY3JhZnRfYnVzeQhjb25zdGFudAQCPT0I | ||
+ |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MuaW50Dmdsb2JhbC5pbnQuZ2V0CGNvbnN0 | ||
+ | YW50BAxjcmFmdF9vdXRwdXQIY29uc3RhbnQEASsIY29uc3RhbnQCAQAAAA5nbG9iYWwuaW50LnNldAhj | ||
+ | b25zdGFudAQMY3JhZnRfb3V0cHV0DmFyaXRobWV0aWMuaW50Dmdsb2JhbC5pbnQuZ2V0CGNvbnN0YW50 | ||
+ | BAxjcmFmdF9vdXRwdXQIY29uc3RhbnQEASsIY29uc3RhbnQCAQAAAA5nbG9iYWwuaW50LnNldAhjb25z | ||
+ | dGFudAQMY3JhZnRfb3V0cHV0DmFyaXRobWV0aWMuaW50Dmdsb2JhbC5pbnQuZ2V0CGNvbnN0YW50BAxj | ||
+ | cmFmdF9vdXRwdXQIY29uc3RhbnQEASsIY29uc3RhbnQCAQAAAA5nbG9iYWwuaW50LnNldAhjb25zdGFu | ||
+ | dAQMY3JhZnRfb3V0cHV0DmFyaXRobWV0aWMuaW50Dmdsb2JhbC5pbnQuZ2V0CGNvbnN0YW50BAxjcmFm | ||
+ | dF9vdXRwdXQIY29uc3RhbnQEASsIY29uc3RhbnQCAQAAAA5nbG9iYWwuaW50LnNldAhjb25zdGFudAQM | ||
+ | Y3JhZnRfb3V0cHV0DmFyaXRobWV0aWMuaW50Dmdsb2JhbC5pbnQuZ2V0CGNvbnN0YW50BAxjcmFmdF9v | ||
+ | dXRwdXQIY29uc3RhbnQEASsIY29uc3RhbnQCAQAAAA== | ||
+ | </syntaxhighlight> | ||
+ | |} | ||
+ | |- | ||
+ | |craft producer set (pg2) | ||
+ | |1 impulse | ||
+ | |||
+ | * key 4 | ||
+ | |||
+ | 1 condition | ||
+ | |||
+ | * not busy crafting & crafting producers | ||
+ | |||
+ | 13 actions | ||
+ | | | ||
+ | {| class="wikitable mw-collapsible mw-collapsed" | ||
+ | ! | ||
+ | |- | ||
+ | |<syntaxhighlight lang="actionscript"> | ||
+ | :global int craft_output | ||
+ | |||
+ | key.4() | ||
+ | (global.int.get("craft_busy") == 0 & global.int.get("craft_mode") == 1) | ||
+ | |||
+ | |||
+ | gotoif(a, isopen("shipyard")) | ||
+ | gotoif(b, isopen("tradingpost")) | ||
+ | gotoif(c, isopen("workshop")) | ||
+ | gotoif(d, isopen("museum")) | ||
+ | gotoif(e, isopen("constructionfirm")) | ||
+ | gotoif(f, isopen("statueofcubos")) | ||
+ | goto(99) | ||
+ | f: craft_output = craft_output + 1 | ||
+ | e: craft_output = craft_output + 1 | ||
+ | d: craft_output = craft_output + 1 | ||
+ | c: craft_output = craft_output + 1 | ||
+ | b: craft_output = craft_output + 1 | ||
+ | a: craft_output = craft_output + 7 | ||
+ | </syntaxhighlight> | ||
+ | |- | ||
+ | |<syntaxhighlight lang="text"> | ||
+ | GGNyYWZ0IHByb2R1Y2VyIHNldCAocGcyKQEAAAAFa2V5LjQBAAAAD2NvbXBhcmlzb24uYm9vbA5jb21w | ||
+ | YXJpc29uLmludA5nbG9iYWwuaW50LmdldAhjb25zdGFudAQKY3JhZnRfYnVzeQhjb25zdGFudAQCPT0I | ||
+ | Y29uc3RhbnQCAAAAAAhjb25zdGFudAQBJg5jb21wYXJpc29uLmludA5nbG9iYWwuaW50LmdldAhjb25z | ||
+ | dGFudAQKY3JhZnRfbW9kZQhjb25zdGFudAQCPT0IY29uc3RhbnQCAQAAAA0AAAAOZ2VuZXJpYy5nb3Rv | ||
+ | aWYIY29uc3RhbnQCDQAAABJ0b3duLndpbmRvdy5pc29wZW4IY29uc3RhbnQECHNoaXB5YXJkDmdlbmVy | ||
+ | aWMuZ290b2lmCGNvbnN0YW50AgwAAAASdG93bi53aW5kb3cuaXNvcGVuCGNvbnN0YW50BAt0cmFkaW5n | ||
+ | cG9zdA5nZW5lcmljLmdvdG9pZghjb25zdGFudAILAAAAEnRvd24ud2luZG93Lmlzb3Blbghjb25zdGFu | ||
+ | dAQId29ya3Nob3AOZ2VuZXJpYy5nb3RvaWYIY29uc3RhbnQCCgAAABJ0b3duLndpbmRvdy5pc29wZW4I |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9vdXRwdXQIY29uc3RhbnQEASsIY29uc3RhbnQCAQAAAA5nbG9i | ||
+ | YWwuaW50LnNldAhjb25zdGFudAQMY3JhZnRfb3V0cHV0DmFyaXRobWV0aWMuaW50Dmdsb2JhbC5pbnQu | ||
+ | Z2V0CGNvbnN0YW50BAxjcmFmdF9vdXRwdXQIY29uc3RhbnQEASsIY29uc3RhbnQCBwAAAA== | ||
+ | </syntaxhighlight> | ||
+ | |} | ||
+ | |- | ||
+ | |craft machine set | ||
+ | |1 impulse | ||
+ | |||
+ | * key 4 | ||
+ | |||
+ | 1 condition | ||
+ | |||
+ | * not busy crafting & crafting machines | ||
+ | |||
+ | 4 actions | ||
+ | | | ||
+ | {| class="wikitable mw-collapsible mw-collapsed" | ||
+ | ! | ||
+ | |- | ||
+ | |<syntaxhighlight lang="actionscript"> | ||
+ | :global int craft_output | ||
+ | :global int y | ||
+ | :global int x | ||
+ | |||
+ | key.4() | ||
+ | (global.int.get("craft_busy") == 0 & global.int.get("craft_mode") == 2 & isopen("factory")) | ||
+ | |||
+ | x = d2i(floor(((x(position()) / i2d(width()) - 0.41) / 0.10) + 1.0)) | ||
+ | y = d2i(floor(((0.80 - y(position()) / i2d(height())) / 0.214))) | ||
+ | |||
+ | gotoif(99, x<1 | x>5 | y<0 | y>1) | ||
+ | craft_output = x + y*5 | ||
+ | </syntaxhighlight> | ||
+ | |- | ||
+ | |<syntaxhighlight lang="text"> | ||
+ | EWNyYWZ0IG1hY2hpbmUgc2V0AQAAAAVrZXkuNAEAAAAPY29tcGFyaXNvbi5ib29sD2NvbXBhcmlzb24u | ||
+ | Ym9vbA5jb21wYXJpc29uLmludA5nbG9iYWwuaW50LmdldAhjb25zdGFudAQKY3JhZnRfYnVzeQhjb25z | ||
+ | dGFudAQCPT0IY29uc3RhbnQCAAAAAAhjb25zdGFudAQBJg5jb21wYXJpc29uLmludA5nbG9iYWwuaW50 | ||
+ | LmdldAhjb25zdGFudAQKY3JhZnRfbW9kZQhjb25zdGFudA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+ | BAE+CGNvbnN0YW50AgUAAAAIY29uc3RhbnQEAXwOY29tcGFyaXNvbi5pbnQOZ2xvYmFsLmludC5nZXQI | ||
+ | Y29uc3RhbnQEAXkIY29uc3RhbnQEATwIY29uc3RhbnQCAAAAAAhjb25zdGFudAQBfA5jb21wYXJpc29u | ||
+ | LmludA5nbG9iYWwuaW50LmdldAhjb25zdGFudAQBeQhjb25zdGFudAQBPghjb25zdGFudAIBAAAADmds | ||
+ | b2JhbC5pbnQuc2V0CGNvbnN0YW50BAxjcmFmdF9vdXRwdXQOYXJpdGhtZXRpYy5pbnQOZ2xvYmFsLmlu | ||
+ | dC5nZXQIY29uc3RhbnQEAXgIY29uc3RhbnQEASsOYXJpdGhtZXRpYy5pbnQOZ2xvYmFsLmludC5nZXQI | ||
+ | Y29uc3RhbnQEAXkIY29uc3RhbnQEASoIY29uc3RhbnQCBQAAAA== | ||
+ | </syntaxhighlight> | ||
+ | |} | ||
+ | |} | ||
+ | |||
+ | == Parts scripts == | ||
+ | <br /> | ||
+ | |||
+ | == Producer scripts == | ||
+ | <br /> | ||
+ | |||
+ | == Machine scripts == |
Revision as of 03:19, 16 January 2021
A bunch of scripts to craft stuff.
IN DEVELOPMENT. USE AT YOUR OWN RISK.
General scripts
Script | Info | Source | |||
---|---|---|---|---|---|
craft init | 1 impulse
9 actions |
| |||
craft GO | |||||
craft tier up | 1 impulse
1 condition
1 action |
| |||
craft mode up | 1 impulse
1 condition
2 actions |
| |||
craft output up | 1 impulse
1 condition
2 actions |
| |||
craft count up | 1 impulse
1 condition
5 actions |
| |||
craft count down | 1 impulse
1 condition
5 actions |
| |||
craft inventory use | 1 impulse
1 condition
1 action |
| |||
craft script check | TODO |
| |||
craft producer set (pg1) | 1 impulse
1 condition
14 actions |
| |||
craft producer set (pg2) | 1 impulse
1 condition
13 actions |
| |||
craft machine set | 1 impulse
1 condition
4 actions |
|
Parts scripts
Producer scripts