Builder Bob
Live free or don't
- Reaction score
- 249
When I have multiple libraries and want one library to call a function from another library, how do I make sure the right library is above the other in the script?
make sure to import them in the right order and always set the library ids correctly.
Not using library ids is also what would break your other code.
Lesson learned:
Always use library ids.
I can't believe we have to import libraries in a specific order and not be able to swap them around afterwards... I'll try out the id's and see what they can do for me. Aren't id's only necessary for when [something] share the same name? Yeah, I haven't really looked into it.
You should only have to import them in a specific temporal order, the placement within the script should not be important.
I can't see why it was made this way. It's really annoying that I have to import things in one specific order, and not be able to swap things around whenever I see fit.
This thing was the same way in warcraft 3 before clever minds fixed it (A library could require other libraries), as well as so many other issues. It just amazes me how the same annoyances are seen again and again...
I can.
1. It was easy for Blizzard, eg, cheap to do.
2. Blizzard doesn't use that kind of functionality, so they don't need it.
Btw, it was not the same way with Wc3.
How was it different?