Difference between revisions of "Simulating new functions"

811 bytes added ,  17:28, 18 May 2006
added a note on the Library
imported>DragoonWraith
(removed Useful Code category, will be linked to by the Stage Function category.)
imported>JustTim
(added a note on the Library)
Line 6: Line 6:
When you call setStage in a script, the related stage result script will be executed immediately BEFORE the current script continues! This is therefore a great way to write immediately executing function calls!
When you call setStage in a script, the related stage result script will be executed immediately BEFORE the current script continues! This is therefore a great way to write immediately executing function calls!


I've spent MANY hours to advance this idea to a fully reusable function framework that can easily be used in your scripts. Here is what i came up with:
I've spent MANY hours to advance this idea to a fully reusable function framework that can easily be used in your scripts.


=== Setup ===
=== The easy way: Math Library ESM ===
The easiest way to use stage functions is by using [http://www.megamods.de/_data/parts/dl.php?file=68 this ESM Math Library]. It already contains all math functions listed in the [[stage_function_repository|Stage Function Repository]]. To use it copy the ESM file to your oblivion data folder and select it as an additional master file when loading your mod with the Construction Set. By doing this all the necessary setup steps are already done for you. All you need to do to use a function is to call it. You can also add new stages to the predefined function quest very easily in your mod without all the setup hassle.
Be aware that other users of your mod will need the Library too to run it.
 
Download: [http://www.megamods.de/_data/parts/dl.php?file=68 ESM Math Library v1.0].
 
=== Do it yourself: Setup ===


* Open any Plugin you wish or create a new one with the Construction Set
* Open any Plugin you wish or create a new one with the Construction Set
Anonymous user