Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.88 KB | None | 0 0
  1. function AffDiag()
  2.     aff = {}
  3.     Aff = {}
  4.     for k, v in ipairs(gmcp.Char.Afflictions.List) do
  5.         if gmcp.Char.Afflictions.List[k]["name"] ~= "blindness" and gmcp.Char.Afflictions.List[k]["name"] ~= "deafness" and gmcp.Char.Afflictions.List[k]["name"] ~= "insomnia" then
  6.       if table.contains(variedAffnames, gmcp.Char.Afflictions.List[k]["name"]) then
  7.         Aff[variedAffNames[gmcp.Char.Afflictions.List[k]["name"]]] = true
  8.       else
  9.              aff[gmcp.Char.Afflictions.List[k]["name"]] = true
  10.              Aff[gmcp.Char.Afflictions.List[k]["name"]] = true
  11.       end
  12.     end
  13.     end
  14. end
  15.    
  16.  
  17. function DefList()
  18.     Def = {}
  19.     for k, v in ipairs(gmcp.Char.Defences.List) do
  20.         Def[gmcp.Char.Defences.List[k]["name"]] = true
  21.     end
  22. end
  23.  
  24. variedAffNames = {
  25.  
  26.     ["burn1"] = "burning (1)",
  27.   ["burn2"] = "burning (2)",
  28.   ["burn3"] = "burning (3)",
  29.   ["burn4"] = "burning (4)",
  30.   ["burn5"] = "burning (5)",
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement