Greetings all,
I'm a beginner in all this (this being MUSHclient, plugins/scripting and Python). I was trying to rewrite a couple of the VBscripts in Python ... and most of them go well, but I failed with the OnPluginPartialLine ...
I wrote the following :
import re
def OnPluginPartialLine(sText):
world.InfoClear ()
world.Info ("Before Compile - ")
myregexp = re.compile("^(.*?)h\, (.*?)m\ ex(.*?)\-$")
world.Info ("After Compile ")
mymatch = myregexp.match(str(sText))
And wanted to build on that ...
However, I'm getting Type Mismatch errors for every
line the MUD (Lusternia) is giving me.
Can anyone help me out here ?
Regards,
Tom
P.S. My apologies if this has already been covered
somewhere, I've read several scripts but found no-one
that called OnPluginPartialLine from Python.
I'm a beginner in all this (this being MUSHclient, plugins/scripting and Python). I was trying to rewrite a couple of the VBscripts in Python ... and most of them go well, but I failed with the OnPluginPartialLine ...
I wrote the following :
import re
def OnPluginPartialLine(sText):
world.InfoClear ()
world.Info ("Before Compile - ")
myregexp = re.compile("^(.*?)h\, (.*?)m\ ex(.*?)\-$")
world.Info ("After Compile ")
mymatch = myregexp.match(str(sText))
And wanted to build on that ...
However, I'm getting Type Mismatch errors for every
line the MUD (Lusternia) is giving me.
Can anyone help me out here ?
Regards,
Tom
P.S. My apologies if this has already been covered
somewhere, I've read several scripts but found no-one
that called OnPluginPartialLine from Python.