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

Rise Of The Runelord - API initiave for monsters

Hi all, I recently purchased and started running the rise of the runelord pathfinder 3.5 edition ( wow - excellent ) I upgraded to the pro subscription to make use of the groovy scripting system and installed the groupinitiative script which is also excellent. However, if I select the monster tokens as part of the group I am rolliing initiaive for, it does not find a linked character sheet to the monster so cant find the monsters initiative bonus and just rolls a d20 for them.some api script output content: - "Error: No attribute or sheet field found for character_id -M4E15NE7qV37l0XW27e named init" "Error: No attribute or sheet field found for character_id -M4E2a_y5o0ydYhv6OnB named init" "Error: No attribute or sheet field found for character_id -M4E2a_y5o0ydYhv6OnB named init" "Error: No attribute or sheet field found for character_id -M4E1wkEErQJNIaa8B0I named init" "Error: No attribute or sheet field found for character_id -M4E1wkEErQJNIaa8B0I named init" My first question, is it possible to link the token with the monster/character sheet such that it picks up the initiative for the monsters. Having read the documentation, etc I believe this is possible, but I am wondering if this wasn't done by the developers of the game, maybe it was not done for a reason, so if I link by hand it will cause issues? Secondly, if it is possible to get the initiative linked, would it then be possible to repeat whatever process was used for one token across all the tokens in the game as there are are a fair few and doing them all by hand seems a littel daunting, many thanks
1588341324
Kraynic
Pro
Sheet Author
If you are using the Pathfinder by Roll20 sheet, it can't find "init", because init doesn't exist on that sheet.  I think init is the stat name that works with the 5E by Roll20 sheet.  You need to set up the script to look for the "initiative" stat.  If you open up your api settings page in another tab/window, there are instructions there for changing the stats the script is looking for to adapt to different sheets. 
Hi Kraynic, thanks for the response. I first checked in the character attributes and abilites tab for both characters and monsters, and found the "initiatve" attribure for the monsters, but not for the characters on that tab, nor an "init" attribute for characters either - odd. so after much experimention I found that having one group defined as !group-init --add-group - -bare initiative --tie-Breaker initiative|current worked, but it all the initiative rolls were coming out as 7.07 or 10.10 I then set !group-init --set-max-decimal|0 and that seemed to work, but it wasn't correctly ordering tie breaks by the higher initiative, then ultimately, this worked: - !group-init --add-group - -bare initiative So thank you for pointing me in the right direction. The config at the bottom of the groupinitiative page actually says its for the pathfinder community character sheet and I am using the official character sheet and hence it didn't work.  I should have paid more attention to the workd "community" than the work "pathfinder"! thanks
1588357644
Kraynic
Pro
Sheet Author
Finding attributes on the Attributes & Abilities tab of a PC is hard, because there are so many.  The way I know it is "initiative" is that if you mouse over the final initiative modifier on the main page, the hover text is @{initiative}.  If you decide to set up a tie breaker, I think you would want to use dexterity for that (or dexterity_mod maybe).
aha, yes using the @{name} is a good shout. I tested without a tie breaker and so far all equal rolls have been in the correct order of initiative, so myabe that ordering is built in? thanks