Alright, Im trying to add triggers via code and I tried the example for the command (on this site) and it worked, and then I tried my own (it follows) and it didnt. As far as I know, this should add the trigger, and then it should be a normal trigger, in the trigger list, etc.
I tried that with, and without the Ex (and the last two arguements respectivly), as well as tried the Flags and summated numbers (40) the words, and 32 + 8.
I originally tried to do this via the command line (with my script prefix), and then tried to do a world paste (which I found out didnt parse, just paste) and then tried putting it into a sub in my script file. Lastly I tried the immediate window.
So In otherwords, I tried, to my knowledge, everything.. and still dont know what the problem is.
One thing I thought it might be is the fact that Its a regular expression, and some of the characters are being absorbed by VBScript, and then ending the line, or whatnot, but I would assume if that was the case, I'd get an error, or something.
(edited to make it two lines and not scroll, if you just delete the return, youll get the one line command)
Any help would be appreciated.
World.AddTriggerEx "ScoreLine1", "^Name\: ([A-Za-z]+)[ ]+Sex\: (male|female|sexless)$",
"", eKeepEvaluating or eTriggerRegularExpression, 9, 0, "", "Hook_Score1", 0, 100
I tried that with, and without the Ex (and the last two arguements respectivly), as well as tried the Flags and summated numbers (40) the words, and 32 + 8.
I originally tried to do this via the command line (with my script prefix), and then tried to do a world paste (which I found out didnt parse, just paste) and then tried putting it into a sub in my script file. Lastly I tried the immediate window.
So In otherwords, I tried, to my knowledge, everything.. and still dont know what the problem is.
One thing I thought it might be is the fact that Its a regular expression, and some of the characters are being absorbed by VBScript, and then ending the line, or whatnot, but I would assume if that was the case, I'd get an error, or something.
(edited to make it two lines and not scroll, if you just delete the return, youll get the one line command)
Any help would be appreciated.