matthileo

Untitled

Jun 22nd, 2016
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.03 KB | None | 0 0
  1. ^^ user.setSkills = function () {
  2. user.properText = {dex: "Dexterity", str: "Strength", con: "Constitution", int: "Intelligence", wis: "Wisdom", cha: "Charisma", death: "Death"}
  3.  
  4. user.init = function(){args = ["dex", "-l", "Initiative"]; args=args.concat(Array.from(arguments)); var result = check.apply(this,args); return result;}
  5. user.initiative = user.init;
  6.  
  7. setprofs1();
  8. setprofs2();
  9. setprofs3();
  10.  
  11. echo("Character " + user.character.name + " has been set up...");
  12. }
  13.  
  14. ^^ user.setprofs1 = function() {
  15. user.acrobatics = function(){args = ["dex", "exp", "-l", "Acrobatics"]; args=args.concat(Array.from(arguments)); var result = check.apply(this,args); return result;}
  16. user.animal = function(){args = ["wis", "-l", "Animal Handling"]; args=args.concat(Array.from(arguments)); var result = check.apply(this,args); return result;}
  17. user.arcana = function(){args = ["int", "prof", "-l", "Arcana"]; args=args.concat(Array.from(arguments)); var result = check.apply(this,args); return result;}
  18. user.athletics = function(){args = ["str", "exp", "-l", "Athletics"]; args=args.concat(Array.from(arguments)); var result = check.apply(this,args); return result;}
  19. user.deception = function(){args = ["cha", "prof", "-l", "Deception"]; args=args.concat(Array.from(arguments)); var result = check.apply(this,args); return result;}
  20. user.history = function(){args = ["int", "-l", "History"]; args=args.concat(Array.from(arguments)); var result = check.apply(this,args); return result;}
  21. user.insight = function(){args = ["wis", "prof", "-l", "Insight"]; args=args.concat(Array.from(arguments)); var result = check.apply(this,args); return result;}
  22. user.intimidation = function(){args = ["cha", "-l", "Intimidation"]; args=args.concat(Array.from(arguments)); var result = check.apply(this,args); return result;}
  23. user.investigation = function(){args = ["int", "prof", "-l", "Investigation"]; args=args.concat(Array.from(arguments)); var result = check.apply(this,args); return result;}
  24. user.medicine = function(){args = ["wis", "-l", "Medicine"]; args=args.concat(Array.from(arguments)); var result = check.apply(this,args); return result;}
  25. user.nature = function(){args = ["int", "-l", "Nature"]; args=args.concat(Array.from(arguments)); var result = check.apply(this,args); return result;}
  26.  
  27. }
  28.  
  29. ^^ user.setprofs2 = function () {
  30. user.perception = function(){args = ["wis", "prof", "-l", "Perception"]; args=args.concat(Array.from(arguments)); var result = check.apply(this,args); return result;}
  31. user.performance = function(){args = ["cha", "-l", "Performance"]; args=args.concat(Array.from(arguments)); var result = check.apply(this,args); return result;}
  32. user.persuasion = function(){args = ["cha", "prof", "-l", "Persuasion"]; args=args.concat(Array.from(arguments)); var result = check.apply(this,args); return result;}
  33. user.religion = function(){args = ["int", "-l", "Religion"]; args=args.concat(Array.from(arguments)); var result = check.apply(this,args); return result;}
  34. user.sleight = function(){args = ["dex", "-l", "Sleight of Hand"]; args=args.concat(Array.from(arguments)); var result = check.apply(this,args); return result;}
  35. user.stealth = function()
  36. {
  37. args = ["dex","prof", "-l", "Stealth"];
  38. args=args.concat(Array.from(arguments));
  39. var result = check.apply(this,args);
  40.  
  41. args = ["-stealth",result.toString(), "silent"];
  42. args=args.concat(Array.from(arguments))
  43. status.apply(this,args);
  44. return result;
  45. }
  46. user.survival = function(){args = ["wis", "-l", "Survival"]; args=args.concat(Array.from(arguments)); var result = check.apply(this,args); return result;}
  47. }
  48.  
  49. ^^ user.setprofs3 = function () {
  50. user.thief = function(){args = ["dex","prof", "-l", "Thieves' Tools","-phrase","\"Who am I and how did I get in here? I'm a locksmith. And, I'm a locksmith.\""]; args=args.concat(Array.from(arguments)); var result = check.apply(this,args); return result;}
  51. user.poisonerskit = function(){args = ["int", "prof", "-l", "Poisoner's Kit"]; args=args.concat(Array.from(arguments)); var result = check.apply(this,args); return result;}
  52. }
Advertisement
Add Comment
Please, Sign In to add comment