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

Rolemaster (RMSS) macro help + initiative tracker

Hi Folks I am having difficulties to say the least lol moving macros out of the RMSS sheet to custom macros. The whole copy paste thing gives  this error when I select token and hit test macro. TypeError: Cannot read property 'substring' of undefined I even changed to the @token selected  instead of @char name to no avail Anyone have an initiative macro with tracker handy or even  knows why am having this error? If I can simply export those sheet macros to a custom macro that will be a huge quality of life improvement, As far as I know when I copy paste the macro, I don’t see any reference to the sheet or if so I cant find it. Any thoughts, advise? Thanks and cheers
1593602544
GiGs
Pro
Sheet Author
API Scripter
Can you post the full text of the macro you are trying?
Hi GiGs and thank you   This is the initiative macro from the sheet &{template:RMSSInitiative} {{name=@{selected|token_name}'s }} {{check=initiative roll: }}{{checkroll=[[2d10 + [[@{initbonus}]] &{tracker} ]] }}   And this is a sample macro from the sheet  that I want to move out of the sheet /w gm &{template:RMSSStdRoll} {{skillflag=true}} {{name=@{character_name}'s Acting}} {{subtags=Category: Artistic, Active}} {{check=Acting (@{actingranks} ranks): }} {{checkroll=[[1d100!>@{oeuproll}cf<@{oedownroll}cs=100 +[[@{acting}]] +?{Other bonus/penalty?|0} ]]}} {{oedownroll= -[[1d100!>@{oeuproll}[open ended down roll; subtract from previous roll] ]]}} {{critroll= **Check for Nat 100!!!!**}} {{highlight66= [[66 +?{Other bonus/penalty?|0} +@{acting} ]]}} {{highlight66roll=**Natural 66.** }} {{notes=@{actingnotes} }}    I changed  {{name=@{character_name}’s}} to {{name=@{selected|token_name}'s I get the error message
1593606120
Oosh
Sheet Author
API Scripter
&{template:RMSSInitiative} {{name=@{selected|token_name}'s }} {{check=initiative roll:}} {{checkroll=[[2d10 + [[ @{initbonus} ]] &{tracker} ]] }} That Attribute call in bold is your problem - the parser has no idea which sheet to read @initbonus from once you move the code off the sheet. Your options are: 1) paste it as-is into the character sheet as an Abilities macro in the Attributes & Abilities tab. This will read @{initbonus} from the sheet it's on 2) change the Attribute calls to @{selected|initbonus} and save it as a Collections macro. This will read @{initbonus} from whichever sheet the currently selected token is attached to. It will throw an error if you try to run it with no token selected, or a token with no attached sheet.
1593607449

Edited 1593608070
Thank you Oosh by importing the macros to a new macros created under "Attributes & Abilities" they work and I did option @2 and changed the value with your recommendations and it works   Thanks a ton, i tried same approach to the standard macros, no dice, oh well, thanks again for your help!!!