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

[SW FFG] [Macro] need help debugging short spaceWeapon macro, pls

Hi rolers, I´m trying to fire the first repeating Weapon of the selected space vehicle per macro (as it would trigger via the d20 symbol next to that weapon). The attribute names I got from the API and the up arrow key trick after rolling from the sheet. But something I must have gotten/written wrong: !eed %{selected|repeating_spaceWeapons_$0_weapons}  Any ideas? Thanks!
1617190273
David M.
Pro
API Scripter
What is the behavior that you are observing vs. what you are expecting? It looks like you are using an API script, based on the !eed header in your macro line. Not familiar with that script. Is your api sandbox still running? There may or may not be errors in the api console (pink background with red text). If there are errors or it is just inactive, you may need to restart your sandbox (requires you to be in an active instance of the VTT, typically in another browser window). 
Hi David, the API script in use is:  Star Wars: Fantasy Flight Games - Dice Roller (hope I postet the question here in the right forum?) The API keeps running. Expected: making the same role as in the char-sheet Observing: Error Message:  No ability was found for %{selected|repeating_spaceWeapons_weapons} Guessing: "spaceWeapons_weapons" is not the right attribute name But: in the API or descriptions or googling macros I cannot find an other naming (and y tried dozens of combinations with underlines/singular/etc....) Maybe: is there another spot to get the attribute names which is not by looking in the API or in the Attributes&Abilities Section of the Charsheet? When I do the following script on NPC (not like the above for starships) it works just fine: !eed %{selected|repeating_npc-weapons_$0_weapon}
1617213350
David M.
Pro
API Scripter
Unfortunately, I know nothing about SW FFG. I was replying in the hopes that it was an easy sandbox problem. I tried poking around in a test game using the api-enabled sheet, and when I rolled directly from the sheet did the up-arrow, I got something that looked like this !eed rollPlayer(character:ship|encum|skill:agility,rankHeavy) label(Weapon:cannon|Vehicle:@{ship|transport-space-name}|Damage:2|Critical:0|Range:Long|Qualities:) combat(vehicle) 1g 1b @{ship|dicePool} (gmdice) When dragging the roll to the macro quick bar, it created this: %{ship|repeating_spaceweapons_-MX8M7P-TfLMmitrYuli_space-shipWeapon} Note the all lower case text for "spaceweapons". However, when trying to roll from the newly created quick bar button, I got the no ability found error. Clearly I have no idea what I am doing in this sheet. Hopefully someone with more than 3min of experience with it can help you. Good luck!
Thanks for your replies, maybe it can´t be as macro, because it´s calling data from an other entity (pilot of ship). But I found a smooth workaround: Putting the weapons in the NPC part of the sheet, lets me trigger them just fine with a macro. Happy Gaming!