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 .
×
🍵 What is a cleric’s favorite hot drink? Divini-tea. 🍵
Create a free account

Alterbar dont work with powercard

HI!! I come to you because I can't find the answer to my problem on the forum. I think I have a compatibility problem between alterbar and powercard. I explain INFO: charactersheet: pathfinder 2e official API official: simplesound RollAM Ammo libInline powercards SmartAoE API other: tokenmod healthcolor alterbar -&gt; from : <a href="https://gist.github.com/shdwjk/36025e18d770862abaa4" rel="nofollow">https://gist.github.com/shdwjk/36025e18d770862abaa4</a> i would like deal X damage for test:&nbsp; __________________________________________________________________________ !power {{ --alterbar1|_target|@{target||token_id} _bar|1 _amount|@{selected|token_id} 1 +?{Add to Bar|0} _show|GM }} querry value &amp; token but -&gt; (From ERROR): C. That is not a valid bar. __________________________________________________________________________ !power {{ --api_alterbar _alter @{target|token_id} 1 +?{Add to Bar|0} }} querry value &amp; token but powercard said on squarre -&gt; api_alterbar _alter -NbF_2WV0PU729jK87ua 1 +5 __________________________________________________________________________ !alterbar1|_target|@{target||token_id} _bar|1 _amount|@{target|token_id} _show|all querry target 2 times and -&gt; --alterbar1|_target|-NbF_2WV0PU729jK87ua _bar|1 _amount|-2 _show|all __________________________________________________________________________ !alter @{selected|token_id} 1 +?{Add to Bar|0} work good __________________________________________________________________________ Actually i use this: !power {{ --name|Consomation --!Healing given| Le produit frais rend [[ [$heal] [[floor((1+@{Cerin|level})/2)]]d4+1 +[[floor((@{Cerin|level}-1) /2)*5]]&nbsp; ]] points de vie --api_token-mod|_ids @{target|token_id} _set bar1_value|+[^heal] statusmarkers|-green&nbsp; --?? @{target|hit_points} &gt;= @{target|target|bar1|max} ?? api_token-mod|_ids @{target|token_id}&nbsp; &nbsp;_set bar1_value|@{target|target|bar1|max} }} it work But it overheal token..... any help pls ? &lt;3
1692361905
timmaugh
Forum Champion
API Scripter
Hey, Folk...&nbsp; I'm not quite sure what your issue is, specifically, so I don't have a solution for you... but I see your question going unanswered so I at least have some suggestions for you. 1) PowerCards is no longer in active development. Most people who want a similar solution have migrated to ScriptCards (which *is* being actively developed). Just given the larger user base, if this problem were to crop up when you were using ScriptCards you would have more eyes able to take a look and help you. 2) I am not familiar with the alterbar script, but the one line you shared which you note "works" uses the handle "alter": !alter ... The rest of the command lines (that are in the PowerCards variations) use the handle "alterbar": --api_alterbar ... I'm not sure if that matters, but it is a difference. 3) When scripts call scripts, like PowerCards calling Alterbar, you lose selected tokens. The Script Moderator, being the one to issue the call to the secondary script (Alterbar, in your case), is the 'player' who has to have the tokens selected on the VTT... and the Script Moderator can never do that. I'm not sure that this is what you're running into since your command lines all seem to use targeting statements to obtain the token id, however, to rule this out, you can install SelectManager. SelectManager is a mod script in the one click, and it's what we call a "metascript". It can restore the selected tokens that were lost. 4) I appreciate the effort you put into providing info about your set up (character sheet, installed scripts, etc.), but I'm not sure that your problem is clear enough for people to understand what you need. I understand that there might be a language difference, but I would suggest you just write your post in your native language, and let other people on the forum use translation tools to be able to read it. In a post like that, be clear to describe what you want to have happen (generally, without specific language of any particular mod... ie: "I want to be able to click on a token to target it, and I want to deal 1d8 damage to it"). Then you can get into what you tried and what happened -- how it didn't work. That will give people more context for what you need. Try the above points and if you still need help, post again.