Revision 4d2b7a46
Added by Vincent Le Goff over 4 years ago
src/scripting/trigger.py | ||
---|---|---|
66 | 66 |
# The '*' sign will be replaced by a group |
67 | 67 |
reaction = reaction.replace("\\*", "(.*?)") |
68 | 68 |
reaction = "^" + reaction + "$" |
69 |
print "test", reaction |
|
69 | 70 |
|
70 | 71 |
return re.compile(reaction, re.IGNORECASE) |
71 | 72 |
|
... | ... | |
76 | 77 |
|
77 | 78 |
def execute(self): |
78 | 79 |
"""Execute the trigger.""" |
80 |
print "execute the trigger", self |
|
79 | 81 |
self.sharp_engine.execute(self.action) |
Also available in: Unified diff
Replace pygame by winsound to play sounds (faster although not portable)