I have a trigger calling a python script. The script works when the trigger regex is "hai", but doesn't when it's "Hunger".
haiTrigger - http://img532.imageshack.us/img532/7906/haitrigger.jpg
haiOutput - http://img4.imageshack.us/img4/1215/haioutput.jpg
hungerTrigger - http://img139.imageshack.us/img139/646/hungertrigger.jpg
hungerOutput - http://img59.imageshack.us/img59/8051/hungeroutput.jpg
As you can see the triggers are exactly the same except for the regex, but one gives an error.
The script is,
The scripts file is named "pythonScripts.py", it does not have the .pys extension used in the example file.
I'm using python 2.6 and I installed the script engine using pywin32-214.win32-py2.6.exe.
Using Mushclient 4.33, windows xp 32 pro.
I've done lots of reading and can't find an answer, help is appreciated.
haiTrigger - http://img532.imageshack.us/img532/7906/haitrigger.jpg
haiOutput - http://img4.imageshack.us/img4/1215/haioutput.jpg
hungerTrigger - http://img139.imageshack.us/img139/646/hungertrigger.jpg
hungerOutput - http://img59.imageshack.us/img59/8051/hungeroutput.jpg
As you can see the triggers are exactly the same except for the regex, but one gives an error.
The script is,
def OnStats (strTriggerName, trig_line, wildcards):
world.Note ("hi")
The scripts file is named "pythonScripts.py", it does not have the .pys extension used in the example file.
I'm using python 2.6 and I installed the script engine using pywin32-214.win32-py2.6.exe.
Using Mushclient 4.33, windows xp 32 pro.
I've done lots of reading and can't find an answer, help is appreciated.