Besiege

Besiege

Not enough ratings
Calculation Core 計算核心
   
Award
Favorite
Favorited
Unfavorite
Types: Levels
File Size
Posted
Updated
908.815 KB
17 Jul, 2021 @ 6:45am
20 Sep, 2021 @ 11:50am
11 Change Notes ( view )

Subscribe to download
Calculation Core 計算核心

In 2 collections by Nice Name
Nice Name Science
116 items
Logic Systems
12 items
Description
Using only one block to run, Calculation Core is a level logic system that allows you to calculate variables in addition, subtraction, multiplication, and division easily, instantaneously, and without any lag.
計算核心是一個能讓使用者輕鬆操作、不會當機且能瞬間完成計算的變數運算工具,且只需一個方塊就能運作。

*****DO NOT OPEN THE LOGIC PAGE OF THE CUBE IT WILL DESTROY YOUR GAME*****
*****不 要 打 開 方 塊 的 邏 輯 頁 面 它 會 炸 了 你 的 遊 戲*****

Logic overview is not 100% up to date and is subject to practicality.
邏輯總覽非最新版本,所有邏輯皆以實品為主。

Input Usage 操作方式
Calculation Core is a complex logic system that requires just a bit of learning on inputs.
因為計算核心是一個有點複雜的系統,因此要操作它必須先了解一些操作方式。

Here's a list of all available input commands:
以下是指令列:
Starter
句首
.Variable " +- =1 ", Calculation Core
.Variable " * =1 ", Calculation Core
.Variable " / =1 ", Calculation Core
Sub Starter
次句首
.Variable " = =1 ", Calculation Core
.Variable " keep =1~3 ", Calculation Core
First Variable Input
輸入一
.Variable " i = -16383~16383 ", Calculation Core
.Variable " return = 1~3 ", Calculation Core
Second Variable Input
輸入二
.Variable " i = -16383~16383 ", Calculation Core
.Variable " return = 1~3 ", Calculation Core
All variable events must be selected to the calculation core.
所有變數事件都應選取到「乘法核心」。

The "Starter"s must be placed in the front as the start of a calculation, and so are the rest orders.
「句首」必須被置於每次計算的開頭,其餘的也必須被排列至相應序位。

  • Starter 句首
    To add or subtract 2 variables:
    若要相加減兩變數:
    Variable " +- =1 ", Calculation Core

    To multiply 2 variables:
    若要相乘兩變數:
    Variable " * =1 ", Calculation Core

    To divide with 2 variables:
    若要相除兩變數:
    Variable " / =1 ", Calculation Core

    The variables above will decide the following calculation's type, addition, subtraction, multiplication ,or division.
    以上變數會決定接下來的變數該以加法、減法、乘法或除法來計算。
  • Sub Starter 次句首
    To output the answer of a calculation:
    若要輸出計算結果:
    Variable " = =1 ", Calculation Core
    Yes the VarName is " = ".
    沒錯是變數名就是「=」。

    To keep the answer of a calculation:
    若要紀錄計算結果:
    Variable " keep =1 ", Calculation Core
    Variable " keep =2 ", Calculation Core
    Variable " keep =3 ", Calculation Core
    There are only 3 available "keeps" for answers.
    共有三個「keep」能用來記錄計算結果。

    Once the " = " variable is inputted, the answer of a calculation will be outputted as "o" in "Global Variable".
    在變數「=」被輸入後,該次計算結果會被以全域變數「o」的形式輸出。

    Once the "keep" variable is inputted, the answer of a calculation will be kept as a global variable, and can be returned via the "return" function. The kept variables can only be returned once.
    在變數「keep」被輸入後,該次計算結果會被以全域變數的形式記錄下來,並能被以「return (取回)」功能取回。被儲存的變數僅能被取回一次。

    The order of the two sub starter logic can be swapped.
    兩變數的順序可以被互換。
  • First Input and Second Input 輸入一與輸入二
    To input the calculation value:
    若要以變數輸入計算值:
    Variable " i = -16383~16383 ", Calculation Core
    The range of the variables are -16383~16383, but "0" is unavailable.
    除了「0」無法使用以外,輸入的範圍落在 -16383~16383內。

    To return the kept variable:
    若要取回變數:
    Variable " return = 1 ", Calculation Core
    Variable " return = 2 ", Calculation Core
    Variable " return = 3 ", Calculation Core
    "return =1" will return the variable previously stored by "keep =1", and so are "return =2" and "return =3".
    「return =1」會給系統輸入之前被「keep =1」儲存的變數,同理於「return =2」和「return =3」。

    The order of the two inputs can be swapped.
    兩變數的順序可以被互換。

Once the last 2 input variables are made, the calculation will automatically start.
當最後兩變數一被輸入完畢,計算就會直接開始。

The default output variable name is:
預設的計算結果輸出變數為:
Variable "o =(Answer 答案)"

If using division, the default Remainder output is:
若是使用除法,預設的餘數輸出變數為:
Variable "remainder =(remainder 餘數)"

(Remainder is a bit bugged, I'll fix it soon.)
(餘數有點問題,我會盡快修好它。)

Example 範例
(1000 + 2000) / 30 can be calculated by:
(1000 + 2000) / 30 能被以下列式子表示:
Variable "+- =1"
Variable "keep =1"
Variable "i =1000"
Variable "i =2000"
Variable "/ =1"
Variable "= =1"
Variable "return =1"
Variable "i =30"
(All variable events must be selected to the calculation core, events above are just simplified.)
(所有變數事件都應選取到「乘法核心」,上列事件只是簡化了。)

The output of above is "o =100"
輸出為「o =100」。

The first 4 logic gave "3000" to "keep =1", so on the next 4 lines the "return =1" brought this "3000" to the calculation and was divided by "30". Thus the answer is "100", outputted by "= =1" as "o =100".
前四行把計算結果「3000」給了「keep =1」,所以在後四行中「return =1」把這「3000」帶到了計算當中並被除以了「30」。因此計算結果為「100」,由「= =1」輸出成「o =100」。

210719 UPDATE 更新
Fixed the missing of "Reset" function, now Calculation Core will be automatically reset after calculations.
修正了「重置」功能,現在計算核心會在計算後自動重置。

210720 UPDATE 更新
Updated the system, now the system can run "keep" and "return".
更新了系統,現在能執行「keep (紀錄)」和「return (取回)」功能了。

210804 UPDATE 更新
Updated the logic overview.
更新了邏輯總覽圖。
2 Comments
Nice Name  [author] 20 Oct, 2021 @ 3:54am 
謝謝
RISING FRAG 17 Oct, 2021 @ 12:58am 
很棒的制作!