Difference between revisions of "Portal:Scripting"
Jump to navigation
Jump to search
imported>Shademe (Removed the "To-Be Merged..." reminder) |
imported>Shademe m (→Basic Tutorials: Changed order of listing) |
||
Line 3: | Line 3: | ||
==Basic Tutorials== | ==Basic Tutorials== | ||
*[[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]] | ||
*[[Start Your Mod]] | *[[Start Your Mod]] | ||
Revision as of 04:33, 25 January 2009
Overview
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
- My First Spell - With script effects.
- My Second Script
- Start Your Mod
Functions
General Knowledge
- TES Files - Basic info about esp and esm files.
- Esp vs. Esm - Differences between esp and esm files.
- Modding Terminology - Advanced discussion of modding terms.
- Console Functions - Useful for playtesting.
Scripting Basics
- Basic Scripting Knowledge
- Commands
- Variables
- Using "If" Conditions
- Types of Scripts
- Object scripts
- Quest scripts
- Global Scripts -
(Should be merged with Quest scripts.) - Magic effect scripts
- Script Processing
Troubleshooting
Code Optimization
- CPU-usage of Functions - Lists of functions and their effects on performance; notes on which drop FPS the most, etc.
- Minimizing your Script - Tips to keep the number of functions used down, how often sections of your script run, and more.
- Script Comparison Tests - Comparisons of script snippets and/or functions.
Extensions and Libraries
- Oblivion Script Extender -
- Pluggy - Array, string, Ini functions.
- Tibixie's String Collection Function - String functions.
- Interfacing Pluggy and TSFC - Integrating string functions.
- ESM Math Library - Math functions as stage function library.
- Cobl - Common Oblivion.
Standard Solutions
The following are standard solutions for solving various types of problems.
- Activation Functions - Simulating a function by means of a activate call.
- Adaptive Mods - Adjust a mod for presence or absence of SI, OBSE, Patch v1.1, etc.
- Dynamically Adding Spells to Merchants
- Casting Spells From An Activator
- Custom Bound Items
- Distinguishing Between Physical and Magickal Hits
- GetActorType - Encode actor type (npc, creature, ghost, etc.) as a single number.
- Marker Rats - Using hidden actors as stable marker points.
- Inventory
- Drop All Items
- Generic Unequip - Remove an object from inventory without specifying its object id.
- Unplayable Items - Various uses of unplayable items.
- Walking Through Inventory Items
- Math Functions
- Messagebox Menus
- MessageBox Tutorial - Complicted messagebox and menu structures.
- Standard Menu UI - Menu triggers, options menus, hierarchical menus, number configuration, etc.
- Programmable Spell Effects - Beyond scripted spell effects.
- Reference Variables for Nearby Actors
- Remote Activators - Uses of activating remote objects.
- Rotating an object around another object with a script
- Running Scripts On Arrows
- Category:Stage Functions - Simulating a function by means of a setStage call.
- Stages Functions - (Needs to be merged with base article.)
- Summon Object - Summon (move) an existing object to position in front of player.
- Teleport Recall - Establishing a teleport recall point.
- Text Input
- Text Input With OBSE - Simulating a text input box (OBSE).
- Text Input With Pluggy - Pluggy based text input.
- Text Input With TSFC - TSFC based text input.
Deprecated Articles
- Dynamic Storage - General survey of arrays, linked lists, etc. in pre-pluggy world.
- Linked List Tutorial - Pre-pluggy approach to linked lists.