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

[5E OGL] NPC Skill Check Macro

1479585480

Edited 1479598463
Right now I have this universal macro for NPC skill checks: /w gm @{selected|wtype}&{template:npc} {{name=@{selected|npc_name}}} {{rname=Acrobatics}} {{mod=@{selected|npc_acrobatics}}} {{r1=[[1d20+@{selected|npc_acrobatics}]]}} @{selected|rtype}+@{selected|npc_acrobatics}]]}} But it does not take in consideration Ability modifiers (DEX in this example). So, please, tell me how it should look to add or remove ability mods from result? EDIT:Figured out myself. /w gm @{selected|wtype}&{template:npc} {{name=@{selected|npc_name}}} {{rname=Investigation}} {{mod=@{selected|intelligence_mod}+@{selected|npc_investigation}}} {{r1=[[1d20+@{selected|intelligence_mod}+@{selected|npc_investigation}]]}} @{selected|rtype}+@{selected|intelligence_mod}+@{selected|npc_investigation}]]}} As it turns out, order of Ability Mod and Skill check is important. If you put skillcheck first, npc with 0 skill in said check will always roll 0 independent of d20 or ability mod. EDIT2: Now I have different problem - if i nest this macro in another macro it stops whispering and spills in the chat! How do i prevent it? /w gm &{template:npcaction} {{name=}} {{rname=NPC Skill Check}} {{description=Select your skill check: [Acrobatics](!#NPC_Acrobatics) [Animal Handl.](!#NPC_AnimalHandling) [Arcana](!#NPC_Arcana) [Athletics](!#NPC_Athletics) [Deception](!#NPC_Deception) [History](!#NPC_History) [Insight](!#NPC_Insight) [Intimidation](!#NPC_Intimidation) [Investigation](!#NPC_Investigation) [Medicine](!#NPC_Medicine) [Nature](!#NPC_Nature) [Perception](!#NPC_Perception) [Performance](!#NPC_Performance) [Persuasion](!#NPC_Persuasion) [Religion](!#NPC_Religion) [Sleight Of Hand](!#NPC_SleightOfHand) [Stealth](!#NPC_Stealth) [Survival](!#NPC_Survival)}}
Curio said: Now I have different problem - if i nest this macro in another macro it stops whispering and spills in the chat! How do i prevent it? Try this out: /w gm &{template:npcaction} {{name=}} {{rname=NPC Skill Check}} {{description=Select your skill check: [Acrobatics](!
#NPC_Acrobatics) [Animal Handl.](!
#NPC_AnimalHandling) [Arcana](!
#NPC_Arcana) [Athletics](!
#NPC_Athletics) [Deception](!
#NPC_Deception) [History](!
#NPC_History) [Insight](!
#NPC_Insight) [Intimidation](!
#NPC_Intimidation) [Investigation](!
#NPC_Investigation) [Medicine](!
#NPC_Medicine) [Nature](!
#NPC_Nature) [Perception](!
#NPC_Perception) [Performance](!
#NPC_Performance) [Persuasion](!
#NPC_Persuasion) [Religion](!
#NPC_Religion) [Sleight Of Hand](!
#NPC_SleightOfHand) [Stealth](!
#NPC_Stealth) [Survival](!
#NPC_Survival) }}