Skip to content

Instantly share code, notes, and snippets.

@Silvyre
Created June 5, 2016 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Silvyre/627c0312af219e4023abe2183febd3db to your computer and use it in GitHub Desktop.
Save Silvyre/627c0312af219e4023abe2183febd3db to your computer and use it in GitHub Desktop.
&{template:default} {{name=Crafting}} {{?{sp|50} sp (DC ?{DC|10})
Initial cost: [[ floor(?{sp} / 3) ]] sp
Progress: [[ (1d20cs>[[ {[[{ceil(?{sp} * 2 / ?{DC}), ?{DC}}kh1]] - ?{Modifiers|0}, 0}kh1 ]]cf>[[ {[[{ceil(?{sp} * 3 / ?{DC}), ?{DC}}kh1]] - ?{Modifiers}, 0}kh1 ]]cf<[[ {?{DC} - 1 - ?{Modifiers}, 1}kh1 ]] + ?{Modifiers}) * ?{DC} + ?{Past progress|0} ]] of [[ ?{sp} ]]
Roll highlighting:
Check < DC ⇔ [[ 1 + d0cf0cs1 ]]
Check x DC ≥ sp x 2 ⇔ [[ 2 + d0 ]]
Check x DC ≥ sp x 3 ⇔ [[ 3 + d0cf0 ]]
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment