Calc measure 計算メジャー

Measure=Calc calculates mathematical formulas.Measure=Calc 数式を計算します。

Optionsオプション

General measure options一般的な測定オプション
All general measure options are valid.一般的な測定オプションはすべて有効です。
Formula Default: 0Formula デフォルト: 0
Formula to calculate. The syntax can be found on the Formulas page. The calc measure utilizes addition syntax as described below.計算式 構文はFormulasページにあります。計算手段は、以下に説明するように追加構文を利用する。
UpdateRandom Default: 0UpdateRandom デフォルト: 0
If set to 1, the random constant is regenerated on each update cycle.に設定した1場合、ランダム定数は各更新サイクルで再生成されます。
UniqueRandom Default: 0UniqueRandom デフォルト: 0
If set to 1, any measure using the random constant and UpdateRandom will not repeat until all values between and including LowBound and HighBound have been used.

Any dynamic change to LowBound or HighBound will reset the unique tracking of values.

Note: UniqueRandom will only function if the difference between LowBound and HighBound is at most a 16bit unsigned integer, or 65535.に設定した場合1ランダム定数とUpdateRandomを使用する測定は、LowBoundHighBoundの間の値を含むすべての値が使用されるまで繰り返されません。LowBoundまたはHighBound

への動的な変更は、値の固有の追跡をリセットします。注意: UniqueRandomは違い場合にのみ機能しますとは、ほとんどの16ビット符号なし整数、または65535です。

LowBoundHighBound
LowBound Default: 0.0LowBound デフォルト: 0.0
Lower bound of the random constant.ランダム定数の下限
HighBound Default: 100.0HighBound デフォルト: 100.0
Upper bound of the random constant.

Note: The maximum value of HighBound is a 32bit signed integer, or 2147483647.ランダム定数の上限

注:の最大値HighBoundは32ビットの符号付き整数、つまり2147483647です。

Additional Formula Syntax追加の数式の構文

Functions関数

Note: These functions are only available in the context the Formula option of a Calc measure, and not in other (formulas) in other measure or meter types.注:これらの関数はFormula、Calcメジャーのオプションというコンテキストでのみ使用できます。他のメジャーまたはメータータイプの他の(数式)では使用できません。

  • Random: A random number. The number will be between and include the values set in LowBound and HighBound.Random:乱数 数値はLowBoundHighBoundに設定された値の間になります。
  • Counter: The number of update cycles from the time the skin is loaded. This number only resets when the skin is unloaded and then loaded again - not when the skin is refreshed.Counter:スキンがロードされてからの更新サイクル数。この数値は、スキンがアンロードされてから再度ロードされたときにのみリセットされます。スキンが更新されたときにはリセットされません。

Other Basesその他の拠点

The Calc measure allows numbers to be represented numbering systems other than decimal. To use another base, prefix the number with a zero then the letter representing the system you wish to use. The following are accepted prefixes, which are case (lower) sensitive:Calcメジャーでは、数値を10進数以外の番号付けシステムで表すことができます。別の基数を使用するには、番号の前にゼロを付けてから、使いたいシステムを表す文字を付けます。以下は、受け入れられるプレフィックスで、大文字と小文字が区別されます(小文字)。

  • 0b - Binary number (base 2) (ex: 0b110110 - returns 54 in decimal)0b - 2進数(2進数)(例:0b110110 - 54を10進数で返します)
  • 0o - Octal number (base 8) (ex: 0o123 - returns 83 in decimal)0o - 8進数(基数8)(例:0o123 - 83を10進数で返します)
  • 0x - Hexadecimal number (base 16) (ex: 0xF1 - returns 241 in decimal)0x - 16進数(基数16)(例:0xF1 - 241を10進数で返します)

Measure Values測定値

The use of measure values in the Formula option of a Calc measure does not require the use of Dynamic Variables. Simply omit the [] and the number value of the measure will be retrieved. If the measure does not have a number value, 0 will be used. Section Variables, Variables and Built-in Variables follow the normal rules. For more information see the Dynamic Cheat Sheet.Calcメジャーの[式]オプションでメジャー値を使用する場合、動的変数を使用する必要はありません。単に[]を省略すると、小節の数値が取得されます。数値データに数値がない場合は、0が使用されます。セクション変数、変数、組み込み変数は通常の規則に従います。詳細については、動的なチートシートを参照してください。

[MeasureOne]
Measure=Calc
Formula=5

[MeasureTwo]
Measure=Calc
Formula=MeasureOne < 6 ? 0 : 10

関連記事

スポンサーリンク

ImageMagick更新で『PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/imagick.so'』エラーが出る場合

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る