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

request for formula for use as a haggle

Hello all, I am looking for the ability to input a price using something like "?{Base Value "gp"|5000}" which would have a percent discount by the value of a character's persuasion, such as "@{target|PersuasionSkill}" but would then by increased by a merchant's randomized persuasion skill, such as "?{Merchants's Persuasion skill|3D4+4}".  The final result being something like 5000 - 5 percent (for a 5 character's skill) + 8 percent (for a rolled 8).  Is anyone using something like the above or have any ideas as to the formula for this?  Thank you!
The formula that you're describing sounds like Price: [[ ?{Base Value "gp"|5000} * (1 + (?{Merchants's Persuasion skill|3D4+4} - @{target|PersuasionSkill}) / 100) ]]
1494782515

Edited 1494782535
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
This should do what you want: [[?{Base Value "gp"|5000}-[[?{Base Value "gp"}*[[@{target|PersuasionSkill}/100]] ]]+[[?{Base Value "gp"}*[[ [[?{Merchants Persuasion Skill|3d4+4}]]/100]] ]] ]] Ninja'd by Silvyre ;)
Thank you Silvyre & Scott!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! It works perfectly.