Advertisement
SneakySquid

Tragic Backstory Generator

Sep 30th, 2018
961
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.93 KB | None | 0 0
  1. -- https://imgur.com/gallery/bYdBtnw
  2.  
  3. local Storylines = {
  4.     {
  5.         [0] = "I grew up happily in a",
  6.         "quiet farming village",
  7.         "prosperous merchant town",
  8.         "university dedicated to the arcane arts",
  9.         "close knit band of tavelling performers",
  10.         "colony of nomadic mushroom herders",
  11.         "surprisingly cosy network of caves",
  12.     },
  13.  
  14.     {
  15.         [0] = "until one day a",
  16.         "marauding band of goblins",
  17.         "ancient, powerful dragon",
  18.         "corrupt local noble and his cronies",
  19.         "vengeful demi-god that my people mistakenly wronged",
  20.         "grumpy turtle the size of an island",
  21.         "sentient cutlery set possessed by an eldritch evil",
  22.     },
  23.  
  24.     {
  25.         [0] = "",
  26.         "stole an irreplacable heirloom from",
  27.         "brutally murdered",
  28.         "insulted the honour of",
  29.         "destroyed the livelihood of",
  30.         "kidnapped, and never returned",
  31.         "mildly inconvenienced",
  32.     },
  33.  
  34.     {
  35.         [0] = "my",
  36.         "father.",
  37.         "entire family.",
  38.         "entire community.",
  39.         "childhood mentor.",
  40.         "closest friend.",
  41.         "pet hamster, Nostradamus.",
  42.     },
  43.  
  44.     {
  45.         [0] = "Now I",
  46.         "wander the countryside",
  47.         "fight injustice whenever I find it",
  48.         "train my mind and body",
  49.         "meditate for twenty hours a day",
  50.         "am getting some much needed 'me time'",
  51.         "try to join any band of adventurers that will take me, good or evil",
  52.     },
  53.  
  54.     {
  55.         [0] = "until I can",
  56.         "avenge my loved ones.",
  57.         "prove myself to all those who doubted me.",
  58.         "finally be at peace with my tragic past.",
  59.         "forge a new name, and a new legend for myself.",
  60.         "learn to let bygones be bygones.",
  61.         "become powerful enough that I can start giving other people tragic backstories.",
  62.     },
  63. }
  64.  
  65. local function GenerateTragicBackstory()
  66.     local TragicBackstory™ = {}
  67.  
  68.     for i, part in ipairs(Storylines) do
  69.         if (part[0] and #part[0] > 0) then
  70.             table.insert(TragicBackstory™, part[0])
  71.         end
  72.  
  73.         table.insert(TragicBackstory™, part[math.random(#part)])
  74.     end
  75.  
  76.     return table.concat(TragicBackstory™, " ")
  77. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement