addAllToInitiative/ja: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Text replacement - "source>" to "syntaxhighlight>")
No edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
|name=addAllToInitiative
|name=addAllToInitiative
|trusted=true
|trusted=true
|description=<!--Adds all of the [[Token:token|token]]s on the current [[Map:map|map]] to the [[MapTool User Interface#Initiative|initiative panel]]. This function returns the number of [[Token:token|token]]s that were added to the [[MapTool User Interface#Initiative|initiative panel]].
|description=<!--Adds all of the [[Token:token|token]]s on the current [[Introduction to Mapping|map]] to the [[MapTool User Interface#Initiative|initiative panel]]. This function returns the number of [[Token:token|token]]s that were added to the [[MapTool User Interface#Initiative|initiative panel]].


This function will not assign any initiative value to the [[Token:token|token]]s, you can use the [[setInitiative | {{code|setInitiative()}}]] function to set the initiative value of tokens. -->
This function will not assign any initiative value to the [[Token:token|token]]s, you can use the [[setInitiative | {{code|setInitiative()}}]] function to set the initiative value of tokens. -->
現在の[[Map:map|地図]]上の全ての[[Token:token|トークン]]を[[MapTool User Interface#Initiative|イニシアチブパネル]]に追加する。この関数は、[[MapTool User Interface#Initiative|イニシアチブパネル]]に追加された[[Token:token|トークン]]の数を返す。
現在の[[Introduction to Mapping|地図]]上の全ての[[Token:token|トークン]]を[[MapTool User Interface#Initiative|イニシアチブパネル]]に追加する。この関数は、[[MapTool User Interface#Initiative|イニシアチブパネル]]に追加された[[Token:token|トークン]]の数を返す。


この関数は[[Token:token|トークン]]にイニシアチブ値を割り当てない。トークンのイニシアチブ値を設定するには[[setInitiative | {{code|setInitiative()}}]]関数を使用する。
この関数は[[Token:token|トークン]]にイニシアチブ値を割り当てない。トークンのイニシアチブ値を設定するには[[setInitiative | {{code|setInitiative()}}]]関数を使用する。
Line 12: Line 12:


|usage=
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
[h: noTokens = addAllToInitiative()]
[h: noTokens = addAllToInitiative()]
</syntaxhighlight>
</syntaxhighlight>


<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
[r: addAllPCsToInitiative()] 個のトークンをイニシアチブパネルに追加しました。
[r: addAllPCsToInitiative()] 個のトークンをイニシアチブパネルに追加しました。
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 17:09, 20 April 2023

Languages:  English  • 日本語


addAllToInitiative() Function

 Note: This function can only be used in a Trusted Macro

現在の地図上の全てのトークンイニシアチブパネルに追加する。この関数は、イニシアチブパネルに追加されたトークンの数を返す。 この関数はトークンにイニシアチブ値を割り当てない。トークンのイニシアチブ値を設定するには setInitiative()関数を使用する。

Usage

[h: noTokens = addAllToInitiative()]
[r: addAllPCsToInitiative()] 個のトークンをイニシアチブパネルに追加しました。


See Also

Languages:  English  • 日本語