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 .
×
May your rolls be merry + bright! 🎄
Create a free account

Need a MACRO wizard to make First Aid skill check for Classic Travellar

1590848250

Edited 1590848832
I would like to add a FIRST AID check for my players... The skill check should ask if the players have a med kit and if they have Medical Skill. Medical skill subtracts (skill*10) from the roll and NO med skill aka (0-Skill) should apply a penalty a +30% to success (low roll is better)  WITH MED KIT          <70% success , >71% failure  with a critical failure/success feature        1d100cs<5cf>95   WITHOUT MED KIT  <30% success , >31% failure  with a critical failure/success feature        1d100cs<5cf>95 The result is either "stabilized" or "NOT stabilized" If stabilized is the result, output should read "PATIENT STABILIZED / HEALED (inset Medical skill *10) POINTS" If not stabilized is the result , output should read "PATIENT IN SHOCK" 
I appreciate the help I have received here on this forum!  I originally offered payment for help and I was pleasantly surprised with help with no expectation of money! Thank you for this community of game folks ;)
1590860790
GiGs
Pro
Sheet Author
API Scripter
I'm not clear how your roll works. Your numbers say 70% and 30%, which is a 40% difference, but you say medkits give a 30% bonus. Which is correct? By default, Roll20 cannot give text outputs to rolls. You make the roll, and it gives you a number. If you roll against a target, it will tells you your successes, but that's it. Not text output. So you can make the roll like this: &{template:default} {{name=MEDICAL CHECK}} {{MEDSKILL=[[?{ Medical Skill |0} *10]]}} {{RESULT=[[1d100cf<5cs>95<[[ 70 -?{Medical Kit?|Yes, 30 |No,0} -?{ Medical Skill } *10]] ]]}}  This will show you a result of 0 for failure, and 1 for success. So you could use this macro instead, which will show the 0 and 1 (fail and success) descriptions. &{template:default} {{name=MEDICAL CHECK}} {{RESULT=[[1d100cf<5cs>95<[[70-?{Medical Skill|0}-?{Medical Kit?|Yes,30|No,0}  *10]] ]]}} {{1=PATIENT STABILIZED / HEALED [[?{Medical Skill}*10]] POINTS }} {{0=PATIENT IN SHOCK}}
1590872502
GiGs
Pro
Sheet Author
API Scripter
Weird it workks for me: copy the following line, and past directly into your chat: &{template:default} {{name=MEDICAL CHECK}} {{RESULT=[[1d100cf<5cs>95<[[30-?{Medical Skill|0}+?{Medical Kit?|Yes,30|No,0}  *10]] ]]}} {{1=PATIENT STABILIZED / HEALED [[?{Medical Skill}*10]] POINTS }} {{0=PATIENT IN SHOCK}} Does that work? You say No First add adds 30 to the roll, but what is the base? Your original post said 30% without medkit, and 70% with, which is a 40% difference.
no output still
And yes my original post was redundant
1590873138
GiGs
Pro
Sheet Author
API Scripter
You havent answered the question: if the medkit adds 30%, what is the base chance?
70% chance with a first aid kit  30% chance without a first aid kit (40% bonus)
1590873189
GiGs
Pro
Sheet Author
API Scripter
Scot Harvest said: no output still Do you have any output from other buttons or macros? The macro I posted should work, so there is some other problem.
1590873247

Edited 1590873312
My error was that it gives 30 pt (not 30%) added to the amount healed. Sorry
1590873260
GiGs
Pro
Sheet Author
API Scripter
Okay, with the 40% bonus, the macro should be &{template:default} {{name=MEDICAL CHECK}} {{RESULT=[[1d100cf<5cs>95<[[30-?{Medical Skill|0}+?{Medical Kit?|Yes,40|No,0}  *10]] ]]}} {{1=PATIENT STABILIZED / HEALED [[?{Medical Skill}*10]] POINTS }} {{0=PATIENT IN SHOCK}}
1590873391

Edited 1590873405
Again... no output Not even an error
1590873458
GiGs
Pro
Sheet Author
API Scripter
Can you please answer all the questions I am asking? Are other macros working properly, printing results to chat?
You were right... no output from ANY of my macros
Something to do with the site?
1590873738
GiGs
Pro
Sheet Author
API Scripter
The chat has become corrupt. This happens very occasionally. What you need to do is exit the campaign, and on the campaign launch page, click the settings button on the right, and select Delete Chat Archive (or words to that effect, cant remember the exact words). Deleting the chat archive should fix it.
Beautiful!!! Thank you so much and I do appreciate how patient you were with me ;)
And now they work!
1590873987
GiGs
Pro
Sheet Author
API Scripter
Great! :)
The MACRO only has a success results.... not one failure.  
I was miss reading the output
1 =success 0=failure Got it!
1590874478
GiGs
Pro
Sheet Author
API Scripter
yes :) The way roll20 dice work, we cant get better reports than that.
Thank you Sooo much I would have gone NUTS trying ;)