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

Api Noob, having I am sure basic issues (ammo)

1475416542
Lil' Spoon
Marketplace Creator
I am trying to run the basic ammo script, its in the api script part, but the problem I am having is execution in game. !ammo @{character_id} arrows -1 the character part I have changed to the characters name and that its running it right I think... but it keeps saying no attributes was found, but under character sheet I made an attrabute arrows, I am not sure what I am doing wrong
1475417639
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
So, it sounds like you are doing the wrong syntax. This what I understand you to be doing: !ammo @{character_name} arrows -1. You need to do: ammo @{character_id} arrows -1 The other question is where have you saved this macro? Is it a character ability or a global macro? If it is a global macro, you will need to add a keyword to the attribute call to properly point the call. The keywords are selected, target, or specifying a character name.
1475418672
Lil' Spoon
Marketplace Creator
I am using the 5e srd character sheet, and have it in the ammo section of the weapon description "No attribute was found for @{Leo|Leo_id}" I get this response even after I tried the new syntax. I am sure I am just overlooking something simple with this all.
1475418972
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Ah, are you using the ogl companion script for this or are you using  Aaron's ammo script ? Or another script entirely?
1475419295

Edited 1475419428
Lil' Spoon
Marketplace Creator
Aaron's but I am willing to use anything that will work, I am just trying to get a handle on this api thing, it looks like it would be a great assit to any game
1475420013

Edited 1475420025
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Hmmm, using Aaron's, you will actually need to have it be a separate macro. That ammo field is for use with the companion script's ammo tracking function (available through one-click). The character sheet wiki:&nbsp; <a href="https://wiki.roll20.net/5th_Edition_OGL_by_Roll20#Automatic_Ammunition_Tracking" rel="nofollow">https://wiki.roll20.net/5th_Edition_OGL_by_Roll20#Automatic_Ammunition_Tracking</a>
1475420843
Lil' Spoon
Marketplace Creator
thank you very much!