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

Question on Sheet coding

August 13 (6 years ago)

Short and simple I hope, coded up a spell "Jolting Surge" for a private Starfinder campaign (mostly homebrew) I'm running, and I'm not sure that the code is accurate, is there a simpler format for casting spells than all this?  I don't think I even need the melee attack I think I need the one for ranged? And I don't know what all the extra rolls are for, when I hover over the results for the 'melee' attack I get something like: 1d20(0+0+0+0+0 (floor+) etc etc.

The code I have is below:

&{template:pf_spell} {{name=@{name}}} {{level=@{spellclass-0-name} 1}} {{school=@{school}}} {{casting_time=@{cast-time}}} {{range=@{range}}} {{target=@{targets}}} {{duration=@{duration}}} {{saving_throw=@{save}}} {{sr=@{sr}}} {{mel_attack=[[1d20+@{attk-melee}]]}} {{damage=4d6([[4d6]])}} {{spell_description=@{description}}}


Thanks in advance~

August 14 (6 years ago)
vÍnce
Pro
Sheet Author

Hi Lucy,

which sheet are you using?  I'm guessing the Pathfinder Community sheet, but you mentioned Starfinder...

If you are using the PF Community sheet, there's a guide on the wiki that may help. Roll templates:  https://wiki.roll20.net/Pathfinder_Character_Sheet#Roll_Templates  and more specifically, pf_spell: https://wiki.roll20.net/Pathfinder_Character_Sheet#pf_spell_Properties 

You should be able to remove any {{key=value}} sections you don't need and add other's as desired.

Hope this helps.


August 14 (6 years ago)

Hiya, Vince, thanks for the reply!


I am actually using the Starfinder (Simple) sheet for the game I'm running. is there a roll template for Starfinder as well? (Although the pathfinder templates will certainly be helpful for the pathfinder one I run lol)

August 15 (6 years ago)

Edited August 15 (6 years ago)
vÍnce
Pro
Sheet Author

For the SF roll template, your might try looking here https://wiki.roll20.net/Starfinder_Official_Appendices#Appendix_C:_Roll_Templates

Looking at your posted macro, it's actually setup to use the Pathfinder roll template. ;-)  You can only use the roll template designed for the sheet you are using, in this case Starfinder and the Default template that's available to everyone regardless of the sheet. e.g. &{template:default} {{name=Default Template}}

Here's an example of Starfinder's spell-based roll template

sf_spell
Used for abilities and spells.
&{template:sf_spell} {{name=}} {{characterid=}} {{title=}} {{activation=}} {{duration=}} {{targets=}} {{range=}} {{saveflag=}} {{savedc=}} {{savetype=}} {{effect=}} {{saveeffect=}} {{attackflag=}} {{fullattack=[[must be an inline roll]]}} {{r1=}} {{damageflag=}} {{damage1type=}} {{damage1=}} {{crit1damage=}} {{crit1effect=}} {{r2=}} {{damage2type=}} {{damage2=}} {{crit2damage=}} {{crit2effect=}} {{r3=}} {{damage3type=}} {{damage3=}} {{crit3damage=}} {{crit3effect=}} {{r4=}} {{damage4type=}} {{damage4=}} {{crit4damage=}} {{crit4effect=}} {{r5=}} {{damage5type=}} {{damage5=}} {{crit5damage=}} {{crit5effect=}} {{notes=}} {{leftbanner=}} {{rightbanner=}}



August 16 (5 years ago)

Ahah! I'll have a look see at that, and see if I can get it to work :D thank you! :)