Advertisement
Guest User

Cult autoroller

a guest
Nov 20th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.35 KB | None | 0 0
  1. function getCult() {
  2.  
  3. function d8() {
  4. return Math.floor(Math.random() * 8);
  5. }
  6.  
  7. var rolls = [d8(), d8(), d8(), d8()];
  8.  
  9. var type = ["Based around a single charismatic individual. ",
  10. "A mainline faith, pushed to extremes. ",
  11. "A new faith or mystery, perhaps from a far away land or inspired locally. ",
  12. "Hereditary in nature, passed along family lines or just a single gender. ",
  13. "Keeps to the old one(s). ",
  14. "A secret society, or another form of cryptic organization. ",
  15. "Decadent and listless, the members of this cult are in it for the thrill. ",
  16. "A doomsday cult, these folk believe that the world is ending soon, if not any day. "];
  17.  
  18.  
  19. var goal = ["A genuine exploration of their beliefs and inspirations. Note that this could still have negative connotations. ",
  20. "Summoning something, like a(n)...1) Aberration, 2) Fiend, 3) People from the Past/Future/Another Dimension, 4) Celestial. ",
  21. "Upheaval of the status quo or current government. ",
  22. "Engaging in some act unpalatable to the rest of society, like...1) Cannibalism, 2) Proscribed sexual acts, 3) Excessive drug or alcohol use, 4) Fight Club. ",
  23. "The death of some important figure, or more broadly, a faction. ",
  24. "The destruction of a rival faith, or any other faith. ",
  25. "Support and enrichment of it's members, whether that be through legal or illegal means. ",
  26. "Exploitation of it's members; roll again and ignore this result if rolled again. The second result is what they tell to new recruits. "];
  27.  
  28.  
  29.  
  30. var members = ["Ne'er do wells; criminals, beggars & transients. ",
  31. "The elite of society. ",
  32. "Working class folk, the salt of the earth. ",
  33. "All walks of life ",
  34. "Racially, culturally or ethnically exclusive. ",
  35. "A certain profession, such as fisher folk, merchants or farmers. ",
  36. "An isolated or otherwise insular folk. ",
  37. "Those who have been brainwashed, chosen or ensorcelled in some way. "];
  38.  
  39.  
  40. var operation = ["Out in the open. They are passive, and unwilling to commit violence - unless their faith requires it. ",
  41. "Openly, with hostility and great abandon. ",
  42. "Clandestinely, with a vicious streak towards any who stumble upon them. ",
  43. "Covertly, those who discover them are met with bribes, cajoling and religious arguments. ",
  44. "The cult attempts to masquerade as a more pedestrian organization. ",
  45. "They recruit openly locally, but their true home is somewhere far away and hidden. ",
  46. "Through a cellular structure, each cell is kept ignorant of what the other is doing, but there is a secret architect lurking somewhere. ",
  47. "Coordinated through dreams, they move seemingly without communication."];
  48.  
  49. var res = "This cult is " + type[rolls[0]] + "\nTheir goal is " + goal[rolls[1]] + "\nThey draw members from " + members[rolls[2]] + "\nThey operate " + operation[rolls[3]];
  50. return res;
  51. }
  52.  
  53. body = document.getElementsByClassName("post-body")[0];
  54. newCultButton = document.createElement("button");
  55. newCultButton.onclick = function() {
  56. var ncd = document.getElementById("newCultDiv");
  57. ncd.textContent = getCult();
  58. };
  59. newCultButton.textContent = "Create A Cult"
  60.  
  61. newCultDiv = document.createElement("div");
  62. newCultDiv.id = "newCultDiv";
  63. body.appendChild(newCultButton);
  64. body.appendChild(newCultDiv);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement