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

Need Help with a token macro for perception

Hello All,        I have been using the token macros from the taking20 channel to make my monsters more manageable. I have run into an issue though where, my macro for perception will not include a monster's Skill Proficiency for perception with the macro. It will only determine the perception roll and passive perception based on the Wisdom score. Here is the macro I am using: /w gm &{template:default} {{name=Perception}} {{Passive Perception= @{selected|passive_wisdom}}} {{Perception= [[1d20+@{selected|perception_bonus}]] | [[1d20+@{selected|perception_bonus}]]}} How can I edit this macro so that it will include the proficiency in perception?
1608859525
Jordan C.
Pro
API Scripter
If it is for using monsters instead of players I believe this will accomplish what you are looking for: /w gm &{template:default} {{name=Perception}} {{Passive Perception= [[10+ @{selected|npc_perception}]]}} {{Perception= [[1d20+@{selected|npc_perception}]] | [[1d20+@{selected|npc_perception}]]}} I replaced the calls for 'passive_wisdom' or 'perception_bonus' and replaced them with 'npc_perception'.
1608874537
Oosh
Sheet Author
API Scripter
You can also do this kind of thing if you want a universal macro: [[1d20 + [[{0@{selected|perception_bonus}*abs(0@{selected|npc}-1),0@{selected|npc_perception}*0@{selected|npc}}k1]][Perception] ]] It looks nicer in the tooltip :)
Thank you both. Jordon C I went with your script suggestion and it worked great. I really appreciate your quick help it is awesome. 
1609355879
David M.
Pro
API Scripter
In case you are interested in a single macro to allow all skill and attribute checks for an npc with a drop-down query, you can put the following into a character ability and set as a token action: @{selected|wtype}&{template:npc} @{selected|npc_name_flag} @{selected|rtype}+?{Ability|Acrobatics,[[@{selected|npc_acrobatics}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_acrobatics}]]]]}} {{mod=[[[[@{selected|npc_acrobatics}]]]]}} {{rname=Acrobatics}} {{type=Skill}} |Animal Handling,[[@{selected|npc_animal_handling}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_animal_handling}]]]]}} {{mod=[[[[@{selected|npc_animal_handling}]]]]}} {{rname=Animal Handling}} {{type=Skill}} |Arcana,[[@{selected|npc_arcana}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_arcana}]]]]}} {{mod=[[[[@{selected|npc_arcana}]]]]}} {{rname=Arcana}} {{type=Skill}} |Athletics,[[@{selected|npc_athletics}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_athletics}]]]]}} {{mod=[[[[@{selected|npc_athletics}]]]]}} {{rname=Athletics}} {{type=Skill}} |Deception,[[@{selected|npc_deception}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_deception}]]]]}} {{mod=[[[[@{selected|npc_deception}]]]]}} {{rname=Deception}} {{type=Skill}} |History,[[@{selected|npc_history}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_history}]]]]}} {{mod=[[[[@{selected|npc_history}]]]]}} {{rname=History}} {{type=Skill}} |Insight,[[@{selected|npc_insight}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_insight}]]]]}} {{mod=[[[[@{selected|npc_insight}]]]]}} {{rname=Insight}} {{type=Skill}} |Intimidation,[[@{selected|npc_intimidation}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_intimidation}]]]]}} {{mod=[[[[@{selected|npc_intimidation}]]]]}} {{rname=Intimidation}} {{type=Skill}} |Investigation,[[@{selected|npc_investigation}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_investigation}]]]]}} {{mod=[[[[@{selected|npc_investigation}]]]]}} {{rname=Investigation}} {{type=Skill}} |Medicine,[[@{selected|npc_medicine}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_medicine}]]]]}} {{mod=[[[[@{selected|npc_medicine}]]]]}} {{rname=Medicine}} {{type=Skill}} |Nature,[[@{selected|npc_nature}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_nature}]]]]}} {{mod=[[[[@{selected|npc_nature}]]]]}} {{rname=Nature}} {{type=Skill}} |Perception,[[@{selected|npc_perception}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_perception}]]]]}} {{mod=[[[[@{selected|npc_perception}]]]]}} {{rname=Perception}} {{type=Skill}} |Performance,[[@{selected|npc_performance}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_performance}]]]]}} {{mod=[[[[@{selected|npc_performance}]]]]}} {{rname=Performance}} {{type=Skill}} |Persuasion,[[@{selected|npc_persuasion}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_persuasion}]]]]}} {{mod=[[[[@{selected|npc_persuasion}]]]]}} {{rname=Persuasion}} {{type=Skill}} |Religion,[[@{selected|npc_religion}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_religion}]]]]}} {{mod=[[[[@{selected|npc_religion}]]]]}} {{rname=Religion}} {{type=Skill}} |Sleight of Hand,[[@{selected|npc_sleight_of_hand}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_sleight_of_hand}]]]]}} {{mod=[[[[@{selected|npc_sleight_of_hand}]]]]}} {{rname=Sleight of Hand}} {{type=Skill}} |Stealth,[[@{selected|npc_stealth}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_stealth}]]]]}} {{mod=[[[[@{selected|npc_stealth}]]]]}} {{rname=Stealth}} {{type=Skill}} |Survival,[[@{selected|npc_survival}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_survival}]]]]}} {{mod=[[[[@{selected|npc_survival}]]]]}} {{rname=Survival}} {{type=Skill}} |Strength,[[@{selected|strength_mod}]][STR]]]}} {{rname=Strength}} {{mod=[[[[@{selected|strength_mod}]][STR]]]}} {{r1=[[@{selected|d20}+[[@{selected|strength_mod}]][STR]]]}} {{type=Ability}} |Dexterity,[[@{selected|dexterity_mod}]][DEX]]]}} {{rname=Dexterity}} {{mod=[[[[@{selected|dexterity_mod}]][DEX]]]}} {{r1=[[@{selected|d20}+[[@{selected|dexterity_mod}]][DEX]]]}} {{type=Ability}} |Constitution,[[@{selected|constitution_mod}]][CON]]]}} {{rname=Constitution}} {{mod=[[[[@{selected|constitution_mod}]][CON]]]}} {{r1=[[@{selected|d20}+[[@{selected|constitution_mod}]][CON]]]}} {{type=Ability}} |Intelligence,[[@{selected|intelligence_mod}]][INT]]]}} {{rname=Intelligence}} {{mod=[[[[@{selected|intelligence_mod}]][INT]]]}} {{r1=[[@{selected|d20}+[[@{selected|intelligence_mod}]][INT]]]}} {{type=Ability}} |Wisdom,[[@{selected|wisdom_mod}]][WIS]]]}} {{rname=Wisdom}} {{mod=[[[[@{selected|wisdom_mod}]][WIS]]]}} {{r1=[[@{selected|d20}+[[@{selected|wisdom_mod}]][WIS]]]}} {{type=Ability}} |Charisma,[[@{selected|charisma_mod}]][CHA]]]}} {{rname=Charisma}} {{mod=[[[[@{selected|charisma_mod}]][CHA]]]}} {{r1=[[@{selected|d20}+[[@{selected|charisma_mod}]][CHA]]]}} {{type=Ability}}} You could also put into a collections macro, but you should never re-open it as collection macros eat all the html replacements when opened. Credit: I stole this from either Oosh or KeithCurtis a while ago.