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

Pathfinder Companion Script - Question About Ammo

I have ammo settings turned on but when I add a new ranged weapon to Equip and then Attacks it's not deducting ammo or popping up in the chat. What would I have to add to this macro to get it to use bolts in the Ammo section of Equip? @{PC-whisper} &{template:pf_attack} @{toggle_attack_accessible} @{toggle_rounded_flag} {{font=@{apply_specfont_chat}@{use_specfont}}} {{color=@{rolltemplate_color}}} {{character_name=@{character_name}}} {{subtitle}} {{name=@{name}}} {{attack=[[ 1d20cs&gt;[[ @{crit-target} ]] + @{attack_macro} ]]}} {{damage=[[@{damage-dice-num}d@{damage-die} + @{damage_macro}]]}} {{crit_confirm=[[ 1d20 + @{attack_macro} + [[ @{crit_conf_mod} ]] ]]}} {{crit_damage=[[ [[ @{damage-dice-num} * (@{crit-multiplier} - 1) ]]d@{damage-die} + ((@{damage_macro}) * [[ @{crit-multiplier} - 1 ]]) ]]}} {{type=@{type}}} {{weapon_notes=@{notes}}} @{iterative_attacks} @{macro_options} {{vs=@{vs}}} {{vs@{vs}=@{vs}}} {{precision_dmg1=@{precision_dmg_macro}}} {{precision_dmg1_type=@{precision_dmg_type}}} {{precision_dmg2=@{global_precision_dmg_macro}}} {{precision_dmg2_type=@{global_precision_dmg_type}}} {{critical_dmg1=@{critical_dmg_macro}}} {{critical_dmg1_type=@{critical_dmg_type}}} {{critical_dmg2=@{global_critical_dmg_macro}}} {{critical_dmg2_type=@{global_critical_dmg_type}}} {{attack1name=@{iterative_attack1_name}}} {{header_image=[Light Crossbow](<a href="https://i.imgur.com/VGLw7xA.png" rel="nofollow">https://i.imgur.com/VGLw7xA.png</a>)}} /fx Arrow @{target|Caster|token_id} @{target|Foe|token_id} !sfx song:Arrow action:play unique:true volume:75 Any help would be greatly appreciated. I'd like to be able to add this manually, I don't want to run the update script portion of PFS because I have edited and removed sections of the "Abilities" Token Actions that it creates when initializing.
1525578799

Edited 1525578973
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Do you have the ammo attribute of the repeating section set to 1+? Edit: Also, you can change what menus are created in the script's config menu.
Yes I have the ammo value set and I just double checked and " Automatic Resource Tracking is:" is set to On. I just want to know how to MANUALLY add in the resource tracking to a macro because I don't want to initialize all the sheets and overwrite my menus created in the Abilities section. I know it was something like || Arrows || but I don't recall what else was needed.
1525701322

Edited 1525702685
MyRoll20Stuffs
API Scripter
Scott do you think you could give me a little info on this? How would I manually add ammo tracking to an existing macro? I know it's something like: ||Arrows||rowid=AfakojNWNdkla9afSD|| Or something like that. That's all I remember seeing in one of the macros that had ammo tracking working. So how do I set it up manually?
1525712122
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
The format is this: ||item=Arrows||&nbsp; ||rowid=-KqukIGoHjexbwMLdGiu|| Although, if you have your ammo attribute for the attack set to 1+, it should make that for you.