SaveState and Plugins

Posted by WillFa on Sun 14 Aug 2005 09:00 PM — 2 posts, 8,872 views.

USA #0
Hey Nick (and all), remember me? The pain in the ass that asked you to put Python in Mushclient... ;)

I have had an alias that reverses a speedwalk for years, however, as I'm getting more and more speedwalks, my world file's getting rather cluttered and I'd like the speedwalks available to the different characters that I have on the mud.

Sounds like a good use for a plugin then, right? Compartmentalize the stuff, and share it between worlds... The issue I'm wondering about... Can SaveState add aliases (since a speedwalk is a type of alias) to a plugin, or have the plugin rewrite itself (ick?) to add more aliases as needed?

I thought about putting the new speedwalks into variables, but the thought of having the plugin grab every command entered to see if it's a defined variable sounds very ugly to me.

Any enlightenment is appreciated.
Australia Forum Administrator #1
Save state saves variables, not other things like aliases. However you could conceivably make an alias extend itself by saving newly added aliases as XML (into variables) and then re-import them next time you run it.