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

[Script] Ammo Tracker

1395802300

Edited 1396335679
Hello, Inspired by Alexander N. I have made a quick ammo tracker. It will subtract 1 (arrow, bolt, bullet, flaming javelin +1) and whisper the GM with how many are left. Edit: I have realised this doubles as a wand charge tracker and I have updated the code to reflect this. Usage: 1. Select token that is firing their ranged weapon or wand. 2. Either type in chat or add the following to a macro: "!ammo [name of ammo]" or "!charges [name of spell]" (without quotation marks and square brackets). 3. The name of the ammo/wand spell must be a tokens character sheet attribute. eg. macros /em shoots their shortbow [[1d20+1]] to hit! !ammo arrows /em uses their wand of magic missles! !charges magic missiles Please find script here: <a href="https://gist.github.com/GM-King/9776048" rel="nofollow">https://gist.github.com/GM-King/9776048</a> Regards, GM King
I don't understand how this works, do you just put this into the macro section?
Wolf D. said: I don't understand how this works, do you just put this into the macro section? This would be a script that you would have to have running on your campaign, along with having a Mentor level subscription. When you create your macro you would have something like the following: /em fires their crossbow, attacking AC for [[1d20+8]]. The attack deals [[1d6+5]] damage. !ammo bolt
Jarrod . said: Wolf D. said: I don't understand how this works, do you just put this into the macro section? This would be a script that you would have to have running on your campaign, along with having a Mentor level subscription. When you create your macro you would have something like the following: /em fires their crossbow, attacking AC for [[1d20+8]]. The attack deals [[1d6+5]] damage. !ammo bolt so I have to have a subscription?
Your GM must have a mentor level subscription and have implemented this script within the campaign for this API to work.
Thanks, King -- My first successful API ! Works great.
You are most welcome! I have just realised that this API can double as a wand charge tracker. I have updated the code to reflect this.