Script Limit [3]
commited
commit
a76cd3fbf79edd1c99ebdb9f56be0e91baa3aeec
... | ... | @@ -14,3 +14,18 @@ The limit is 4096. The value doesn't matter as much as how you decide to use the |
14 | 14 | * Script Blocks |
15 | 15 | * [Wire Splits](https://www.fancade.com/wiki/Script/Wire%20Splits.md) |
16 | 16 | * Pointer Dereferencing |
17 | ||
18 | ### Script Blocks |
|
19 | Every script block counts as 1 script towards the total limit. It does not matter which script block it is, as long as it is an inbuilt script block, it adds 1 to the counter. The attached image has 4 script blocks, thus the script consumption is 4/4096 or 0.1%. |
|
20 |  |
|
21 | ||
22 | ### Wire Splits |
|
23 | A wire split counts as 1 script towards the limit. Thus the script in image A adds 4 scripts (3 script blocks + 1 wire split) to the counter. |
|
24 |  |
|
25 | ||
26 | But wire splits are defined as "n to 1" and "1 to n". This basically means, no matter how large the split is, it will add only 1 to the counter. The script in image B adds 10 scripts (9 script blocks + 1 wire split) to the counter. |
|
27 |  |
|
28 | ||
29 | The same applies in case of joining. The script in image C counts as 4, whereas the script in image D counts as 10. |
|
30 |  |
|
31 |  |
|
... | ... | \ No newline at end of file |