daily pastebin goal
72%
SHARE
TWEET

Kibbles Warlord Noble MPMB Script Beta

Sensei_Z Mar 23rd, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*  -INFORMATION-
  2.     Subject:    Subclass (a.k.a. Archetype)
  3.     Effect:     This is the syntax for adding a new subclass/archetype to a class that is defined in the sheet, or to a class you made yourself
  4.     Sheet:      v12.999 (2017-11-29)
  5. */
  6.  
  7. var iFileName = "Warlord Noble.js"; // Optional; This is how the file will be named in the sheet if you import it as a file and not copy-paste its content. Only the first occurrence of this variable will be used
  8. RequiredSheetVersion(12.999); // Optional; This is the minimum required version number of the sheet for the script to work. If the sheet being used to import the script is of an earlier version, the user will be warned
  9.  
  10. AddSubClass( // this is the function you will be calling to add the variant
  11.  
  12.     "warlord (kibbles)", // Parent Class object name; Required; This has to be the exact name of the class of which you are adding a subclass. Look for the name of the class in the ClassList variable. For the default 12 classes these names are: "barbarian", "bard", "cleric", "druid", "fighter", "monk", "paladin", "ranger", "rogue", "sorcerer", "warlock", and "wizard"
  13.  
  14.     "warlord-noble", // Object name; Required; The name the entry in the ClassSubList will have. This can be anything, it is just something that the sheet uses to reference the new entry and it will never be printed anywhere
  15.  
  16.     { // don't forget this opening bracket
  17.  
  18.         regExpSearch : /noble/i, //required; regular expression of what to look for (i.e. now it looks for any entry that has both the words "special" and "me" in it, disregarding capitalization). If this looks too complicated, just write: /specialme/i
  19.  
  20.         subname : "Noble", //required; the name of the subclass
  21.  
  22.         source : ["HB", 0], //required; the source and the page number. "HB" stands for homebrew. See the "Complete SourceList" for an overview of sources that are already defined. Or define a new source using the "Homebrew Syntax - SourceList.js". // This can be an array of arrays to indicate the things appears in multiple sources. For example, if something appears on page 7 of the Elemental Evil Player's Companion and on page 115 of the Sword Coast Adventure Guide, use the following: [["E", 7], ["S", 115]]
  23.  
  24.         // after defining the above three, you don't need to define anything more, but you can. Defining more stuff will overwrite the entries as they are given in the ClassList. So if you do not need something to be different than the basics of the class (for example, you subclass uses the same spellcasting ability), then you don't need to define it again.
  25.         // For the syntax of how to define more stuff, look at the ClassList (see "Homebrew Syntax - ClassList.js").
  26.         abilitySave : 6,
  27.         features : { //unlike the other entries, "features" will not delete all the features from the ClassList, but will add to the features in the ClassList. For this to work properly, the feature object has to be named "subclassfeatureX" and not something appropriate for the feature. The below are the features of the purple Dragon Knight
  28.  
  29.             "subclassfeature1" : { // has to start with "subclassfeature" followed by a number. Note that the name has to be unique for this subclass, but it can be the same name as one of the features of the class in the ClassList variable. If you use the same name as a feature in the ClassList variable, it will be overwritten with this entry
  30.                 name : "Destined Leader",
  31.                 minlevel : 1,
  32.                 source : ["KT:WL", 6],
  33.                 description : "\n   " + "I gain proficiency with the persuasion skill. Additionally, I gain one extra leadership die at 3rd, 9th, and 15th level.",
  34.                 skills : ["Persuasion"],
  35.                 skillstxt : "\n\n " + toUni("Destined Leader") + ": Persuasion.",
  36.                 additional : ["", "", "d4", "d4", "d4", "d6", "d6", "d6", "d6", "d6", "d8", "d8", "d8", "d8", "d8", "d8", "d10", "d10", "d10", "d10"],
  37.                 usages : [0, 2, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 18, 19, 20, 21, 22, 23],
  38.                 recovery : "short rest"
  39.             },
  40.             "subclassfeature1.1" : {
  41.                 name : "Call to Arms",
  42.                 source : ["KT:WL", 6],
  43.                 minlevel : 1,
  44.                 description : "\n   " + "When I roll initiative I can inspire my loyal retainers within 60 feet, allowing them to add my Charisma modifier to their first attack before the end of their turn.",
  45.             },
  46.             "subclassfeature3" : {
  47.                 name : "Strike Them Down!",
  48.                 source : ["KT:WL", 6],
  49.                 minlevel : 3,
  50.                 description : "\n   " + "Creatures affected by my Overwhelming Mark or Rallying Mark take additional damage equal to my Charisma modifier. Additionally, a creature with CR or levels less than half my Warlord levels can choose to use my proficiency bonus plus my Charisma modifier for their attack modifier on any Attack granted by Battlefield Presence.",
  51.             },
  52.             "subclassfeature7" : {
  53.                 name : "Divine Right",
  54.                 source : ["KT:WL", 6],
  55.                 minlevel : 7,
  56.                 description : "\n   " + "I can add my Charisma modifier to my AC (to a maximum of +2) so long as I'm not wearing heavy armor or a shield. Additionally, I can expend Leadership Dice to cast command. The level of this spell is equal to the number of dice I expend.",
  57.                 //Currently is Cha rounded down, instead of Cha with a maximum of 2
  58.                 eval : "AddACMisc('Cha/2.1', 'Divine Right', 'Divine Right was gained from the Noble Presence', 'ACshield')",
  59.                 removeeval : "AddACMisc(0, 'Divine Right', 'Divine Right was gained from the Noble Presence')",
  60.                 additional : "1+ LD",
  61.             },
  62.             "subclassfeature11" : {
  63.                 name : "Imperative Strike",
  64.                 source : ["KT:WL", 6],
  65.                 minlevel : 11,
  66.                 description : "\n   " + "When I use my Battlefield Presence, the allied creature can use their reaction to make the attack granted immeadiately.",
  67.             },
  68.  
  69.             "subclassfeature11.1" : {
  70.                 name : "Redoubled Efforts",
  71.                 source : ["KT:WL", 6],
  72.                 minlevel : 11,
  73.                 description : "\n   " + "Allied creatures within 20 feet of me deal an extra 1d4 damage.",
  74.             },
  75.            
  76.             "subclassfeature15" : {
  77.                 name : "Chosen Companions",
  78.                 source : ["KT:WL", 6],
  79.                 minlevel : 15,
  80.                 description : "\n   " + "I can use leadership dice to cast bless or heroism without providing material components. The level of the spell is equal to the Leadership Dice spent.",
  81.                 additional : "1+ LD",
  82.                 spellcastingBonus : [{
  83.                     name : "Chosen Companions",
  84.                     spells : ["command"],
  85.                     selection : ["command"]
  86.                 }, {
  87.                     name : "Chosen Companions",
  88.                     spells : ["bless"],
  89.                     selection : ["bless"]
  90.                 }],
  91.             },
  92.            
  93.             "subclassfeature18" : {
  94.                 name : "Grand Decree",
  95.                 source : ["KT:WL", 6],
  96.                 minlevel : 18,
  97.                 description : "\n   " + "I gain the ability to cast command without expending Leadership Dice. When cast this way, the spell effects all creatures of my choice within range of the spell. Once I cast command in this way, I cannot do so again until I complete a long rest.",
  98.                 usages: 1,
  99.                 action: ["action",""],
  100.                 recovery: "long rest",
  101.             },
  102.         }
  103.     }
  104. );
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