Well, you are working with a lot of variables here Charles. For basic map-script modding, you might want to take a look at the Tutorial section of these forums, see whats there, or see if there are some pointers from map makers in the Map Scripts section.
Second, you are dealing with some...