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

Initiative Token Macro for MYTHRAS TABLE

This is what I got so far anyone know how to get this to work? @{selected|token_name}'s Initiative: [[1d10+(int-u + cha-u)/2 &{tracker} ]]
1584643988
GiGs
Pro
Sheet Author
API Scripter
If cha-u and int-u are actual attribute names, just wrap them the way you have with token-name: @{selected|token_name}'s Initiative: [[1d10+(@{selected|int-u} + @{selected|cha-u})/2 &{tracker} ]] If that doesnt work, make sure you are using the accurate attribute names.
Thanks for trying to help me out but it's no use. I think the attributes are just not compatible. I've tried INT and int - u, the latter being the definition for the sheet's library code.  
Well the test works but when it comes out of test it gives me #initiative. 
1584742534

Edited 1584742558
GiGs
Pro
Sheet Author
API Scripter
Having a look at the sheet's code, it looks like you should be using @{selected|token_name}'s Initiative: [[1d10+(@{selected|int} + @{selected|cha})/2 &{tracker} ]] When you get the #initiative output that usually means you are launching a macro that isnt reocgnised or properly formed. Try selecting a token, then pasting the above code directly into chat to see if it works. If it doesnt work, check your token is properly set up (in token settings, Represents must be set to a character to be able to read it's attributes). If it does work, you need to check how you are launching your macro, to see what's wrong with it. The more information you can give, the better.
Latis why do you need this macro when the Mythras sheet already has a button for it? If you want the output this is what comes out in the chat: @{PC NAME|roll_display}&{template:default} {{name=^{initiative-u}}} @{PC NAME|name_display} {{^{rolled-u}=[[@{PC NAME|init_dice} + @{PC NAME|initiative_bonus} &{tracker}]]}}
your solution does not work GiGs does. 
I think that GIGs result isn't right. In Mythras Initiative is the average of INT and DEX modified by Armour and other factors. The Mythras sheet I think do have all the right caculations.
1589259583
GiGs
Pro
Sheet Author
API Scripter
When I posted my code, I was trying to figure out what the int and dex stats were. If the sheet already has initiative stats built in, it would be better to use those. Seeing Bilharzia's code, i had a look at the button in the sheet, which seems to have a missing set of }}. Weird. But this should probably work: @{roll_display}&{template:default} {{name=Initiative}} @{selected|name_display} {{Rolled=[[@{selected|init_dice} + @{selected|initiative_bonus} &{tracker}]]}} If it doesnt work, try removing the  @{selected|name_display} part . The way that's done in the sheet confuses me, but I dont have time to study it properly.