Advertisement
MEI-BoatRider

DND5-5 sheet thingy

Feb 26th, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.98 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang = "en-US">
  3.  
  4.  
  5. <body>
  6.   <h1>
  7.     DND5 Quick Sheet
  8.   </h1>
  9.   <l><font size = "2">
  10.     this is for a quick C&P sheet, enter the details
  11.    in the former prompts and you'll have it on the page,
  12.    reload the page to change items. Please message me on
  13.  <a href="https://discordapp.com/">Discord</a>
  14.    if you see or have ANY problems. (@---)
  15.    </font></l>
  16. <small>
  17. <script language = "JavaScript">
  18.  try{
  19. var b = []; // the dialogue
  20. var c = []; // prompts and inputs
  21. var d = "<br>/#:";
  22. var e = confirm("Click ok if you wish to make a sheet, clicking elsewhere will cancel this.")
  23.     if(e == true) {
  24.         for (var x = 0; x < 23; ++x) { //plus one
  25.            switch (x) {
  26.                case 0:
  27.                    b[x] = "Username: ";
  28.                    c[x] = "What username?";
  29.                    break;
  30.                case 1:
  31.                    b[x] = "Name: "+d;
  32.                    c[x] = "Name of your character?";
  33.                    break;
  34.                case 2:
  35.                    b[x] = "Race: ";
  36.                    c[x] = "Their race?";
  37.                    break;
  38.                case 3:
  39.                    b[x] = "Level: ";
  40.                    c[x] = "Level? 1 to 20.";
  41.                    break;
  42.                case 4:
  43.                    b[x] = "Exp: ";
  44.                    c[x] = "Experience total?";
  45.                    break;
  46.                case 5:
  47.                    b[x] = "Class: ";
  48.                    c[x] = "Their class?";
  49.                    break;
  50.                case 6:
  51.                    b[x] = "Subclasses: ";
  52.                    c[x] = "If any, Subclass / Subclasses?";
  53.                    break;
  54.                case 7:
  55.                    b[x] = "Alignment: ";
  56.                    c[x] = "Their alignment?";
  57.                    break;
  58.                case 8:
  59.                    b[x] = "Background: "+d;
  60.                    c[x] = "background?";
  61.                    break;
  62.                case 9:
  63.                    b[x] = "Hit dice: ";
  64.                    c[x] = "Their hit dice?";
  65.                    break;
  66.                case 10:
  67.                    b[x] = "Armor: ";
  68.                    c[x] = "If any, what armor?";
  69.                    break;
  70.                case 11:
  71.                    b[x] = "SPEED: ";
  72.                    c[x] = "Their speed?";
  73.                    break;  
  74.                case 12:
  75.                    b[x] = "HP: ";
  76.                    c[x] = "Their HP?";
  77.                    break;
  78.                case 13:
  79.                    b[x] = "AC: "+d;
  80.                    c[x] = "Their AC total.";
  81.                    break;
  82.                case 14:
  83.                    b[x] = "Strength: ";
  84.                    c[x] = "Strength,  4d6dl.";
  85.                    break;
  86.                case 15:
  87.                    b[x] = "Dexterity: ";
  88.                    c[x] = "Dexterity?";
  89.                    break;
  90.                case 16:
  91.                    b[x] = "Constitution: ";
  92.                    c[x] = "Constitution?";
  93.                    break;
  94.                case 17:
  95.                    b[x] = "Intelligence: ";
  96.                    c[x] = "Intelligence?";
  97.                    break;
  98.                case 18:
  99.                    b[x] = "Wisdom: ";
  100.                    c[x] = "Wisdom?";
  101.                    break;
  102.                case 19:
  103.                    b[x] = "Charisma: "+d;
  104.                    c[x] = "Charisma?";
  105.                    break;
  106.                case 20:
  107.                    b[x] = "Inventory: ";
  108.                    c[x] = "Items held?";
  109.                    break;
  110.                case 21:
  111.                    b[x] = "Weapons: ";
  112.                    c[x] = "Wepons held?";
  113.                    break;
  114.                case 22:
  115.                    b[x] = "proficiency: ";
  116.                    c[x] = "Your Proficiencys? List bonus prof. tool prof. skill prof. weapons prof. armor prof.";
  117.                    break;
  118.            }
  119.        c[x] = prompt(c[x]);
  120.        if(c[x] == null) continue;
  121.        if(c[x].length > 1256) throw "Long String Error. [CE1]<br>";
  122.         document.write("/#:", b[x]+c[x], "<br>");
  123.         }
  124.     }  
  125. }
  126. catch (err) {
  127.   document.write("Attempt again. <em>[[UNKOWN ERROR] CE0]</em><br>"+err);
  128. }
  129. </script>
  130.    
  131.   </small> <ul style="list-style-type:square;">
  132.    
  133.     <l><b><font size = "2">Cedits</font><br></b></l>
  134.     <l><font size = "1">>MEI Programmed This HTML Page<br></l>
  135.     <l>[---] Inspired This</font><br></l>
  136.     <l><b><font size = "2">Resources</font></b><br></l>
  137.     <l><a href "https://stackoverflow.com/">stackoverflow.com</a><br></l>
  138.     <l><a href "https://www.dndbeyond.com/">dndbeyond.com</a><br></l>
  139.   </ul>
  140.  
  141.   <p><font size = "1">
  142.     Apps Used --- anWriter free - Js Run - duckduckgo --- on android<br>
  143.     [305[111]]<br>
  144.     THANK YOU FOR YOUR USAGE OF THIS <br>
  145.     <br>
  146.     DMY 8-2-2020 -- TILL NOW AND FOREVER
  147.     </font>
  148.   <p>
  149. </body>
  150. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement