Advertisement
Guest User

Untitled

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