Difference between revisions of "ID"
From Roll20 Wiki
Andreas J. (Talk | contribs) m |
Andreas J. (Talk | contribs) m |
||
Line 2: | Line 2: | ||
==Macros== | ==Macros== | ||
− | * {{code|token_id}} - unique for each [[token]]. <code>@{selected|token_id}</code> | + | * '''{{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 [[Character]]. <code>@{selected|character_id}</code> (if [[Link Token|token linked to sheet]]) | + | * '''{{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]] | ||
Line 22: | Line 22: | ||
==API== | ==API== | ||
{{pro only|section}} | {{pro only|section}} | ||
− | * '''[[API:Objects#Player| | + | * '''[[API:Objects#Player|playerid]]''' - 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. |
Latest revision as of 13:31, 19 April 2022
Page Updated: 2022-04-19 |
This article is a stub. |
Disambiguation page for "ID" |
[edit] 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} }}
[edit] 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. |