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

Error in saving throw macro wtype

For some reason the macro I have is not working well. It does not take the values of the saving throw, but of the stats. I explain, a npc has Dex 16 (+3) , but it has Dex saving throw +5 .... when using the macro it rolls 1d20+3 instead of 1d20+5. The npc sheet is filled well, there is no error in the sheet. Does anyone know what's wrong with the macro? @{selected|wtype}&{template:npc} @{selected|npc_name_flag} @{selected|rtype}+?{Save|Strength,[[@{selected|strength_save_bonus}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|strength_save_bonus}]]]]}} {{mod=[[@{selected|strength_save_bonus}]]}}{{rname=Strength saving throw}} {{type=Roll}} |Dexterity,[[@{selected|dexterity_save_bonus}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|dexterity_save_bonus}]]]]}} {{mod=[[@{selected|dexterity_save_bonus}]]}}{{rname=Dexterity saving throw}} {{type=Roll}} |Constitution,[[@{selected|constitution_save_bonus}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|constitution_save_bonus}]]]]}} {{mod=[[@{selected|constitution_save_bonus}]]}}{{rname=Constitution saving throw}} {{type=Roll}} |Intelligence,[[@{selected|intelligence_save_bonus}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|intelligence_save_bonus}]]]]}} {{mod=[[@{selected|intelligence_save_bonus}]]}}{{rname=Intelligence saving throw}} {{type=Roll}} |Wisdom,[[@{selected|wisdom_save_bonus}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|wisdom_save_bonus}]]]]}} {{mod=[[@{selected|wisdom_save_bonus}]]}}{{rname=Wisdom saving throw}} {{type=Roll}} |Charisma,[[@{selected|charisma_save_bonus}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|charisma_save_bonus}]]]]}} {{mod=[[@{selected|charisma_save_bonus}]]}}{{rname=Charisma saving throw}} {{type=Roll}} } thx in avd.
Ohhh, i'm very stupid.. the error is in strength_save_bonus and so on..... i must change every line for this npc_str_save , and the same with dex, con.....
The final code is..... @{selected|wtype}&{template:npc} @{selected|npc_name_flag} @{selected|rtype}+?{Save|Strength,[[@{selected|npc_str_save}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_str_save}]]]]}} {{mod=[[@{selected|npc_str_save}]]}}{{rname=Strength saving throw}} {{type=Roll}} |Dexterity,[[@{selected|npc_dex_save}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_dex_save}]]]]}} {{mod=[[@{selected|npc_dex_save}]]}}{{rname=Dexterity saving throw}} {{type=Roll}} |Constitution,[[@{selected|npc_con_save}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_con_save}]]]]}} {{mod=[[@{selected|npc_con_save}]]}}{{rname=Constitution saving throw}} {{type=Roll}} |Intelligence,[[@{selected|npc_int_save}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_int_save}]]]]}} {{mod=[[@{selected|npc_int_save}]]}}{{rname=Intelligence saving throw}} {{type=Roll}} |Wisdom,[[@{selected|npc_wis_save}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_wis_save}]]]]}} {{mod=[[@{selected|npc_wis_save}]]}}{{rname=Wisdom saving throw}} {{type=Roll}} |Charisma,[[@{selected|npc_cha_save}]]]]}} {{r1=[[@{selected|d20}+[[@{selected|npc_cha_save}]]]]}} {{mod=[[@{selected|npc_cha_save}]]}}{{rname=Charisma saving throw}} {{type=Roll}} }