Difference between revisions of "Cross Script Variables"
Found the solution!! Working on the article!!
imported>DragoonWraith (discussion tag) |
imported>Bruneauinfo (Found the solution!! Working on the article!!) |
||
|
{{Discussion}}
It is possible the time will come in writing a script for a mod when you will wish to have a repository to store variables in that can be read from and written to by any script. Fortunately this is quite possible. This article addresses a method for not only storing non-float numeric values, but also object references. This could prove very handy when creating dynamic game scenarios.
A basic scenario for creating and testing this type of functionality includes three parts.
1 - A quest script used to act as the database for storing the values. One might want to read over the following article to get familiar with [[Quest scripts]].
2 - A script that writes a value to one of the variables in the "database" Quest script when it is activated.
3 - A script that reads a value from one of the variables in the "database" Quest script when it is activated.
(note: i will finish this article later tonight!!)
===See Also===
*[[GetScriptValue]]
*[[GetGlobalValue]]
*[[GetQuestVariable]]
| |||