Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if target_cstyle == nil then
- cstyle = "Unknown"
- else
- cstyle = GetVariable ("msdp_opponent_combat_style")
- for cstyle, text in string.gmatch (cstyle, "`([%d%p])([^`]+)") do -- regex the color code + number/punctuation then all following letters that are not backticks
- color_name = ar_color_to_rgb(colour)
- WindowText(target_window,'f','Combat Style: '..cstyle,0,123,0,0,color_name,0)
- end -- for
- end -- if
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement