So, the simplest thing you can do is a script like this: var myFunc=function(){
}; then call like this: myFunc(); better would be to put them in an object, effectively namespacing them: var MyLibrary = {
myFunc: function(){
},
myOtherFunc(){
}
}; call like this: MyLibrary.myOtherFunc(); better still is to use the Revealing Module Patern: <a href="https://wiki.roll20.net/API:Cookbook#Revealing_Mod" rel="nofollow">https://wiki.roll20.net/API:Cookbook#Revealing_Mod</a>... If you want to see that in practice, look at pretty much any one of my full scripts. TurnMarker1 calls a function in GroupInitiative, just search for GroupInitiative in the code. Let me know if you need any help or code review.