The function "isOwnedPet"

Information pulled from the demo.
Post Reply
User avatar
Grimoric
Site Admin
Posts: 2
Joined: Fri Oct 19, 2018 6:08 pm

The function "isOwnedPet"

Post by Grimoric » Sun Oct 21, 2018 7:18 am

The name has been used then someone tried to make the scripts easier to read. The issue is that the Shipplank script uses this name and call the script engine while the pet script is calling a function with the same name in its own script. It will work sins the Shipplank script don't find this function and will ask the engine while pet script find it and don't send the request to the engine. This was confusing to me in the beginning before I did figure it out, at the same time made me understand how the script engine utilizes the scripts. This explains why some scripts functions have the same name with different codes. This can be used as a fallback code or even for code with completely dependent purpose isolated in different scripts. The cleanup function is an example of this, it does Cleanup the script it is called from.

Post Reply