i think if you download my game "quest for the cheat" that you can open up the scripts and look at them - i think...can anyone verify that...i think that its open source, but im not completely sure...but my scripts are pretty basic and not very advanced - i use the same old "tricks" you might say.
also, you could download an open source version on brian's short game "lockergnome quest" and you could look at some of the scripts there too.
hope that these help.