SHARE
TWEET

Monstrous Skill Macro

Slatefield Feb 16th, 2019 (edited) 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [h: proficiency=3]
  2. [h: input(      
  3. "Skill | Strength,Dexterity,Constitution,Intelligence,Wisdom,Charisma | Ability Check | LIST",
  4. "Disadv | 0 | Disadvantage? | CHECK",
  5. "Adv | 0 | Advantage? | CHECK")]
  6. [if(Disadv+Adv==1), CODE:
  7. {
  8. [h:result=if(Disadv==1, min(1d20, 1d20), max(1d20, 1d20))]
  9. [h:attack=if(Disadv==1, "(Disadvantage)", "(Advantage)")]
  10. };
  11. {
  12. [h:result=1d20]
  13. [h:attack=""]
  14. };]
  15. [h, switch (Skill), CODE:
  16. case 0:
  17.   {
  18.   [h: modifier=0]
  19.   [h: input("type | Saving Throws,Athletics,Strength | Ability Check | LIST")]
  20.   [h, switch(type):
  21.     case 0: prof=1;
  22.     case 1: prof=0;
  23.     case 2: prof=0]
  24.   [h, switch(type):
  25.     case 0: stype="Saving Throw (Strength)";
  26.     case 1: stype="Athletics";
  27.     case 2: stype="Generic (Strength)"]
  28.   };
  29. case 1:
  30.   {
  31.   [h: modifier=4]
  32.   [h: input("type | Saving Throws,Acrobatics,Sleight of Hand,Stealth,Dexterity | Ability Check | LIST")]
  33.   [h, switch(type):
  34.     case 0: prof=1;
  35.     case 1: prof=1;
  36.     case 2: prof=0;
  37.     case 3: prof=1;
  38.     case 4: prof=0]
  39.   [h, switch(type):
  40.     case 0: stype="Saving Throw (Dexterity)";
  41.     case 1: stype="Acrobatics";
  42.     case 2: stype="Sleight of Hand";
  43.     case 3: stype="Stealth";
  44.     case 4: stype="Generic (Dexterity)"]
  45.   };
  46. case 2:
  47.   {
  48.   [h: modifier=1]
  49.   [h: input("type | Saving Throws,Constitution | Ability Check | LIST")]
  50.   [h, switch(type):
  51.     case 0: prof=0;
  52.     case 1: prof=0]
  53.   [h, switch(type):
  54.     case 0: stype="Saving Throw (Constitution)";
  55.     case 1: stype="Generic (Constitution)"]
  56.   };
  57. case 3:
  58.   {
  59.   [h: modifier=-1]
  60.   [h: input("type | Saving Throws,Arcana,History,Investigation,Nature,Religion,Intelligence | Ability Check | LIST")]
  61.   [h, switch(type):
  62.     case 0: prof=0;
  63.     case 1: prof=0;
  64.     case 2: prof=0;
  65.     case 3: prof=0;
  66.     case 4: prof=0;
  67.     case 5: prof=0;
  68.     case 6: prof=0]
  69.   [h, switch(type):
  70.     case 0: stype="Saving Throw (Intelligence)";
  71.     case 1: stype="Arcana";
  72.     case 2: stype="History";
  73.     case 3: stype="Investigation";
  74.     case 4: stype="Nature";
  75.     case 5: stype="Religion";
  76.     case 6: stype="Generic (Intelligence)"]
  77.   };
  78. case 4:
  79.   {
  80.   [h: modifier=3]
  81.   [h: input("type | Saving Throws,Animal Handling,Insight,Medicine,Perception,Survival,Wisdom | Ability Check | LIST")]
  82.   [h, switch(type):
  83.     case 0: prof=0;
  84.     case 1: prof=1;
  85.     case 2: prof=1;
  86.     case 3: prof=0;
  87.     case 4: prof=1;
  88.     case 5: prof=0;
  89.     case 6: prof=0]
  90.   [h, switch(type):
  91.     case 0: stype="Saving Throw (Wisdom)";
  92.     case 1: stype="Animal Handling";
  93.     case 2: stype="Insight";
  94.     case 3: stype="Medicine";
  95.     case 4: stype="Perception";
  96.     case 5: stype="Survival";
  97.     case 6: stype="Generic (Wisdom)"]
  98.   };
  99. case 5:
  100.   {
  101.   [h: modifier=1]
  102.   [h: input("type | Saving Throws,Deception,Intimidation,Performance,Persuasion,Charisma | Ability Check | LIST")]
  103.   [h, switch(type):
  104.     case 0: prof=0;
  105.     case 1: prof=0;
  106.     case 2: prof=0;
  107.     case 3: prof=0;
  108.     case 4: prof=1;
  109.     case 5: prof=0]
  110.   [h, switch(type):
  111.     case 0: stype="Saving Throw (Charisma)";
  112.     case 1: stype="Deception";
  113.     case 2: stype="Intimidation";
  114.     case 3: stype="Performance";
  115.     case 4: stype="Persuasion";
  116.     case 5: stype="Generic (Charisma)"]
  117.   };
  118. ]
  119. <table border="0">
  120.   <tr bgcolor="#0099CC">
  121.     <table width="100%">
  122.       <tr>
  123.         <td style="padding:0px 5px;">
  124.           <span style="color:white"><b>Ability Check [r:Attack]</b></font>
  125.         </td>
  126.       </tr>
  127.     </table>
  128.   </tr>
  129.   <tr>
  130.     <td>
  131. <b>[r:stype]:</b> [t:result+floor(proficiency*prof)+modifier]
  132.     </td>
  133.   </tr>
  134. </table>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top