19,344
edits
Paradox-01 (talk | contribs) m (grrr) |
(→Editing Scripts: moving tip here from Modding Oni) |
||
Line 5: | Line 5: | ||
==Editing Scripts== | ==Editing Scripts== | ||
Scripts can be edited with the simplest of word-processing programs, such as the built-in WordPad (Windows) or TextEdit (Mac). They can be edited simply by typing inside the file. When saving, you must either ensure that the suffix is .bsl or that you use the suffix .txt and afterwards change it to .bsl. | Scripts can be edited with the simplest of word-processing programs, such as the built-in WordPad (Windows) or TextEdit (Mac). They can be edited simply by typing inside the file. When saving, you must either ensure that the suffix is .bsl or that you use the suffix .txt and afterwards change it to .bsl. In Windows, you may have to turn on the displaying of file extensions to see the suffix. | ||
- To learn BSL by example, you can read the .bsl files in Oni's IGMD folder and draw connections to the events in the game that were produced by those scripts.<br> | - To learn BSL by example, you can read the .bsl files in Oni's IGMD folder and draw connections to the events in the game that were produced by those scripts.<br> | ||
- For a primer in writing BSL, see the Tutorials section below.<br> | - For a primer in writing BSL, see the Tutorials section below.<br> | ||
- For a thorough listing of what's possible in BSL (a reference, not a primer), see the Knowledge Database below.<br> | - For a thorough listing of what's possible in BSL (a reference, not a primer), see the Knowledge Database below.<br> | ||
- Typing '''''dump_docs''''' in the game console will | - Typing '''''dump_docs''''' in the game console will generate the file '''script_commands.txt''' listing all BSL commands & variables. | ||
==Scripted Mods== | ==Scripted Mods== |