Advertisement
Guest User

Affliction Colours

a guest
Feb 19th, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.65 KB | None | 0 0
  1. --  This function returns a string, and is meant to be used with the native hecho(str) function.
  2. --  Example use:  Listing your afflictions, abbreviated & colored.
  3. --
  4. --    cecho("\n<white>Your afflictions: ")
  5. --    for x, aff in ipairs(afflictions) do
  6. --          hecho(vc(aff).. " ")
  7. --    end
  8. --
  9. --  Use http://widget.colorcodehex.com/color-picker.html to pick some new colors, and just use
  10. --  the standard hecho() format:  |cRRGGBB at the beginning of the string in quotations.
  11.  
  12. function vc(aff)
  13.     if aff == "paralysis" then return "|cff0033par" end
  14.     if aff == "asthma" then return "|cFF8000ast" end
  15.     if aff == "slickness" then return "|c33cc00slic" end
  16.     if aff == "anorexia" then return "|cff99ccano" end
  17.     if aff == "impatience" then return "|cffff00imp" end
  18.     if aff == "stupidity" then return "|ccccc33stu" end
  19.     if aff == "relapsing" then return "|cffffffrelapsing" end
  20.     if aff == "darkshade" then return "|c0066ffdark" end
  21.     if aff == "confusion" then return "|c99ffffconf" end
  22.     if aff == "weariness" then return "|cFF8000weary" end
  23.     if aff == "ablaze" then return "|cBDBDBDablz" end
  24.     if aff == "addiction" then return "|cBDBDBDadd" end
  25.     if aff == "agoraphobia" then return "|cBDBDBDago" end
  26.     if aff == "claustrophobia" then return "|cBDBDBDclau" end
  27.     if aff == "clumsiness" then return "|cFF8000clum" end
  28.     if aff == "disloyalty" then return "|cBDBDBDdisl" end
  29.     if aff == "dizziness" then return "|cBDBDBDdiz" end
  30.     if aff == "epilepsy" then return "|cBDBDBDepi" end
  31.     if aff == "generosity" then return "|cBDBDBDgen" end
  32.     if aff == "hallucinations" then return "|cBDBDBDhal" end
  33.     if aff == "haemophilia" then return "|cBDBDBDhaem" end
  34.     if aff == "hypochondria" then return "|cBDBDBDhypo" end
  35.     if aff == "hypersomnia" then return "|cBDBDBDhyp" end
  36.     if aff == "lethargy" then return "|cBDBDBDleth" end
  37.     if aff == "loneliness" then return "|cBDBDBDlone" end
  38.     if aff == "masochism" then return "|cBDBDBDmaso" end
  39.     if aff == "illness" then return "|cBDBDBDill" end
  40.     if aff == "paranoia" then return "|cBDBDBDprna" end
  41.     if aff == "recklessness" then return "|cBDBDBDreck" end
  42.     if aff == "sensitivity" then return "|cBDBDBDsens" end
  43.     if aff == "shyness" then return "|cBDBDBDshy" end
  44.     if aff == "vertigo" then return "|cBDBDBDvert" end
  45.     if aff == "voyria" then return "|cffffffvoy" end
  46.     if aff == "webbed" then return "|cffffffWEBBED" end
  47.     if aff == "transfixed" then return "|cffffffTRANSFIXED" end
  48.     if aff == "singlecrippledarm" then return "|cffffffarm" end
  49.     if aff == "twocrippledarms" then return "|cffffffarm" end
  50.     if aff == "singlecrippledleg" then return "|cffffffleg" end
  51.     if aff == "twocrippledlegs" then return "|cffffffleg" end
  52.  
  53.  
  54.     return aff
  55. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement