This doesn't work:
It's probably a problem with globals in Python, and the way MUSHclient calls python scripts, but I can't think of a way around it, apart from using a 'Global Mushclient variable'.
It's part of a plugin, and I would like to keep it contained in the plugin, and not muck around with world variables. If I have no choise however, I have no choise, but I guessed someone may have found a way around it. If anyone could lend a hand, I would be most gratefull. If you need more information on the plugin, just ask, and I'll post the rest.
empties = 0
def addempty(theName, theOutput, wildcards):
global empties += 1
It's probably a problem with globals in Python, and the way MUSHclient calls python scripts, but I can't think of a way around it, apart from using a 'Global Mushclient variable'.
It's part of a plugin, and I would like to keep it contained in the plugin, and not muck around with world variables. If I have no choise however, I have no choise, but I guessed someone may have found a way around it. If anyone could lend a hand, I would be most gratefull. If you need more information on the plugin, just ask, and I'll post the rest.