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 .
×
The developers are currently investigating an issue with logging in + accessing the VTT.
Create a free account

Alter Bar Help

Ok so I have started using Alter Bar. Obviously I am doing something wrong. I couldn't post here, <a href="https://app.roll20.net/forum/post/1216260/script-alter-bar-on-token" rel="nofollow">https://app.roll20.net/forum/post/1216260/script-alter-bar-on-token</a> so I posted here. I am using the following macros: Add to Bar of Selected Token: !alter @{selected|token_id} 1 +?{Add to Bar|0} Subtract from Bar of Selected Token: !alter @{selected|token_id} 1 -?{Subtract from Bar|0} Add to Bar of Target Token: !alter @{target||token_id} 1 +?{Add to Bar|0} Subtract from Bar of Target Token: !alter @{target||token_id} 1 -?{Subtract from Bar|0} But when I do I get the following errors: for all 4 of the macros. I am sure I am the issue, I just don't know what it is.
My game is opening in slow motion. Rather than waiting I went to one of my text files. Here is one of my macros that I use to increment bar 2 down by one. Hope this helps. !alter --target|@{selected|token_id} --bar|2 --amount|-1
thank you ill try it when i get home
so yes it works as is, and obviously when I swap the bar # that works also.&nbsp; How would I go about adding ?{amount} to add or subtract specific amounts? I tried just editing your existing code to !alter --target|@{selected|token_id} --bar|2 --amount|-1 to !alter --target|@{selected|token_id} --bar|1 --?{amount} !alter --target|@{selected|token_id} --bar|1 --?{amount|-1} !alter --target|@{selected|token_id} --bar|1 ---?{amount} !alter --target|@{selected|token_id} --bar|1 --?{-amount} !alter --target|@{selected|token_id} --bar|1 --?{Add to Bar|1} Obviously nothing worked. What you have works if I want to deduct one point at a time, I would like to apply specific damage to specific characters. What am I doing wrong now? If you haven't noticed, I will likely ask for aid correcting all 4 macros, I am very inexperienced at this, I try to work the problem before asking for help though, as I will never learn otherwise. I've tried looking the problem up myself, but I&nbsp; not have gotten very far.
Here is my "Damage" macro using Alter: !alter --target|@{selected|token_id} --bar|3 --amount|-?{Damage Taken|0} And my "Heal" macro: !alter --target|@{selected|token_id} --bar|3 --amount|+?{Amount Healed|0} It appears like you were wrapping "amount" as a variable and forgetting that it is a command to alter as well. Hope this helps.