Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "Useful Macros"

From Roll20 Wiki

Jump to: navigation, search
(Useful Macros for GMs)
(Useful Macros for GMs)
Line 47: Line 47:
 
For Player Use:<br />
 
For Player Use:<br />
 
To use, have an Attribute in Journal Entry linked to that token called 'initiative', which represents that characters total initiative modifier. Select token, hit the button "Initiative". Token will automatically be added to turn order.
 
To use, have an Attribute in Journal Entry linked to that token called 'initiative', which represents that characters total initiative modifier. Select token, hit the button "Initiative". Token will automatically be added to turn order.
 +
 +
 +
  
 
Improved Version: This does the same thing, but then adds the initiative bonus as a decimal after the initial roll (in cases of a tie, the higher initiative bonus is sorted to go first.)
 
Improved Version: This does the same thing, but then adds the initiative bonus as a decimal after the initial roll (in cases of a tie, the higher initiative bonus is sorted to go first.)
  
 
Initiative: '''[[1d20+@{Initiative}+(@{initiative}/10)&{tracker} ]]'''
 
Initiative: '''[[1d20+@{Initiative}+(@{initiative}/10)&{tracker} ]]'''
 +
 +
 +
  
 
-by Phnord Prephect--[[User:186177|186177]] ([[User talk:186177|talk]]) 19:15, 18 December 2013 (EST)
 
-by Phnord Prephect--[[User:186177|186177]] ([[User talk:186177|talk]]) 19:15, 18 December 2013 (EST)

Revision as of 19:51, 7 March 2014

Contents

Useful Macros for Players

Work in progress (use for general systems only, if system specific add to that page!)

D20 Based Systems

Generic Roller:

"20": /me rolls a [[1d20+?{modifier|0}]] for ?{reason|no reason}.

When clicked, this macro will prompt the user to enter a number, which represents the skill modifier to be added to a d20 roll.
Then it will ask the user to explain why this die was rolled.

For example, if the player is making a SWIM check with a swimming skill of 4, they'd type 4, enter, swimming, enter.
The results will look something like:

Phnord rolls a 17 for swimming!

If the user enters nothing for both prompts, the results will look something like:

Phnord rolls a 13 for no reason!

-Phnord Prephect--Phnord P. (talk) 21:01, 18 December 2013 (EST)

Useful Macros for GMs

Work in progress (use for general systems only, if system specific add to that page!)

Initiative roller for d20 systems:

For GM-Controlled Tokens:
"GM INIT": /emas @{selected|token_name} rolls a [[1d20+?{modifier|0}&{tracker}]] for initiative!

Make sure to select "Token Action" before saving!

For GM use only; see below for players.
To use, select the token. Hit the button (GM INIT). When prompted, enter the total initiative modifier for the token. Token will automatically be added to turn order.


For Player-Controlled Tokens:
"Initiative": @{selected|token_name} rolls a [[1d20+@{selected|initiative}&{tracker}]] for initiative!

Make sure to select "Token Action" before saving!
Make sure to select "Visible to Players: All Players" before saving!

For Player Use:
To use, have an Attribute in Journal Entry linked to that token called 'initiative', which represents that characters total initiative modifier. Select token, hit the button "Initiative". Token will automatically be added to turn order.



Improved Version: This does the same thing, but then adds the initiative bonus as a decimal after the initial roll (in cases of a tie, the higher initiative bonus is sorted to go first.)

Initiative: [[1d20+@{Initiative}+(@{initiative}/10)&{tracker} ]]



-by Phnord Prephect--Phnord P. (talk) 19:15, 18 December 2013 (EST)

Shadowrun v4/v5 (D6 based)


Generic roll that asks player / gm how many dice to throw to determine hits:

/r ?{Modifier|0}d6>5

Add as a macro and enable "in bar" so that the shortcut shows up below the player profiles.

--Moritz J. (talk) 06:27, 7 February 2014 (EST)

Other Macro Related Information

Work in progress (use for general systems only, if system specific add to that page!)

Custom Power Cards


Custom Power Cards are not macros, they are an API script for apply html and css to output of a macro in the chat pane.

Sample of a standard macro and its output.

  • Standard macro that will including an emote, plus my attack and damage rolls it would look like this:
Macro Name:
dagger
Macro Body:
/me rams his dagger home
/roll 1d20+10 vs AC
/roll 1d4+9 Damage
  • The output would look like:
AttackMacro.JPG

Sample of a standard macro action with Custom Power Cards.

  • With Custom Power Cards the macro would be constructed as an API command using Custom Power Cards markup tags:
Macro Name:
dagger

Macro Body:
!power --emote|@{selected|token_name} rams his dagger home --name|Short Sword --leftsub|Melee --rightsub|Main Hand --attack|1d20+10 --defense|AC --damage|1d4+9 --dmgtype|piercing
  • The output would look like:

AttackMacroPowerCard.jpeg

For more information see: Custom Power Cards

-Stephen S.--Stephen S. (talk) 03:57, 2 March 2014 (EST)