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

Could I get some help making a macro?

1473405977

Edited 1473406120
Hi guys,  I asked for help a while ago and got some really really solid help from two really helpful people. I was wondering if I could get some help again. I'm trying to make a macro that, with a single push (or multiple if impossible for one push) roll from this system I'm working on. The system is (and anyone here is welcome to use it) a modified Lingering Injures Chart. Here are the rules: The following chart is used when a player or Important NPC is brought to 0 Roll d20 to determine the injury Roll required injury dice (if applicable) Roll d20 to determine the severity NOTE: Using this chart requires a certain level of common sense. Obviously a squirrel can’t cause a player’s leg to become severed. The acceptable solution is if a monster can’t cause all of these conditions, don’t use this system. INJURY TABLE (no values have been assigned as of yet.) Head Injury Disadvantage on all INT, WIS and CHA checks. Also, the player rolls against a DC 10,15,20, N/A* Con Save; Fail means unconscious for an additional 1d12 hours, +2d12, +3d12, +N/A* (only the required healing spell can bring the person back to consciousness). Alternatively, a potion using a healing kit charge or the reagents and the herbalism tool proficiency with the herbalism tools can be brewed. This potion would cause the affected creature to wake up. A DC 10,15,20, N/A Wisdom (Medicine) check. The potion takes 30 minutes to brew and must be consumed within the day. Each potion created this way weighs 1 pound. *A 1 on the severity table is instant death. (Decapitation or Severe Brain Damage) Damaged Arm (1-6) or Hand (7-20) (even left, odd right) The arm or hand becomes unusable and the creatures lift, drag and lift weight is half of its maximum. The creature has disadvantage on Acrobatics and Athletics checks that would require using the affected limb. A 1 on the severity table Is a complete loss of the damaged body part Damaged Leg (1-6) or Foot (7-20) (even left, odd right) the creatures speed on foot is halved, and it must use a cane or crutch to move unless it has a peg leg or other prosthesis. Another creature with a free arm can also help it move. The creature falls prone after using the Dash action. It also has disadvantage on Acrobatics and Athletics checks that would require using the affected limb. The creatures lift, pull and drag weight is half of its maximum. A 1 on the severity table Is a complete loss of the damaged body part Damaged Eye (1) or Ear (2) or Nose (3) Disadvantage on perception based skills using that sense. A 1 on the severity table Is a complete loss of the damaged body part Internal Trauma or Bad Bleed The creature will die regardless of death saves in 48,24,12,6 rounds. Alternatively, someone can tend to the wound to stop the bleeding using a healing kit by making a DC 10,15,20,25 Wisdom (Medicine) check. Festering Wound The wound is infected. The creatures hit point maximum is reduced by 4,8,16,32 after every long rest. If the creatures hit point maximum drops to 0, the creature becomes unconscious. Upon falling unconscious, the creature rolls a DC 10,15,20,25 constitution saving throw for every festering wound. If the creature passes, the creature survives unconscious for 24 hours. After 24 hours, the creature rolls another save. 3 saves and the wound heals naturally, 3 fails and the creature dies. Alternatively, during a long rest someone can tend to the wound using a healing kit by making a DC 10,15,20,25 Wisdom (Medicine) check. After a success, the wound heals at the end of the rest. A failed save has no effect on healing the wound. Lingering Injury The creatures speed on foot is reduced by 5 feet. It must make a DC 10 Constitution saving throw after using the Dash action or the Athletics or Acrobatics skill. If it fails the save, it falls prone. Scar Unless tied to the severity table the player can choose where the scar is and possible side effects. Adrenaline Instead of falling the creature stay standing with 0hp. It will stay conscious for it’s constitution mod in rounds. After this timer has expired the creature falls unconscious at the start of its turn in the stable condition. Another hit and the creature rolls a DC 10,15,20,25 Constitution save. If the creature fails, it is forced into the unconscious condition. Severity Table (1d20) 1 (Regenerate only) + Scar + Internal Injury or Bad Bleed + Festering Wound 2-3 (Heal spell of level 5 or higher) + Scar + Internal Injury or Bad Bleed 4-18 (heal spell of level 3 or higher) + Scar 19-20 (any heal spell) + Scar Note: If the creature suffers a Scar, Festering wound or Internal Injury or Bleed, they do not add extra injuries as stated above. The healing spell only takes effect if the creature the spell is being used on is stable. The spell must specifically target each effect individually. Healing Potions can also be used to treat conditions. Each tier of healing potion can heal its respective tier on the severity table when it is appropriate (Healing potions can’t re-attach missing body parts).
1473411373

Edited 1473411428
Tetsuo
Forum Champion
So, you have a few options. You could make something simple like: &{template:default} {{name=Injury Chart }} {{Determine Injury=[[1d20]]}} {{Injury Die=[[1d20]]}} {{Severity Die=[[1d20]]}} You could also make a few table with the various results and do something like. &{template:default} {{name=Injury Chart }} {{Injury=[[ 1t[injury] ]]}} {{Injury Die=[[1d20]]}} {{Severity=[[ 1t[severity] ]]}} If you want to get more complicated, you could bring in one or 2 api scripts as well.
1473430240

Edited 1473430260
I wish I could program. I would make a pretty awesome API script. I used the table option you presented. I figured it out. Thanks for the help.
1473430424
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
No programming necessary, I'd recommend using Aaron's recursive tables probably.
1473447278
Tetsuo
Forum Champion
You could also pretty easily figure something out using the power cards script and a few if/then atatelents
Wooooooosh That's the sound of what you guys are talking about flying over my head. Lol
1473463031
Tetsuo
Forum Champion
Power Cards is a community made API script that allows for certain things the normal roll20 macros dont allow for (I use them for If/then statements IE: If roll >= 16 Do x, otherwise do y) If you need help setting anything up, feel free to PM me, or (I'm sure) any of the other useful people that frequent the forms, and one of us can get you up and running.
Yeah I think this is rather beyond my abilites. :) It's okay.
1473472432
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Take a look at  RecursiveTables  (allows rollable table results to roll inline rolls in the table result, including further table results). It's easy to use as you just enter an inline roll in the table entry and then call the table with !rt [[1t[tableName] ]].
1473474602
The Aaron
Pro
API Scripter
(and there is an awesome new version that Scott C. wrote, which will be available as soon as some other lazy programmer peer reviews it...  sorry!)
1473476062
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
lol, wasn't gonna mention that. But yeah, I'm excited for it. And that reminds me, I had an idea for the script loading. I'll hit you up outside of the forums about it.