Difference between revisions of "User:Troylaurin"
Jump to navigation
Jump to search
Troylaurin (talk | contribs) m |
Troylaurin (talk | contribs) |
||
Line 77: | Line 77: | ||
{| class="wikitable" | {| class="wikitable" | ||
!Script | !Script | ||
− | ! | + | !Impulses |
+ | !Conditions | ||
+ | !Lines | ||
!Source | !Source | ||
|- | |- | ||
|craft init | |craft init | ||
− | | | + | | |
− | + | * On wake | |
− | * | + | | - |
− | + | |9 | |
− | |||
− | |||
− | 9 | ||
| | | | ||
{| class="wikitable mw-collapsible mw-collapsed" | {| class="wikitable mw-collapsible mw-collapsed" | ||
Line 120: | Line 119: | ||
|- | |- | ||
|craft GO | |craft GO | ||
− | | | + | | |
− | |||
*key 0 | *key 0 | ||
− | + | | | |
− | |||
− | |||
*not busy crafting & factory screen open | *not busy crafting & factory screen open | ||
− | 12 | + | <br /> |
+ | |12 | ||
| | | | ||
{| class="wikitable mw-collapsible mw-collapsed" | {| class="wikitable mw-collapsible mw-collapsed" | ||
Line 187: | Line 184: | ||
|- | |- | ||
|craft tier up | |craft tier up | ||
− | | | + | | |
− | |||
*key 1 | *key 1 | ||
− | + | <br /> | |
− | + | | | |
− | *not busy crafting | + | * not busy crafting |
− | + | |1 | |
− | 1 | ||
| | | | ||
{| class="wikitable mw-collapsible mw-collapsed" | {| class="wikitable mw-collapsible mw-collapsed" | ||
Line 219: | Line 214: | ||
|- | |- | ||
|craft mode up | |craft mode up | ||
− | | | + | | |
− | |||
*key 2 | *key 2 | ||
− | + | <br /> | |
− | + | | | |
− | *not busy crafting | + | * not busy crafting |
− | + | |2 | |
− | 2 | ||
| | | | ||
{| class="wikitable mw-collapsible mw-collapsed" | {| class="wikitable mw-collapsible mw-collapsed" | ||
Line 263: | Line 256: | ||
2 actions | 2 actions | ||
+ | | | ||
+ | * not busy crafting | ||
+ | |2 | ||
| | | | ||
{| class="wikitable mw-collapsible mw-collapsed" | {| class="wikitable mw-collapsible mw-collapsed" | ||
Line 301: | Line 297: | ||
5 actions | 5 actions | ||
+ | | | ||
+ | * not busy crafting | ||
+ | |5 | ||
| | | | ||
{| class="wikitable mw-collapsible mw-collapsed" | {| class="wikitable mw-collapsible mw-collapsed" | ||
Line 347: | Line 346: | ||
5 actions | 5 actions | ||
+ | | | ||
+ | * not busy crafting | ||
+ | |5 | ||
| | | | ||
{| class="wikitable mw-collapsible mw-collapsed" | {| class="wikitable mw-collapsible mw-collapsed" | ||
Line 386: | Line 388: | ||
|- | |- | ||
|craft inventory use | |craft inventory use | ||
− | | | + | | |
− | |||
*key 5 | *key 5 | ||
− | + | <br /> | |
− | + | | | |
− | *not busy crafting | + | * not busy crafting |
− | + | |1 | |
− | 1 | ||
| | | | ||
{| class="wikitable mw-collapsible mw-collapsed" | {| class="wikitable mw-collapsible mw-collapsed" | ||
Line 418: | Line 418: | ||
|- | |- | ||
|craft script check | |craft script check | ||
− | |3 | + | | |
+ | | | ||
+ | |3 | ||
| | | | ||
{| class="wikitable mw-collapsible mw-collapsed" | {| class="wikitable mw-collapsible mw-collapsed" | ||
Line 443: | Line 445: | ||
|- | |- | ||
|craft producer set (pg1) | |craft producer set (pg1) | ||
− | | | + | | |
− | |||
*key 4 | *key 4 | ||
− | + | <br /> | |
+ | |<br /> | ||
*not busy crafting & crafting producers | *not busy crafting & crafting producers | ||
− | + | |14 | |
− | 14 | ||
| | | | ||
{| class="wikitable mw-collapsible mw-collapsed" | {| class="wikitable mw-collapsible mw-collapsed" | ||
Line 507: | Line 508: | ||
|- | |- | ||
|craft producer set (pg2) | |craft producer set (pg2) | ||
− | | | + | | |
− | |||
*key 4 | *key 4 | ||
− | + | <br /> | |
− | + | | | |
*not busy crafting & crafting producers | *not busy crafting & crafting producers | ||
− | + | |13 | |
− | 13 | ||
| | | | ||
{| class="wikitable mw-collapsible mw-collapsed" | {| class="wikitable mw-collapsible mw-collapsed" | ||
Line 570: | Line 569: | ||
|- | |- | ||
|craft machine set | |craft machine set | ||
− | | | + | | |
− | |||
*key 4 | *key 4 | ||
− | + | <br /> | |
+ | |<br /> | ||
*not busy crafting & crafting machines | *not busy crafting & crafting machines | ||
− | + | |4 | |
− | 4 | ||
| | | | ||
{| class="wikitable mw-collapsible mw-collapsed" | {| class="wikitable mw-collapsible mw-collapsed" | ||
Line 625: | Line 623: | ||
|- | |- | ||
|craft ingot | |craft ingot | ||
− | |15 | + | | |
+ | | | ||
+ | |15 | ||
| | | | ||
{| class="wikitable mw-collapsible mw-collapsed" | {| class="wikitable mw-collapsible mw-collapsed" |
Revision as of 09:20, 16 January 2021
A bunch of scripts to craft stuff.
Click to copy (tamperscript) |
---|
// ==UserScript==
// @name Click to copy on <pre> tags
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Add click to copy buttons to <pre> tags
// @author Troy.Laurin@gmail.com
// @match https://www.perfecttower2.com/wiki/*
// @grant GM_addStyle
// @require https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js
// @require http://code.jquery.com/jquery-3.5.1.slim.min.js
// ==/UserScript==
(function() {
'use strict';
// ------------------------------------------
// CSS part injected in the page
GM_addStyle(" \
.precontainer { \
position: relative; \
} \
.copy-btn { \
background: #DDD; \
font-family: monospace; \
font-weight: bolder; \
margin: 0; \
opacity: 0; \
padding: 4px; \
position: absolute; \
right: 1px; \
top: 1px; \
cursor: pointer; \
-webkit-transition: opacity 0.3s ease-in-out; \
-o-transition: opacity 0.3s ease-in-out; \
transition: opacity 0.3s ease-in-out; \
} \
.precontainer:hover >.copy-btn { \
opacity: 1; \
} \
table { width: 100% } \
");
$('pre').wrap('<div class="precontainer"></div>');
$('pre').before($('<span class="copy-btn"></></span>'));
new ClipboardJS('.copy-btn', {
text: function(trigger) {
return $(trigger.nextElementSibling).text();
}
})
.on('success',function (e) {
$(e.trigger).html("<copied/>")
setTimeout(function() {
$(e.trigger).html("</>");
}, 3000);
})
.on('error',function (e) {
$(e.trigger).html("Error!")
setTimeout(function() {
$(e.trigger).html("</>");
}, 3000);
});
})();
|
IN DEVELOPMENT. USE AT YOUR OWN RISK.
General scripts
Script | Impulses | Conditions | Lines | Source | |||
---|---|---|---|---|---|---|---|
craft init |
|
- | 9 |
| |||
craft GO |
|
|
12 |
| |||
craft tier up |
|
|
1 |
| |||
craft mode up |
|
|
2 |
| |||
craft output up | 1 impulse
1 condition
2 actions |
|
2 |
| |||
craft count up | 1 impulse
1 condition
5 actions |
|
5 |
| |||
craft count down | 1 impulse
1 condition
5 actions |
|
5 |
| |||
craft inventory use |
|
|
1 |
| |||
craft script check | 3 |
| |||||
craft producer set (pg1) |
|
|
14 |
| |||
craft producer set (pg2) |
|
|
13 |
| |||
craft machine set |
|
|
4 |
| |||
craft ingot | 15 |
|
Parts scripts
Output | Part | Scripts | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | chips |
| |||||||||||||||||||||||||||
2 | plates |
| |||||||||||||||||||||||||||
3 | dense plates |
| |||||||||||||||||||||||||||
4 | blocks |
| |||||||||||||||||||||||||||
5 | cables |
| |||||||||||||||||||||||||||
6 | insulated cables |
| |||||||||||||||||||||||||||
7 | rods |
| |||||||||||||||||||||||||||
8 | motors |
| |||||||||||||||||||||||||||
9 | pumps |
|
Producer scripts
Machine scripts
Name | Lines | Code | |||
---|---|---|---|---|---|
x | x |
|