addAllPCsToInitiative/ja: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Created page with "{{Languages|addAllPCsToInitiative}}{{Translation}} {{MacroFunction |name=addAllPCsToInitiative |trusted=true |description=<!--Adds all the PC tokens on the...")
 
No edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|name=addAllPCsToInitiative
|name=addAllPCsToInitiative
|trusted=true
|trusted=true
|description=<!--Adds all the [[Token:PC token|PC token]]s on the current [[Map:map|map]] to the [[Initiative:initiative panel|initiative panel]]. This function returns the number of [[Token:token|token]]s that were added to the [[Initiative:initiative panel|initiative panel]].
|description=<!--Adds all the [[Introduction_to_Tokens#Token_Type|PC 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:PC token|PCトークン]]を[[Initiative:Initiative panel|イニシアチブパネル]]に追加する。この関数は、[[Initiative:Initiative panel|イニシアチブパネル]]に追加された[[Token:token|トークン]]の数を返す。
現在の[[Introduction to Mapping|地図]]上の全ての[[Introduction_to_Tokens#Token_Type|PCトークン]]を[[MapTool User Interface#Initiative|イニシアチブパネル]]に追加する。この関数は、[[MapTool User Interface#Initiative|イニシアチブパネル]]に追加された[[Token:token|トークン]]の数を返す。


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


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


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


|also=
|also=

Latest revision as of 17:09, 20 April 2023

Languages:  English  • 日本語


addAllPCsToInitiative() Function

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

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

Usage

[h: noTokens = addAllPCsToInitiative()]
[r: addAllPCsToInitiative()] 体のPCをイニシアチブパネルに追加しました。


See Also

Languages:  English  • 日本語