Hey, all!
So, I'm having a bit of a problem- while making a script using one of SRD's scripts as a base, when I try to change the name plugin name within the code to match the new filename, the whole script breaks, and gives me a 'cannot read property 'match' of undefined' error. I'm aware that the obvious answer here is 'well then just don't do that', but I want to be able to differentiate between this code and the original variant. It shows up just fine in the plugin manager. Any suggestions?
var p = PluginManager.parameters("SRD_PKM_TrainerSprite"); <this works just fine in the original file, but not in this variant
var p = PluginManager.parameters("Enby_PKM_Trainer_Select"); <This is with the edited filename, but it doesn't work
\\ var p = PluginManager.parameters("Enby_PKM_Trainer_Select"); <neither does this but it at least doesn't crash the game
So, I'm having a bit of a problem- while making a script using one of SRD's scripts as a base, when I try to change the name plugin name within the code to match the new filename, the whole script breaks, and gives me a 'cannot read property 'match' of undefined' error. I'm aware that the obvious answer here is 'well then just don't do that', but I want to be able to differentiate between this code and the original variant. It shows up just fine in the plugin manager. Any suggestions?
var p = PluginManager.parameters("SRD_PKM_TrainerSprite"); <this works just fine in the original file, but not in this variant
var p = PluginManager.parameters("Enby_PKM_Trainer_Select"); <This is with the edited filename, but it doesn't work
\\ var p = PluginManager.parameters("Enby_PKM_Trainer_Select"); <neither does this but it at least doesn't crash the game