Difference between revisions of "Scripting Tutorial: My Second Script"

imported>Grosie
imported>Grosie
Line 35: Line 35:


'''Elster's Tip:''' I find, if I write my scripts in Notepad (or a similar plaintext editor - Word is a bad choice because of the margins), I can simply save it straight to my hard drive, and then copy and paste it into TES script editor when I'm finished with it.
'''Elster's Tip:''' I find, if I write my scripts in Notepad (or a similar plaintext editor - Word is a bad choice because of the margins), I can simply save it straight to my hard drive, and then copy and paste it into TES script editor when I'm finished with it.
'''Added by Grosie:''' The best thing is probably 'Notepad 2' as it automatically keeps the tabbed in formatting that is used for a clearer script. I also use Notepad 2 for a myriad of other things due to it's syntax hylighting and simplicity.


''Forward'' and ''Backward'' arrows jump to the next or previous script, respectively (in alphabetical order). If you give your scripts a common tag, that will make it easier to jump between the different scripts of your project. For example, my pseudonym is Grundulum, and he starts every script name with "GR_ShortReferencetoProject_", with that second part being a two or three letter reference to the current mod; this keeps all of the scripts you're working on neatly together. ''Compile all'' recompiles all scripts (what's this good for? Ghanburighan didn't know, and neither do I). It also adds every script in Oblivion to your mod, so you'll wind up with a 2MB esp file that conflicts with just about everything. Use this button sparingly, if ever.  Finally, the ''Delete'' button deletes a script, and the last ''Arrow down'' button closes the script window.
''Forward'' and ''Backward'' arrows jump to the next or previous script, respectively (in alphabetical order). If you give your scripts a common tag, that will make it easier to jump between the different scripts of your project. For example, my pseudonym is Grundulum, and he starts every script name with "GR_ShortReferencetoProject_", with that second part being a two or three letter reference to the current mod; this keeps all of the scripts you're working on neatly together. ''Compile all'' recompiles all scripts (what's this good for? Ghanburighan didn't know, and neither do I). It also adds every script in Oblivion to your mod, so you'll wind up with a 2MB esp file that conflicts with just about everything. Use this button sparingly, if ever.  Finally, the ''Delete'' button deletes a script, and the last ''Arrow down'' button closes the script window.
Anonymous user