Search found 4 matches

by ali0sha
Fri Jul 03, 2009 10:28 am
Forum: Howtos, FAQs and Tips & Tricks
Topic: Combining tables
Replies: 2
Views: 5083

Combining tables

I wrote a small function that takes two tables, list1 and list2 and combines them. I use it for concatenating lists of enemies. Is there an easier way to do this? function combinelists(list1 , list2) index = {} for i = 1, #list2 do for v = 1, #list1 do if list2[i] == list1[v] then table.insert(index...
by ali0sha
Thu Jul 02, 2009 8:38 am
Forum: Howtos, FAQs and Tips & Tricks
Topic: Print out all named colors
Replies: 10
Views: 19294

Re: Print out all named colors

Try this, it discards all colours including capitals (because they're duplicates of colours containing _) and prints them in nice columns. Change the if wrap==5 to some other value to change how many columns on the page. Oh, and please, if you can make this shorter and nicer, post a reply. Edit: I r...
by ali0sha
Wed Jul 01, 2009 8:25 pm
Forum: Help Forum
Topic: Matching brackets in triggers
Replies: 2
Views: 3562

Re: Matching brackets in triggers

Turns out I hadn't activated the trigger group *facepalm*
by ali0sha
Wed Jul 01, 2009 6:53 pm
Forum: Help Forum
Topic: Matching brackets in triggers
Replies: 2
Views: 3562

Matching brackets in triggers

I'm trying to create a trigger to match channels, such as: '(Novitiates):' or '(Cyrene):' but the following regex doesn't seem to be firing:

Code: Select all

\((.*)\)\:
Any ideas?