I'm not sure exactly which part of the spec MUSHclient is not following, but I assume you are referring to this:
http://www.zuggsoft.com/zmud/mxp.htm#ENTITY
MXP spec said:
PUBLISH entities can be used by the client to produce a list of MUD Server variables to be access by the player
I note that you didn't mention "publish" in your example so I am guessing a bit here.
*Are* you referring to that? In which case a more complete example, mentioning the word "publish" would have helped.
I think the MXP spec has changed since I implemented it. I am getting a bit tired of having the spec change without me being informed, and then getting "bug" reports that some behaviour, of which I know nothing about, is not implemented.
In any case, I don't like the idea of the server randomly changing client variables. If you mean that your example should change the "hp" variable, what if the client was using that variable for some other purpose? And in the case of MUSHclient, you can have multiple plugins. Should the variable be changed in every plugin script space, or just the main world?
In the case of the "element" variable setting which I mentioned, I specifically prepended "mxp_" to the variable being set, in case that variable was used by the client for some other purpose.
Xtian said:
Of course I could work around that just for Mush, but I think it is a bug and I wanted to confirm and report it.
You don't need to work around it. MUSHclient and cMUD have different scripting anyway, so as long as the variable is accessible to the script, what do you need to worry about? You can hardly have identical scripts running on both clients, and since they have to differ, they can differ in the way they grab that variable. What is the problem exactly?
|