Tim G.
From Roll20 Wiki
Using Macros and “Selected icon” for Character Skills and
Abilities
Description:
All D&D 4 characters have the same list of skills. Instead of entering Abilites for each character for all skills, you can leverage shared macros. Players (including the DM) will need to click-select their character icon before using the shared macros.
This keeps the character sheet from being cluttered, and is less prone to error. My players don’t mind this, because they are used to selecting their tokens in order to get their token actions to appear.
(You will also need to make sure your character can an icon that Represents the character. To do this: Click the token. Click the wheel icon that appears, and select the character in the “Represents Character”drop-down menu. Save changes.)
Attributes:
Create the following attributes for each character (or better yet, one character sheet you later copy) and populate them with values.
Attributes for all characters
Level
Armor-Penalty
STR, CON, DEX, INT, WIS, CHA (These will have the actual ability score, not the modifier.)
Then, add attributes for all skills:
Athletics-trained
Athletics-misc
(Repeat for other skills)
Internal macros:
The following macros have no commands (e.g., /roll) so they don’t do anything interesting if called directly. They are meant to be called by other macros or abilities. To keep them from cluttering up auto-complete lists, you can begin them with an underscore.
Name: _Half_Level
Actions: floor( @{selected|Level} /2 )
Show as Token Action: Leave unchecked
Visible to Players: All Players
Ability Mod macros (Repeat for other abilities)
Name: _STR_MOD
Actions: floor((@{selected|STR}-10)/2)
Show as Token Action: Leave unchecked
Visible to Players: All Players
Skill macros:
Name: Athletics
Actions:
/em @{selected|token_name} does Athletics
/roll d20 + @{selected|Athletics-trained} +@{selected|Athletics-misc} + #_STR_MOD + #_Half_Level -@{selected|Armor-Penalty}
Shows as Token Action? : Your choice
Visible to Players: All Players
Ability Check Macros:
Name: STR_check
Actions: /roll #_STR_MOD + #_HALF_LEVEL
Shows as Token Action? : Your choice
Visible to Players: All Players
Name: Grab
Actions: /em @{selected|token_name} grabs somebody
- STR_check
vs REF
Shows as Token Action: Your choice
Visible to Players: All Players