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

PF1e Detect Undead/Good spell determining Strength

1692331723

Edited 1692331742
Hello!&nbsp; I'm trying to craft a spell to determine a target's strength per the detect undead rules ( <a href="https://aonprd.com/SpellDisplay.aspx?ItemName=Detect%20Undead" rel="nofollow">https://aonprd.com/SpellDisplay.aspx?ItemName=Detect%20Undead</a> ).&nbsp; Based upon a target's HD, a different aura will result.&nbsp; I've created a spell for detect undead.&nbsp; One links to the spell itself (to keep the chatbar small) and a button to call an macro.&nbsp; That outputs the result in chat as a '2' right now because the target has '2' class levels.&nbsp;&nbsp; What I'm looking for help with for the next step is how do I take that '2' and convert it to 'Moderate' for the detect undead spell's result?&nbsp; Or initiate a similar query if I need to reference a different variable for NPCs? Thank you in advance for your help! --==-- Spell --==-- &nbsp;[Check Aura Strength](~Aurelia Lightbringer|test) [Full Spell]( <a href="https://aonprd.com/SpellDisplay.aspx?ItemName=Detect%20Undead" rel="nofollow">https://aonprd.com/SpellDisplay.aspx?ItemName=Detect%20Undead</a> ) --==-- End of Spell --==-- --==-- Macro --==-- @{target|class-0-level} --==-- End of Macro --==--
1692363754
GiGs
Pro
Sheet Author
API Scripter
Sudain said: What I'm looking for help with for the next step is how do I take that '2' and convert it to 'Moderate' for the detect undead spell's result?&nbsp; Or initiate a similar query if I need to reference a different variable for NPCs? You can't do that without a custom API script (which requires an actice pro subscription by the game's GM). There might be a way to do it with Rollable Tables, but you'd need 1 table for every possible level result, each with a single item (the text Moderate, or whatever), and then construct th table name from your analysis. I seem to rememeber there being a problem with constructing table names though.