Hey, @Justin! Sorry for the ping here.
But I was wondering if you had the chance to take a look at this post and your thoughts on this.
I understand that Global Functions are not really a front-facing feature in RPG in a Box, but I believe it should be.
I was talking with @Slayer in the Discord and he mentioned that the ability to define functions are tucked away and they (users) would have to be comfortable scripting to even know what they are for and how to use them.
I agree with him. The only way to also get someone to know what they are for and how to use them is to place the feature in front of the users. Get them (the user) familiar with functions, let them know they are just as powerful as scripts, and they can be used globally inside of your project's scripts.
A "Function Editor", similar to the Script Editor would be an awesome feature, making it more accessible to everyone.
Basically, just the "Script Editor" but it's the "Expanded Script Editor" with the Script Tools. Since I know the Bauxite code can be used within a function and the drag-and-drop feature would be awesome!
The option to define Global Functions is not documented. Users who do rely on the docs might not know it exists.
I personally didn't know it was possible, until I was clicking around the UI and found it the day I made this original post back on Nov 1st, 2024.
My original comment about the Global Functions was about being able to save the Global Functions even when empty. But after talking with Slayer about it, I think to shift the focus on getting Global Functions a spot in the front-end like Scripts.
Hoping this is planned for a future release, or even maybe just an upcoming release.
Edit: Similar to how Sherri mentioned above. it would help with reducing code duplication.
Before I started using Global Functions, I would define the same code in 2 to 3 scripts, which made it a hassle to update them all. Mentioned in Sherri at the end.
Sincerely,
@GregoryAM