02.09.2013, 04:58
I usually have a "dummy" NPC that is connected only if constant "TESTING == 1" and is assigned an ID to a variable, similar to Cypress' method.
The good way to test your code is not ONLY testing if they work, but to try to NOT make it work! Try messing with your code, put yourself in the shoes of a malicious person trying to find an exploit. Break your own script first, and nobody will break it again later.
The good way to test your code is not ONLY testing if they work, but to try to NOT make it work! Try messing with your code, put yourself in the shoes of a malicious person trying to find an exploit. Break your own script first, and nobody will break it again later.