Hello The People.
I'm pretty new to Jass; have only been using it for a couple of weeks and not even scratched on using structs and libraries and such....I believe these are functions of vJass, right? Which is what I'm using.
I have a couple of functions I made that are particularly usefull and will be needed for more than 1 trigger but how can I pass their return to other triggers without creating a global? I'm guessing this is the purpose of structs/libraries.
So basicly I want to be able to call this function to get the return inside another function, outside of their trigger.
Could someone explain how I would do this?
I'm pretty new to Jass; have only been using it for a couple of weeks and not even scratched on using structs and libraries and such....I believe these are functions of vJass, right? Which is what I'm using.
I have a couple of functions I made that are particularly usefull and will be needed for more than 1 trigger but how can I pass their return to other triggers without creating a global? I'm guessing this is the purpose of structs/libraries.
So basicly I want to be able to call this function to get the return inside another function, outside of their trigger.
Could someone explain how I would do this?