Difference between revisions of "ID"
From Roll20 Wiki
Andreas J. (Talk | contribs) (Created page with "{{revdate}}{{stub}}{{dmbox}} ==Macros== * {{code|token_id}} - unique for each token. {{code|@{selected|token_id} }} ** If you copy& paste a token, the duplicate has a new...") |
Andreas J. (Talk | contribs) m |
||
Line 2: | Line 2: | ||
==Macros== | ==Macros== | ||
− | * {{code|token_id}} - unique for each [[token]]. | + | * {{code|token_id}} - unique for each [[token]]. <code>@{selected|token_id}</code> |
** If you copy& paste a token, the duplicate has a new ID | ** If you copy& paste a token, the duplicate has a new ID | ||
** When you drag the [[Character#Default_Token|default token]] from your [[Character]] to the map, each of them will get a unique id | ** When you drag the [[Character#Default_Token|default token]] from your [[Character]] to the map, each of them will get a unique id | ||
− | * {{code|character_id}} - unique for each [[ | + | * {{code|character_id}} - unique for each [[Character]]. <code>@{selected|character_id}</code> (if [[Link Token|token linked to sheet]]) |
** [[RowID]] - unique ID for a specific row in a [[Repeating Section]] | ** [[RowID]] - unique ID for a specific row in a [[Repeating Section]] | ||
** [[RowIndex]] | ** [[RowIndex]] | ||
− | ** [[ | + | ** [[Pseudo-Attributes]] |
'''Character & Token ID Lookup Macro''' by [[Andreas J.]] | '''Character & Token ID Lookup Macro''' by [[Andreas J.]] | ||
+ | |||
+ | ::If token isn't [[Link Token|linked to a character]], it will give error on char id & name. | ||
+ | |||
+ | Char & Token: | ||
<pre>&{template:default} {{name=**Character & Token ID**}} {{**Character Name**=@{selected|character_name} }} {{**Character ID**= @{selected|character_id} }} {{**Token Name**=@{selected|token_name} }} {{**Token ID**= @{selected|token_id} }}</pre> | <pre>&{template:default} {{name=**Character & Token ID**}} {{**Character Name**=@{selected|character_name} }} {{**Character ID**= @{selected|character_id} }} {{**Token Name**=@{selected|token_name} }} {{**Token ID**= @{selected|token_id} }}</pre> | ||
+ | |||
+ | Token Only: | ||
+ | <pre>&{template:default} {{name=**Token ID**}} {{**Token Name**=@{selected|token_name} }} {{**Token ID**= @{selected|token_id} }}</pre> | ||
+ | |||
==API== | ==API== | ||
{{pro only|section}} | {{pro only|section}} | ||
− | * '''[[API:Objects#Player|player id]]''' - global id for | + | * '''[[API:Objects#Player|player id]]''' - unique, global id for each player in a game, but is different in each campaign. |
* '''[[roll20id]]''' - unique id for each account, never changes. | * '''[[roll20id]]''' - unique id for each account, never changes. |
Revision as of 13:23, 19 April 2022
Page Updated: 2022-04-19 |
This article is a stub. |
Disambiguation page for "ID" |
Macros
-
token_id
- unique for each token.@{selected|token_id}
- If you copy& paste a token, the duplicate has a new ID
- When you drag the default token from your Character to the map, each of them will get a unique id
-
character_id
- unique for each Character.@{selected|character_id}
(if token linked to sheet)- RowID - unique ID for a specific row in a Repeating Section
- RowIndex
- Pseudo-Attributes
Character & Token ID Lookup Macro by Andreas J.
- If token isn't linked to a character, it will give error on char id & name.
Char & Token:
&{template:default} {{name=**Character & Token ID**}} {{**Character Name**=@{selected|character_name} }} {{**Character ID**= @{selected|character_id} }} {{**Token Name**=@{selected|token_name} }} {{**Token ID**= @{selected|token_id} }}
Token Only:
&{template:default} {{name=**Token ID**}} {{**Token Name**=@{selected|token_name} }} {{**Token ID**= @{selected|token_id} }}
API
This section is about a Roll20 feature exclusive to Pro-subscribers (and often to players in a Game created by a Pro-subscriber). If you'd like to use this feature, consider upgrading your account. |