Question: How would I go about this in MatLab Write a script to simulate a fight with a medium red dragon in Dungeons and Dragons (DnD):
Write a script to simulate a fight with a medium red dragon in Dungeons and Dragons (DnD): . We want to attempt to attack the monster while it still has health . We must first roll to hit roll a 20 sided die and add a +5 modifier. If this sum is 17 or greater we hit the dragon. If we hit the monster, we roll a 12 sided die to deal damage. We get a bonus of +3 to every attack . The dragon starts with 75 health Store the damage of each hit in a vector To simulate a dice roll, use the built in function randi(a, b]) which produces a random integer image from dndbeyond.com between the values of a and b
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
