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

Help Creating Initiative Macro linked to Character Ability

September 22 (9 years ago)
Ok i need help. In Fantasy Age Initiative is tied to your Dexterity which is an ability score on sheet. My question is how do i write a macro that rolls the Dexterity ability off my sheet and reads it for initiative so i can have my characters and NPCs go straight into the turn order on the initiative tracker..?
September 22 (9 years ago)

Edited September 22 (9 years ago)
Ziechael
Forum Champion
Sheet Author
API Scripter
Currently the in sheet dexterity roll looks like this (replace all '...' with the characters name or 'selected' for a universal macro):
&{template:fantasyage_generic} {{character_name=@{...|character_name}}} {{character_id=@{...|character_id}}} {{name=Dexterity}} {{Result=[[3d6 + @{...|Dexterity} + @{...|Dex_Focus}]]}}
If you simply add the command to add the roll to the tracker:
&{tracker}
After the desired roll it should work (assuming the tracker is open and the player has their token selected)
&{template:fantasyage_generic} {{character_name=@{...|character_name}}} {{character_id=@{...|character_id}}} {{name=Dexterity}} {{Result=[[3d6 + @{...|Dexterity} + @{...|Dex_Focus} &{tracker}]]}}
also, as this isn't an API question i'll move it to specific use.