Difference between revisions of "Portal:Scripting"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Quetzilla
imported>Bruneauinfo
m (→‎Scripting Basics: May be a better name for this concept.)
 
(11 intermediate revisions by 3 users not shown)
Line 3: Line 3:


==Basic Tutorials==
==Basic Tutorials==
<div id="esstyle" style="float: right; width: 40%;">
<h2 class="header">Featured</h2>
[[Image:Scripttut2_testing2.JPG|thumb|right|The message box we wrote]]
==== My Second Script ====
While the '''My First Script''' tutorial is a good first taste of scripting for Oblivion, it does not appreciably demonstrate what the scripting language in Oblivion can do. It is a wonderful introduction for those who have never seen a programming or scripting language before, but a more in-depth tutorial would be helpful to further introduce modders to this amazing resource.
This tutorial has been largely adapted from GhanBuriGhan's excellent Morrowind Scripting for Dummies; all credit goes to GhanBuriGhan for his fantastic work on the original.
This tutorial is meant to be a more complete introduction to scripting for Oblivion than the My First Script tutorial, and assumes that the reader is already familiar with My First Script. If you do not understand the main points of that tutorial, you may find yourself in over your head here. If you're comfortable with My First Script, though, let's begin scripting!
{{break}}
<div style="text-align:right; padding: 2px;">[[Scripting Tutorial: My Second Script|Read more...]]</div>
</div>
*[[Scripting Tutorial: My First Spell|My First Spell]] - With script effects.
*[[Scripting Tutorial: My Second Script|My Second Script]]
*[[Scripting Tutorial: My Second Script|My Second Script]]
*[[Scripting Tutorial: My First Spell|My First Spell]] - With script effects.
*[[Start Your Mod]]
*[[Start Your Mod]]
*[[Scripting_Tutorial:_Creating_a_Simple_Timer|Creating a Simple Timer]]
*[[Scripting_Tutorial:_Modify_Weapon_On_Equip|Modify Weapon On Equip]]


==Functions==
==Functions==
Line 29: Line 46:
**[[Object scripts]]
**[[Object scripts]]
**[[Quest scripts]]  
**[[Quest scripts]]  
**[[Global Scripts]] - (Should be merged with [[Quest scripts]].)
**[[Global Scripts]]
**[[Magic effect scripts]]
**[[Magic effect scripts]]
*[[Script Processing]]
*[[Script Processing]]
*[[Cross Script Variables]]


==Troubleshooting==
==Troubleshooting==
Line 47: Line 65:


==Extensions and Libraries==
==Extensions and Libraries==
*[[Oblivion Script Extender]] -  
*[[Oblivion Script Extender]] - Oblivion scripting language extension.
**[[:Category:Pluggy|Pluggy]] - Array, string, Ini functions.
**[[:Category:TSFC|Tibixie's String Collection Function]] - String functions.
**[[Interfacing Pluggy and TSFC]] - Integrating string functions.
*[[ESM Math Library]] - Math functions as stage function library.
*[[ESM Math Library]] - Math functions as stage function library.
*[http://www.uesp.net/wiki/Tes4Mod:Cobl/Modding Cobl] - Common Oblivion.
*[http://www.uesp.net/wiki/Tes4Mod:Cobl/Modding Cobl] - Common Oblivion.

Latest revision as of 12:53, 30 December 2010

Overview[edit | edit source]

Scripts are used by modders to control the game in fairly direct ways and achieve effects that are far outside the normal scope of the game. If you're new to scripting, you should start at the top of the page, especially with the tutorials. If you're an experienced scripter, then the later parts of the page should be most useful.

Basic Tutorials[edit | edit source]

Featured

File:Scripttut2 testing2.JPG
The message box we wrote

My Second Script[edit | edit source]

While the My First Script tutorial is a good first taste of scripting for Oblivion, it does not appreciably demonstrate what the scripting language in Oblivion can do. It is a wonderful introduction for those who have never seen a programming or scripting language before, but a more in-depth tutorial would be helpful to further introduce modders to this amazing resource.

This tutorial has been largely adapted from GhanBuriGhan's excellent Morrowind Scripting for Dummies; all credit goes to GhanBuriGhan for his fantastic work on the original.

This tutorial is meant to be a more complete introduction to scripting for Oblivion than the My First Script tutorial, and assumes that the reader is already familiar with My First Script. If you do not understand the main points of that tutorial, you may find yourself in over your head here. If you're comfortable with My First Script, though, let's begin scripting!

Functions[edit | edit source]

General Knowledge[edit | edit source]

Scripting Basics[edit | edit source]

Troubleshooting[edit | edit source]

Code Optimization[edit | edit source]

Extensions and Libraries[edit | edit source]

Standard Solutions[edit | edit source]

The following are standard solutions for solving various types of problems.

Deprecated Articles[edit | edit source]