Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Macro for displaying core NPC stats

I am looking for a macro that shows the core stats of an NPC, so that I do not have to go back to the character sheet all the time during the game. On a video about how to create macros this kind of a macro was referred to, but the macro was not shown and I cannot find a posting, which contains the macro.
1493668750

Edited 1493669010
Matt
Plus
Just have a macro that says /w gm @{selected|AC} AC, @{Selected|Reflex} Reflex, etc etc. When you click on a token, then on the macro, you're good to go. You could also do /w gm @{target|AC} AC, @{target|Hit Points} HP, etc. Just call for the pure attributes in a bare-bones macro and label them, and they shall appear!
1493674604
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
WilliamG, what sheet are you using? Some of them have built in macros specifically for that sort of thing.
thanks
I am using the 5th Edition OGL Roll 20 sheet I have created a macro, which works, but I would like to ask for one piece of advice. /w GM &{template:default} {{name=Stats}} {{Name=@{selected|npc_name}}} {{Level=@{selected|level}}} {{AC=@{selected|AC}}} {{HP=@{selected|npc_hpbase}}} {{Speed=@{selected|npc_speed}}} {{STR=@{selected|strength}}} {{STR MOD=@{selected|npcd_str_mod}}} {{DEX=@{selected|dexterity}}} {{DEX MOD=@{selected|npcd_dex_mod}}} {{CON=@{selected|constitution}}} {{CON MOD=@{selected|npcd_con_mod}}} {{INT=@{selected|intelligence}}} {{INT MOD=@{selected|npcd_int_mod}}} {{WIS=@{selected|wisdom}}} {{WIS MOD=@{selected|npcd_wis_mod}}} {{CHA=@{selected|charisma}}} {{CHA MOD=@{selected|npcd_cha_mod}}} {{Immunity=@{selected|npc_immunities}}} {{Immunity Condition=@{selected|npc_condition_immunities}}} {{Senses=@{selected|npc_sensesbase}}} {{Type=@{selected|npc_type}}} {{Challenge=@{selected|npcd_challenge}}} {{XP=@{selected|npcd_xp}}} It looks like this: Stats Name Zombie Level 1 AC 8 HP 22 (3d8 + 9) Speed 20 ft. STR 13 STR MOD (+1) DEX 6 DEX MOD (-2) CON 16 CON MOD (+3) INT 3 INT MOD (-4) WIS 6 WIS MOD (-2) CHA 5 CHA MOD (-3) Immunity poison Immunity Condition poisoned Senses darkvision 60 ft. Type Medium undead, neutral evil Challenge 1/4 XP (50 XP) What I would like to do is to put the attribute and the modifier on the same line. For example, STR 13 (+1) instead of putting the values on two lines as it is currently. I have made various attempts, which have all failed. Does anyone have a suggestion about how to construct the syntax in order to accomplish my goal?
William G. said: What I would like to do is to put the attribute and the modifier on the same line. For example, STR 13 (+1) instead of putting the values on two lines as it is currently. I have made various attempts, which have all failed. Does anyone have a suggestion about how to construct the syntax in order to accomplish my goal? Honestly (and this is pretty unhelpful), I would just get rid of the roll template. It takes up a huge amount of room in the chat window (so there's no chance you'll ever see all the stats without scrolling a bunch), and limits you (as far as I know) to one value per column. I would make a macro like this /talktomyself Creature Stats for @{selected|npc_name}, Level @{selected|Level} @{selected|HP_base} HP. Speed @{selected|npc_speed}. AC: @{Selected|AC}. **Attributes:** STR @{selected|Str} (@{selected|npcd_str_mod}). Dex @{Selected|Dex} (@{selected|npcd_dex_mod}). Con @{Selected|Con} (@{selected|npcd_con_mod}). Int @{Selected|Int} (@{selected|npcd_int_mod}). Wis @{Selected|Wis} (@{selected|npcd_Wis_mod}). Cha @{Selected|Cha} (@{selected|npcd_cha_mod}). [Add in immunity and other stuff here] /talktomyself and so on. It will be less column-organized than a roll template, but will provide more compact info. Hope that's helpful.
Just put them together /w GM &{template:default} {{name=Stats}} {{Name=@{selected|npc_name}}} {{Level=@{selected|level}}} {{AC=@{selected|AC}}} {{HP=@{selected|npc_hpbase}}} {{Speed=@{selected|npc_speed}}} {{STR=@{selected|strength} (@{selected|npcd_str_mod}) }} {{DEX=@{selected|dexterity} (@{selected|npcd_dex_mod}) }} {{CON=@{selected|constitution} (@{selected|npcd_con_mod}) }}  {{INT=@{selected|intelligence} (@{selected|npcd_int_mod}) }} {{WIS=@{selected|wisdom} (@{selected|npcd_wis_mod}) }} {{CHA=@{selected|charisma} (@{selected|npcd_cha_mod}) }} {{Immunity=@{selected|npc_immunities}}} {{Immunity Condition=@{selected|npc_condition_immunities}}} {{Senses=@{selected|npc_sensesbase}}} {{Type=@{selected|npc_type}}} {{Challenge=@{selected|npcd_challenge}}} {{XP=@{selected|npcd_xp}}}
Thanks very much
1494302268
Justin H.
Marketplace Creator
If it's not too late and you want it tighter and to look more like 5e information try this out.  /w GM &{template:npcaction} {{rname=@{selected|npc_name}}} {{description=**AC** = @{selected|AC} **Type** = @{selected|npc_type} **Challenge** = @{selected|npcd_challenge} **XP** = @{selected|npcd_xp} **HP** = @{selected|npc_hpbase} **Speed** = @{selected|npc_speed} **STR** = @{selected|strength} @{selected|npcd_str_mod} **DEX** = @{selected|dexterity} @{selected|npcd_dex_mod} **CON** = @{selected|constitution}} @{selected|npcd_con_mod} **INT** = @{selected|intelligence} @{selected|npcd_int_mod} **WIS** = @{selected|wisdom} @{selected|npcd_wis_mod} **CHA** = @{selected|charisma} @{selected|npcd_cha_mod} **Immunity** = @{selected|npc_immunities}} **Immunity Condition** = @{selected|npc_condition_immunities}} **Senses** = @{selected|npc_sensesbase}}}
Nice!
1494333953
The Aaron
Pro
API Scripter
That looks pretty nice, Justin!  I did notice a small typo:
Thanks, much appreciated
1494466509
Justin H.
Marketplace Creator
Funny I was tinkering with a new macro today and noticed the typos myself. Yours probably would have tipped me off sooner but I lost the thread since I forgot to follow.
Maybe someone else will weigh in on this post. Unfortunately i do not know how to help you.
1494545997
Justin H.
Marketplace Creator
Hopefully. Do you think you'll find it useful?
1494602002
Justin H.
Marketplace Creator
I decided I wanted the HP to be a rolled stat for a bit of randomizasion, so I added a small bit of code to the **HP** line. /w GM &{template:npcaction} {{rname=Stats}} {{name=@{selected|npc_name}}} {{description=**AC** : @{selected|AC} @{selected|npcd_actype} **Type** = @{selected|npc_type} **Challenge** = @{selected|npcd_challenge} **XP** = @{selected|npcd_xp} **HP** = [[@{selected|npc_hpformula}]] | @{selected|npc_hpformula} **Speed** = @{selected|npc_speed} **STR** = @{selected|strength} @{selected|npcd_str_mod}  **DEX** = @{selected|dexterity} @{selected|npcd_dex_mod} **CON** = @{selected|constitution} @{selected|npcd_con_mod} **INT** = @{selected|intelligence} @{selected|npcd_int_mod} **WIS** = @{selected|wisdom} @{selected|npcd_wis_mod} **CHA** = @{selected|charisma} @{selected|npcd_cha_mod} **Immunity** = @{selected|npc_immunities} **Immunity Condition** = @{selected|npc_condition_immunities} **Senses** = @{selected|npc_sensesbase}}}
I do find it useful
I especially like that you demonstrated how to dynamically perform a die roll using **HP** = [[@{selected|npc_hpformula}]]. This is very useful.
1494819026

Edited 1494819571
Justin H.
Marketplace Creator
William G. said: I especially like that you demonstrated how to dynamically perform a die roll using **HP** = [[@{selected|npc_hpformula}]]. This is very useful. Glad you enjoy it. I moved the Saving throw macro question to its own post and Silvyre replied w/ a very nice option. <a href="https://app.roll20.net/forum/post/5035451/please-help-w-slash-macro-for-saving-throw-5e-style-moved" rel="nofollow">https://app.roll20.net/forum/post/5035451/please-help-w-slash-macro-for-saving-throw-5e-style-moved</a>