Huh, interesting! I’ll look into it. In the meantime it will work if the script references global variables, which you can set before calling the script.
Viewing post in Swap Tiles Plugin for GB Studio comments
First, thank you for making this. It simplifies the process a lot.
Just want to throw it out there that I'm experiencing the same issue with the method juicelink uses as well.
Referencing globals resolves it as you suggested, though this does end up creating a lot of extra global variables when trying to make a UI with numbers that change (displaying dynamic stats for example)
Being able to pass in variables, or even better, being able to set the Tile X and Tile Y to variables, would make this plugin even more useful.
Hi, yeah supporting properties is definitely something I want to implement. I might have to restructure the logic a little bit, but it’s definitely worth it.
custom scripts I’m a bit more worried about. It might just be a GB studio quirk where references to references just don’t work well in custom plugins.