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

Need help with a craft macro for 3.5 character sheet

i am using Diana's 3.5 character sheet. while i can get the normal craft check, i am trying to add in the time it takes to create an item, as well as the item's price and the cost to create the item. so far the macro looks like this: [[(?{price of item in sp|0}-(?{price of item in sp|0}/3))/(((?{would you like to take ten|yes,10|no,1d20}+?{crafting modifier|0})*?{Craft DC|0})/7))]] but i cant figure out how to put it in this template: &{template:DnD35StdRoll} {{basicflag=true}} {{name=Test Roll}} {{subtags=swinging violently}} {{subtags2=at the kitchen sink.}} {{attack= [[ 1d20 ]] }} {{damage= [[ 1d8 ]] }} {{note= This is some note content}} {{Saving throw= [[ @{will} ]] Will save}} {{Attack1: [[ d20cs>10+5 ]] *crit on 10+=Damage1: [[ d6+2 ]] }} {{Confirm: [[ d20+5 ]] =+ [[ d6+2 ]] ad'l dmg }} {{Attack2: [[ d20+5 ]] =Damage2: [[ d6+2 ]] }} {{Attack3: [[ d20+5 ]] =Damage3: [[ d6+2 ]] }} {{compcheck= Conc: [[ {1d20 + [[ @{concentration} ]] }>?{Concentration DC=15+Spell Level or 10+Damage Received|16} ]] }} {{succeedcheck=Success! The spell is cast!}} {{failcheck=Failure. :( }} {{notes=Additional notes under the notes tag will be at the bottom.}} by help with this is very appreciated.
1465080729
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Should be able to put it after the equal sign in the first attack, and delete everything after that. Can probably rename attack to craft or whatever you please. 
I was trying to add all the things for the craft skill into one of the templates. That includes time, and cost of materials for the item I am crafting. Any ideas on how to incorporate all of that into one macro?
1465097157
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
ah, sorry, was responding from my phone before. I see the problem now that I can actually test it on a computer. Thought the 3.5 templates were like the pathfinder ones, which you can just replace the labels as much as you want. Since you can't customize the 3.5 templates, I'd say use the  default roll20 template that is available in all games. I'm not sure what all you want to put in the macro, I use a slightly alternate crafting system in my pathfinder game, but one problem I see with your proposed macro is that I'm assuming you'll want to see the actual skill check for determining if the craft check was successful. I might suggest using the  Ability Command buttons to call your price and other functions once you or the player has rolled their craft check (and you can enter the craft check using the roll queries.
That's just it i don't know how to use a query's answer for multiple things. Is there a way to answer multiple lines with only one query simply?
1465099761

Edited 1465099840
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Oh, you can use a query for multiple things, just repeat the query (you can leave off the options); that's not the problem. The problem is that putting 1d20 in a query doesn't pass the result of the roll, it passes the dice to roll, so everytime you use your query, it rolls again.
Okay here is the order in which i need the stuff in: 1.DC of the item which is multiplied by check result query 2.The price of the item in silver pieces 3. Cost which is 1/3rd the price 4. And finally the time it takes to make it which is determined by other calculations based on the first two queries which is then divided by 7
1465110263

Edited 1465153058
Here's a macro based on the 3.5 crafting rules . &{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 ]] }}
Thank you so much Silvyre
1465151317

Edited 1465153064
You're very welcome! I just made a few corrections to the macro. Enjoy!
I have yet another question on this topic, how can i use the answer to a query for a second equation? Example, &{template:DnD35StdRoll} {{name=Craft}} {{saveflag=true}} {{?{sp|0} sp Initial cost: [[ floor(?{sp} / 3) ]] sp DC: ?{DC|10} Check: [[ 1d20 + @{craft1} ≥ (DC ?{DC|10}) ]] Time: 8 hours Items per day: [[here i need the DC answer times the check result divided by the time of work]] }}
Unfortunately, it's not possible to reference the results of a dice roll within a macro without the assistance of an API Script . (Access to the API is available in games in which the Creator has an active Pro subscription.) Here's a second macro that you could use to determine items per day: &{template:DnD35StdRoll} {{name=Craft}} {{Items per day: [[ floor(?{Check Result|10} * ?{DC|10} / ?{Time|8}) ]] }}
Okay thank you for the help