Hi, I noticed today that in our system there is an ability that changes the preset attribute used for initiative (quick) to another one(cunning). Is there any way I could work around this? Every ability in the character is added to the attributes so i think that an api could check for the presence of the ability strategist (looking for "strategist" attribute) and if it is present it uses Bonus Stat 2, if it's not present it uses Bonus Stat1. There are more than one ability that modify initiative check, so I could add more Bonus Stat to the list based on the ability that change the initiative. I'm not an expert of API scripting so if anyone could help i would really apreciate it!
GroupInitiative was actually originally designed with just this use case in mind. Unfortunately, it’s a bit harder to use that way after the advent of Character Sheets on Roll20. Before Character Sheets, the only way you could have an attribute was to explicitly create it. Now attributes are implicitly created by Character Sheets. This is important for understanding GroupInitiative’s group system. Each rule group you create will only be applied if all the attributes exist. In the old days, that was obvious and automatic in the use of characters. The implication is that you can make a group that combines character sheet attributes (implicit and explicit) that will always be applied (this is the only rule in the modern usage), then you can create 1 or more rules promoted before it that contain attributes that are manually added which will only be applied if that attribute exists. So, you might make a couple rules like this: !group-init --add-group --bare cunning --bare has_strategist
!group-init --add-group --bare quick
On Characters with strategist, you manually create an attribute named has_strategist with a value of 0. It’s important that the added attribute isn’t one that is implicitly in the character sheet. With these rules then, it will apply the cunning attribute on all the characters with that manual attribute, then skip down and apply the second rule on everything else. Hopefully that will let you get it working right!