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

[Script] SetAbility - Extra lines in created ability

Original thread Is there anyway this API can create an ability with extra lines? For example, how can it create an ability with the following: /w gm &{template:atk} {{desc=**===== PASSVIES =====** **Damage Resistances:** *@{npc_resistances}* **Damage Immunities:** *@{npc_immunities}* **Condition Immunities:** *@{npc_condition_immunities}* **Languages:** *@{npc_languages}* **Senses:** *@{npc_senses}*}} @{charname_output}
1615955111
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Which API is this? Set Ability is not in the One Click installer, so a link would be helpful.
<a href="https://app.roll20.net/forum/post/5362387/script-setability-a-hack-of-chatsetattr-to-set-abilities-via-chat-commands/?pageforid=5362387#post-5362387" rel="nofollow">https://app.roll20.net/forum/post/5362387/script-setability-a-hack-of-chatsetattr-to-set-abilities-via-chat-commands/?pageforid=5362387#post-5362387</a> I think you missed the link in the original posting. :) &nbsp; I don't believe that the SetAbility script has a replacement string for a carriage return. You might try using a /n or&nbsp;&amp;#13;, but I think they'd need to be hardcoded into the script.&nbsp;
keithcurtis said: Which API is this? Set Ability is not in the One Click installer, so a link would be helpful. I see how stealthy that link was originally.&nbsp; :-P Jarren K. said: <a href="https://app.roll20.net/forum/post/5362387/script-setability-a-hack-of-chatsetattr-to-set-abilities-via-chat-commands/?pageforid=5362387#post-5362387" rel="nofollow">https://app.roll20.net/forum/post/5362387/script-setability-a-hack-of-chatsetattr-to-set-abilities-via-chat-commands/?pageforid=5362387#post-5362387</a> I think you missed the link in the original posting. :) &nbsp; I don't believe that the SetAbility script has a replacement string for a carriage return. You might try using a /n or&nbsp;&amp;#13;, but I think they'd need to be hardcoded into the script.&nbsp; I tried your suggestions without the desired result. So I think you're right; it would have to be coded into the script itself. That being said...is there anyone with scripting writing abilities who would be able to modify this script to include that desired effect?