by slowdive » Tue Jan 15, 2013 8:57 pm
Well, I haven't actually added any functions to the "script functions" class. I only have references to the game and form1 classes, which in turn have access to everything. This was a temporary way to get scripting working, but not very easy to use or understand for non coders. Once I add functions, it should be easier. For example, if you wanted to change the collision property of a square on another map or even the same map, a function would look like this:
sf.SetSquareCollidable("mainTown", 5, 10, false);
Would do the same as previous script