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

Dagger gives 1/2 damage as healing. How to get healing "damage" automatically

I am sure I just made my job so much harder as DM but I gave my player a Dagger of Life Tap which will give healing to player at rate of 1/2 damage roll. I am wondering if there is a way to create a macro to have that roll automatic instead of having to just state the Healing value.
1512142763
The Aaron
Pro
API Scripter
You'd need an API script for that.
1512142766

Edited 1512142785
The only way to reuse a dice roll is to utilize the API. Otherwise, I would simply use a query to get the damage dealt for the healing. [[floor(?{Damage Dealt|0}/2)]] healing
1512142915

Edited 1512142963
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Not without the API I'm afraid. Rolls can't be reused for other calculations. One (house rule) way to do it though would be to say it gives half the damage dice + half the modifiers back in health, so say it does 1d8 damage (I know not an actual dagger), then it would give 1d4 + relevant modifiers back. Then you could roll the healing separately. So much ninja ;)
That is what I figured. Just thought I would ask which is why I said "I am sure I just made my job so much harder as DM".
Mmmmmmmmm daggerssssssss
Theodore S. said: I am sure I just made my job so much harder as DM but I gave my player a Dagger of Life Tap which will give healing to player at rate of 1/2 damage roll. I am wondering if there is a way to create a macro to have that roll automatic instead of having to just state the Healing value. You have a pro account you can use API's and then do stuff like this. Needs power card and alterbar !power {{ --titlefontshadow|none --emote|** @{selected|token_name} Swings her Dagger. ** --tokenid|@{selected|token_id} --format|atwill --corners|10 --name|Dagger --leftsub|Melee Attack --rightsub|Dagger --Range| 5' --Target|@{target|token_name} --Attack|[[ [$Atk] ?{Advantage?| Normal, 1d20 + [[@{selected|dexterity_mod}]] [DEX] + [[@{selected|pb}]] [PROF]] | Advantage, 2d20KH1 + [[@{selected|dexterity_mod}]] [DEX] + [[@{selected|pb}]] [PROF]] | Disadvantage, 2d20KL1 + [[@{selected|dexterity_mod}]] [DEX] + [[@{selected|pb}]] [PROF]]} ]] vs **AC** [[@{target||npc_ac}]] --?? $Atk < @{target||npc_ac} ?? !Missed|**You missed!** --?? $Atk < @{target||npc_ac} ?? soundfx1|_play|SwordMiss --?? $Atk >= @{target||npc_ac} ?? soundfx1|_play|SwordHit --?? $Atk >= @{target||npc_ac} AND $Atk.base <> 20 ?? Hit:|[[ [$Dmg] 1d4 + [[@{selected|dexterity_mod}]] ]] piercing damage --?? $Atk >= @{target||npc_ac} AND $Atk.base <> 20 ?? alterbar1|_target|@{target||token_id} _bar|1 _amount|-[^Dmg] _show|all --?? $Atk.base == 20 ?? Critical Hit:|[[ [$CritDmg] 2d4+[[@{selected|dexterity_mod}]] ]] piercing damage --?? $Atk.base == 20 ?? alterbar2|_target|@{target||token_id} _bar|1 _amount|-[^CritDmg] _show|all --?? $Atk.base == 1 ?? !|**Fumble:** [[ [TXT] 1t[CFM] ]] --?? $Atk >= @{target||npc_ac} AND $Atk.base <> 20 ?? alterbar3|_target|@{selected|token_id} _bar|1 _amount| [^Dmg]/2 _show|all --?? $Atk == 20 ?? alterbar4|_target|@{selected|token_id} _bar|1 _amount| [^CritDmg]/2 _show|all }} Apply damage and healing automatically
Craven said: Theodore S. said: I am sure I just made my job so much harder as DM but I gave my player a Dagger of Life Tap which will give healing to player at rate of 1/2 damage roll. I am wondering if there is a way to create a macro to have that roll automatic instead of having to just state the Healing value. You have a pro account you can use API's and then do stuff like this. Needs power card and alterbar !power {{ --titlefontshadow|none --emote|** @{selected|token_name} Swings her Dagger. ** --tokenid|@{selected|token_id} --format|atwill --corners|10 --name|Dagger --leftsub|Melee Attack --rightsub|Dagger --Range| 5' --Target|@{target|token_name} --Attack|[[ [$Atk] ?{Advantage?| Normal, 1d20 + [[@{selected|dexterity_mod}]] [DEX] + [[@{selected|pb}]] [PROF]] | Advantage, 2d20KH1 + [[@{selected|dexterity_mod}]] [DEX] + [[@{selected|pb}]] [PROF]] | Disadvantage, 2d20KL1 + [[@{selected|dexterity_mod}]] [DEX] + [[@{selected|pb}]] [PROF]]} ]] vs **AC** [[@{target||npc_ac}]] --?? $Atk < @{target||npc_ac} ?? !Missed|**You missed!** --?? $Atk < @{target||npc_ac} ?? soundfx1|_play|SwordMiss --?? $Atk >= @{target||npc_ac} ?? soundfx1|_play|SwordHit --?? $Atk >= @{target||npc_ac} AND $Atk.base <> 20 ?? Hit:|[[ [$Dmg] 1d4 + [[@{selected|dexterity_mod}]] ]] piercing damage --?? $Atk >= @{target||npc_ac} AND $Atk.base <> 20 ?? alterbar1|_target|@{target||token_id} _bar|1 _amount|-[^Dmg] _show|all --?? $Atk.base == 20 ?? Critical Hit:|[[ [$CritDmg] 2d4+[[@{selected|dexterity_mod}]] ]] piercing damage --?? $Atk.base == 20 ?? alterbar2|_target|@{target||token_id} _bar|1 _amount|-[^CritDmg] _show|all --?? $Atk.base == 1 ?? !|**Fumble:** [[ [TXT] 1t[CFM] ]] --?? $Atk >= @{target||npc_ac} AND $Atk.base <> 20 ?? alterbar3|_target|@{selected|token_id} _bar|1 _amount| [^Dmg]/2 _show|all --?? $Atk == 20 ?? alterbar4|_target|@{selected|token_id} _bar|1 _amount| [^CritDmg]/2 _show|all }} Apply damage and healing automatically I went looking for the Alterbars Script and can't seem to find it. That seems to be the perfect answer to my problem but it seems Alterbars is an old script that is hard to find.
1512709136
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Here is the thread for Alterbars. Gist link is in the first post.
keithcurtis said: Here is the thread for Alterbars. Gist link is in the first post. Thanks keithcurtis. Installed the API. Used the Powercard and when I click on PC and run macro, selected NPC (have to click twice), then select Normal, Advantage, or Disadvantage, I get no output on the screen.
1512711616

Edited 1512711640
Theodore S. said: keithcurtis said: Here is the thread for Alterbars. Gist link is in the first post. Thanks keithcurtis. Installed the API. Used the Powercard and when I click on PC and run macro, selected NPC (have to click twice), then select Normal, Advantage, or Disadvantage, I get no output on the screen. If you're trying to use the macro Craven posted above, you'll need to first either create a Rollable Table named CFM, or remove "[[ [TXT] 1t[CFM] ]]" from the macro. Furthermore, you would also either need to add Jukebox songs named "SwordMiss" and "SwordHit", or remove the two --soundfx1 lines from the macro.
Just wondering whether or not this is the correct version of Power Cards. The Gist states version 3.0.5 but noticing the logic used in the Powercard Macro states version 3.2.1 <a href="https://app.roll20.net/forum/post/2001020/script-powercards-3-~-now-contains-logic/?pagenum=1" rel="nofollow">https://app.roll20.net/forum/post/2001020/script-powercards-3-~-now-contains-logic/?pagenum=1</a>
Silvyre said: Theodore S. said: keithcurtis said: Here is the thread for Alterbars. Gist link is in the first post. Thanks keithcurtis. Installed the API. Used the Powercard and when I click on PC and run macro, selected NPC (have to click twice), then select Normal, Advantage, or Disadvantage, I get no output on the screen. If you're trying to use the macro Craven posted above, you'll need to first either create a Rollable Table named CFM, or remove "[[ [TXT] 1t[CFM] ]]" from the macro. Furthermore, you would also either need to add Jukebox songs named "SwordMiss" and "SwordHit", or remove the two --soundfx1 lines from the macro. That worked on getting it to work... but now getting "(From ERROR): Not a valid target id."
1512715074

Edited 1512715110
Theodore S. said: now getting "(From ERROR): Not a valid target id." Try replacing --Target|@{target|token_name} with --Targeting|@{target||token_name}, or just remove that line altogether. (This is because --target is a reserved tag, and requires a token_id or character_id, not a token_name)
Silvyre said: Theodore S. said: now getting "(From ERROR): Not a valid target id." Try replacing --Target|@{target|token_name} with --Targeting|@{target||token_name}, or just remove that line altogether. (This is because --target is a reserved tag, and requires a token_id or character_id, not a token_name) Attempted and failed. BUT I believe the issue may be in the line: --?? $Atk &gt;= @{target||npc_ac} AND $Atk.base &lt;&gt; 20 ?? alterbar3|_target|@{selected|token_id} _bar|1 _amount| [^Dmg]/2 _show|all as the moment you have to select a target, you lose the "selected" status of any token.
I found the issue. It is that the token id has a hyphen in it. Is there a way to get that to NOT cause the error: (From ERROR): Not a valid target id. ?
Theodore S. said: I found the issue. It is that the token id has a hyphen in it. Is there a way to get that to NOT cause the error: (From ERROR): Not a valid target id. ? Unfortunately not; when that happens, the workaround is to create/drag out a new [copy of that] Token.