Advertisement
Guest User

Untitled

a guest
May 5th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. if target_cstyle == nil then
  2. cstyle = "Unknown"
  3. else
  4.  
  5. cstyle = GetVariable ("msdp_opponent_combat_style")
  6. for cstyle, text in string.gmatch (cstyle, "`([%d%p])([^`]+)") do -- regex the color code + number/punctuation then all following letters that are not backticks
  7. color_name = ar_color_to_rgb(colour)
  8. WindowText(target_window,'f','Combat Style: '..cstyle,0,123,0,0,color_name,0)
  9.  
  10.  
  11. end -- for
  12.  
  13.  
  14. end -- if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement