I've got a plugin to parse ATCP codes sent by Lusternia. I want to pass the data I parse to world variables in one or more world files. Is there a way I can force the variables to go to the worlds?
Currently, I'm using an alias, i_setvar, to "fake it," but I'd like to be able to do this with a function. I think it might be possible to load a world object by GUID and set the variable through the object, but if there is an easier or more general solution, I'd really like to hear it. For example, I know that using GetPluginVariable with an empty first argument will grab a variable from the current world (which confuses me when multiple worlds are open), but I don't see an equivalent method for setting a variable in a particular plugin or world. What am I missing?
Currently, I'm using an alias, i_setvar, to "fake it," but I'd like to be able to do this with a function. I think it might be possible to load a world object by GUID and set the variable through the object, but if there is an easier or more general solution, I'd really like to hear it. For example, I know that using GetPluginVariable with an empty first argument will grab a variable from the current world (which confuses me when multiple worlds are open), but I don't see an equivalent method for setting a variable in a particular plugin or world. What am I missing?