First, look through Hockeypanda32's tut.
Then, after making the script, save it, goto tools--->batch compiler-->browse through ur roms and choose the one u want to use--->check out the script u saved-->press compile---save again---press copy.
Then in A-Map, choose the person(if basic script), goto the offset that says: $000000. Highlight the 6 0s and paste the offset. Then press open script, click the picture of the gear next to the picture of the bug, and press save. Then press the picture of the bug, and press save.
Now, close out XSE, it'll ask u to save, say yes. Then save ur script on A-Map--->File---save as---then file again--->save.
Now test it out and see if it works.