SHARE
TWEET

Easy Dragon Talisman Colours

a guest Feb 19th, 2014 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -----  TRIGGER   --------------------
  2.  
  3. Pattern:
  4. 0:   ^\s+(\d).*(\d+)\s+Dragon\s+(\w+)$
  5. 1:   ^\s+\w+dragonpieces$
  6. (multi-line deselected)
  7.  
  8.  
  9. Trigger Code:
  10.  
  11. if string.ends(matches[1],"dragonpieces") then deleteLine()
  12.  
  13. elseif matches[4] == "blackdragonsac" or matches[4] == "bluedragonsomething" or
  14.         matches[4] == "golddragonstem" or matches[4] == "silverdragonlarynx" or
  15.         matches[4] == "blackdragonsac" or matches[4] == "bluedragonlung" or
  16.         matches[4] == "reddragonbelly" or matches[4] == "greendragonsac" or
  17.         matches[4] == "golddragontooth" or matches[4] == "bluedragonscale"
  18. then
  19.         selectString(matches[1],1)
  20.         setFgColor(255,255,255)
  21. else
  22.         if     string.starts(matches[4],"blackdragon") then
  23.                         selectString(matches[1],1)
  24.                         setFgColor(115,115,115)
  25.         elseif string.starts(matches[4],"bluedragon") then
  26.                         selectString(matches[1],1)
  27.                         setFgColor(200,200,255)
  28.         elseif string.starts(matches[4],"greendragon") then
  29.                         selectString(matches[1],1)
  30.                         setFgColor(170,230,170)
  31.         elseif string.starts(matches[4],"golddragon") then
  32.                         selectString(matches[1],1)
  33.                         setFgColor(230,230,130)
  34.         elseif string.starts(matches[4],"reddragon") then
  35.                         selectString(matches[1],1)
  36.                         setFgColor(230,170,170)
  37.         elseif string.starts(matches[4],"bluedragon") then
  38.                         selectString(matches[1],1)
  39.                         setFgColor(200,200,255)
  40.         elseif string.starts(matches[4],"silverdragon") then
  41.                         selectString(matches[1],1)
  42.                         setFgColor(200,200,200)
  43.         end
  44. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top