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 .
×

Pathfinder Character sheet @{init}

Hi all, I apologise in advance for being a giant nub but I am very new to this scripting business. I am using the Pathfinder rule set and have my players making use of the inbuilt pathfinder character sheets. I am trying to create an initiative macro that will will look up the characters final initiative score from the character sheet. I noticed that the sheet doesn't output this as an attribute but if i mouse of the total init score it says "@{init}" and in my n00bish mind i thought that a roll20 macro may be able to pull from this field. So i tried modifying my current initiative macros to use this @{init} field but I could not. I tried lots of different syntax's and searched all over the forum but couldn't find anything that specifically commented on what I was trying to achieve. So, would i be correct in assuming that you cannot use @{init} in a macro? And secondly is there any way to create some kind of script that would have the sheet output this number as an attribute and thirdly is there any plans to do this?
1432534522

Edited 1432565611
vÍnce
Pro
Sheet Author
Hi Ryan. You can use @{selected|init}, but it is an auto-calculated attribute, so all you would get is the formula. All the greyed-out boxes on the PF sheet are auto-calculated. If you use it inside an inline roll, ie [[@{selected|init}]] , you will get the "total" of the formula. That's just the nature of auto-calculated attributes. So, you can do something like; Initiative Macro [[((1d20 + [[@{selected|init}]]) + (0.01 * @{selected|init})) &{tracker}]] which is the built-in Initiative sheet roll on the sheet btw. That additional bit on the end, appends the character's init bonus(as a decimal) to the end of their initiative roll. It's a "visual helper", does nothing to the roll and can be used as a tiebreaker on the tracker. Or just add the sheet's Initiative Button's name in a macro %{selected|Roll-for-initiative} which will also include the roll template.
1432555878
The Aaron
Roll20 Production Team
API Scripter
(Moved to Specific Use, API is for posts about the JavaScript API.)
Thanks so much Gents. I clearly have no idea of what's going on. I will endeavour not to waste your time in the future!