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

Is there anyway i can modify this script?

Without using the api? what i want is to have it everytime the player attacks it subtracts one arrow from their ammo which will start at 100 also it needs to be displayed so they can see how much ammo they have left! I can have them re-fill the ammo inside the script! This is the script:&nbsp; &{template:default} {{name= Kintorian Draws His Bow and Fires!}} {{=[Image](<a href="https://s3.amazonaws.com/files.d20.io/images/9080569/pZyxfQJp_BuMnzOJ3KvmNA/med.jpg" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/9080569/pZyxfQJp_BuMnzOJ3KvmNA/med.jpg</a>)}} {{The Arrow Sails For=[[1d20+2}]]}}
Oh i almost forgot when the counter reaches zero it should say out of ammo!
Only the API can trigger off conditions or modify any values. The base macro system would not be able to change your ammo count or detect when you're out of ammo outside of just displaying your ammo count. That being said, you can keep your ammo count on one of your token bars and reduce the count yourself. &{template:default} {{name= Kintorian Draws His Bow and Fires!}} {{=[Image]( <a href="https://s3.amazonaws.com/files.d20.io/images/9080569/pZyxfQJp_BuMnzOJ3KvmNA/med.jpg" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/9080569/pZyxfQJp_BuMnzOJ3KvmNA/med.jpg</a>)} } {{The Arrow Sails For=[[1d20+2}]]}} {{Ammo Count=[[ @{selected|bar2} ]] }}
Thanks what i have now works. I was just trying to get fancy!