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

Lay on hands Macro help

Hi all, im a macro newbie looking to make a macro to apply lay on hands to a target while reducing the attribute points in the character sheet.&nbsp; The current code im using based on the following archived post: <a href="https://app.roll20.net/forum/post/10928730/lay-on-hands-macro-that-decrements-my-available-points#newtopic" rel="nofollow">https://app.roll20.net/forum/post/10928730/lay-on-hands-macro-that-decrements-my-available-points#newtopic</a> !scriptcard {{ --#title|Lay on Hands --#sourceToken|@{selected|token_id} --#targetToken|@{target|Who is Healed|token_id} --#emoteText|*@{selected|token_name} uses Lay on Hands to heal @{target|Who is Healed|token_name}.* --=Available|@{selected|class_resource} --=MaxAttempted|?{Number_of_points_to_Heal} --=Attempted|[$MaxAttempted] {MAX:[$Available.Raw]} --=hpMissing|[*T:t-bar1_max] - [*T:t-bar1_value] --=Used|[$Attempted] {MAX:[$hpMissing.Raw]} --=Remaining|[$Available] - [$Used] --+Points available|[$Available] --+Healing Points Used|[$Used] ([$MaxAttempted.Raw] attempted) --+Healing Points Remaining|[$Remaining] --@modattr|_charid [*S:character_id] _class_resource|-[$Used] --@token-mod| _ids @{target|Who is Healed|token_id} _set bar1_value|+?{Number_of_points_to_Heal}! }} Using the 5e 2014 OGE character sheets with the appropriate macros installed as in the above link The macro seems to work correctly as an ability, however it does not apply the healing to the selected token. It does consume the attribute points in the paladin's character sheet. Looking for some help as to why the healing isnt applying to the target. Pls let me know if any more info is helpful.
1758563061

Edited 1758563081
Gauss
Forum Champion
Hi TT, Since this is an API question you might want to post in the Mods (API Scripts) forum . It might get more/better responses there. :)