Creating a custom spell script The easiest way to do this is generally open the script that the spell you are copying references, copy it to a new file and modify the contents to suit your purposes.