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

Broken Macro

Ok, on the server I play on they use a vault to keep the players characters. Everything is up dated on the sheet. I do the updates then I would del. my old char. from my personnel char. list in Roll20 then re-import the new char on my Roll20. When a came is called to start we are asked to import into one of 4 servers. When I do all of my weapon break and will not work. They work fine in the main vault page. What can be causing the macro to break when I do a import to another server. This has happen on at least 3 different char. 
1632673022

Edited 1632673077
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
If the macro is set to use a character or token id, that might break. I can't remember if the Vault issues a new id to an import. Can you post the text of a macro that is breaking? And also tell how it was created: manually, or through an API script.
I roll the weapon from the sheet, Then in the output box i hit the up arrow that will display the code for that roll. Then copy it for the macro.
keithcurtis said: If the macro is set to use a character or token id, that might break. I can't remember if the Vault issues a new id to an import. Can you post the text of a macro that is breaking? And also tell how it was created: manually, or through an API script. @{Drizit (9-5)|wtype}&{template:atk} {{mod=+5}} {{rname=[Shortbow  of Duality](~-MiOawcg4z83ccBd_fFX|repeating_attack_-MjXODit8lDOiH2aTPpx_attack_dmg)}} {{rnamec=[Shortbow  of Duality](~-MiOawcg4z83ccBd_fFX|repeating_attack_-MjXODit8lDOiH2aTPpx_attack_crit)}} {{r1=[[@{Drizit (9-5)|d20}cs>20 + 3[DEX] + 2[PROF]]]}} @{Drizit (9-5)|rtype}cs>20 + 3[DEX] + 2[PROF]]]}} {{range=80/320}} {{desc=Counts as Magical On a crit deals 3d6 lightning damage extra On a crit fail (before re roll) deals 6d6 Lightning damage to user.}} {{spelllevel=}} {{innate=}} {{globalattack=@{Drizit (9-5)|global_attack_mod}}} ammo= @{Drizit (9-5)|charname_output}
Not sure if it is the issue, but any time I have had characters with special characters in the name it has caused issues with some macros/API.
Richard T. said: keithcurtis said: If the macro is set to use a character or token id, that might break. I can't remember if the Vault issues a new id to an import. Can you post the text of a macro that is breaking? And also tell how it was created: manually, or through an API script. @{Drizit (9-5)|wtype}&{template:atk} {{mod=+5}} {{rname=[Shortbow  of Duality](~-MiOawcg4z83ccBd_fFX|repeating_attack_-MjXODit8lDOiH2aTPpx_attack_dmg)}} {{rnamec=[Shortbow  of Duality](~-MiOawcg4z83ccBd_fFX|repeating_attack_-MjXODit8lDOiH2aTPpx_attack_crit)}} {{r1=[[@{Drizit (9-5)|d20}cs>20 + 3[DEX] + 2[PROF]]]}} @{Drizit (9-5)|rtype}cs>20 + 3[DEX] + 2[PROF]]]}} {{range=80/320}} {{desc=Counts as Magical On a crit deals 3d6 lightning damage extra On a crit fail (before re roll) deals 6d6 Lightning damage to user.}} {{spelllevel=}} {{innate=}} {{globalattack=@{Drizit (9-5)|global_attack_mod}}} ammo= @{Drizit (9-5)|charname_output} What sheet are you using.  That macro will only work in the session you made the key in as its calling unique character id's that change when a new session is made and its imported in.  Either use the script/extension in the new session whenever you import/vault or figure out how to copy your sheets buttons as macros.  If you tell us what sheet you have someone can probably backwards engineer the proper format for you.  Normally you would open the sheet up, fire a button on the actual sheet(not token actions) and then hit the up arrow and copy/paste the macro into a token action.  There are some sheets that fail to let you do this.  
1632840490
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
In the above example, replace "-MiOawcg4z83ccBd_fFX" with the character's name. This will prevent any problem that comes with re-assigning an id. Also, Kilter is spot on in pointing out that control characters in names can cause issues: ()[]{}@$%&, etc.
keithcurtis said: In the above example, replace "-MiOawcg4z83ccBd_fFX" with the character's name. This will prevent any problem that comes with re-assigning an id. Also, Kilter is spot on in pointing out that control characters in names can cause issues: ()[]{}@$%&, etc. @{Driset|wtype}&{template:atk} {{mod=+5}} {{rname=[Shortbow of Duality](~-MiOawcg4z83ccBd_fFX|repeating_attack_-MjiL8fm6LoYJH2tnp0x_attack_dmg)}} {{rnamec=[Shortbow of Duality](~-MiOawcg4z83ccBd_fFX|repeating_attack_-MjiL8fm6LoYJH2tnp0x_attack_crit)}} {{r1=[[@{Driset|d20}cs>20 + 3[DEX] + 2[PROF]]]}} @{Driset|rtype}cs>20 + 3[DEX] + 2[PROF]]]}} {{range=}} {{desc=Counts as Magical On a crit deals 3d6 lightning damage extra On a crit fail (before re roll) deals 6d6 Lightning damage to user.}} {{spelllevel=}} {{innate=}} {{globalattack=@{Driset|global_attack_mod}}} ammo= @{Driset|charname_output} I am using whatever CHARACTERMANCER 4.21 How would I change that. Also this is the new string.
Richard T. said: keithcurtis said: In the above example, replace "-MiOawcg4z83ccBd_fFX" with the character's name. This will prevent any problem that comes with re-assigning an id. Also, Kilter is spot on in pointing out that control characters in names can cause issues: ()[]{}@$%&, etc. @{Driset|wtype}&{template:atk} {{mod=+5}} {{rname=[Shortbow of Duality](~-MiOawcg4z83ccBd_fFX|repeating_attack_-MjiL8fm6LoYJH2tnp0x_attack_dmg)}} {{rnamec=[Shortbow of Duality](~-MiOawcg4z83ccBd_fFX|repeating_attack_-MjiL8fm6LoYJH2tnp0x_attack_crit)}} {{r1=[[@{Driset|d20}cs>20 + 3[DEX] + 2[PROF]]]}} @{Driset|rtype}cs>20 + 3[DEX] + 2[PROF]]]}} {{range=}} {{desc=Counts as Magical On a crit deals 3d6 lightning damage extra On a crit fail (before re roll) deals 6d6 Lightning damage to user.}} {{spelllevel=}} {{innate=}} {{globalattack=@{Driset|global_attack_mod}}} ammo= @{Driset|charname_output} I am using whatever CHARACTERMANCER 4.21 How would I change that. Also this is the new string. This button, even if you fixed the repeating rows call and put in the actual attack stats, is still going to break the second your PB or your ability mod changes as its directly manually calling the stats at the time you made the button and not using scaleable attribute calls like @{CharName|dexterity_mod}[DEX] and @{CharName|pb}[PROF].  You also need to put this in the mod field which is set to a flat +5 at the start of the template, which is a noteable issue with the 5e ogl sheet, it does this to mod entries and it does it to spell save dc entries at the bottom of spell templates which leads to misleading mods/spellcards in gameplay often.  
Would someone be willing to make up the right Marco if I send them my char. I can do a vault import if need be.