Difference between revisions of "Talk:OBSE Wish List"

Jump to navigation Jump to search
619 bytes added ,  22:53, 5 January 2007
other ways to do arrays and lists
imported>Tibixe
imported>Scruggs
(other ways to do arrays and lists)
Line 161: Line 161:


I noticed that there is an "Arrays" wish in the language enhancements. I think a possible (and easy to use) workaround would be using a ''Get/SetNthVariable'' function on a script, where there are variables listed as elements of the array. E.g. if I create a quest with the name ''arrayscript'', and declare 20 variables in it, then I could determine whether the 20 variables are in decreasing order or not, with using a Label+Goto loop, to check ''if GetNthVariable LoopCount arrayscript == GetNthVariable LoopCount+1 arrayscript'' in another script. [[User:Tibixe|Tibixe]] 13:05, 5 January 2007 (EST)
I noticed that there is an "Arrays" wish in the language enhancements. I think a possible (and easy to use) workaround would be using a ''Get/SetNthVariable'' function on a script, where there are variables listed as elements of the array. E.g. if I create a quest with the name ''arrayscript'', and declare 20 variables in it, then I could determine whether the 20 variables are in decreasing order or not, with using a Label+Goto loop, to check ''if GetNthVariable LoopCount arrayscript == GetNthVariable LoopCount+1 arrayscript'' in another script. [[User:Tibixe|Tibixe]] 13:05, 5 January 2007 (EST)
:That could be one way, although it would be extremely tedious to write out individual variables for each element of a sizable array; and multi-dimensional arrays would require some math on the scripter's part to figure out the index required for the variable.
:For what it's worth, there's a thread on the CS forum in which we've figured out how to implement linkless lists and vectors (extensible arrays) using inventories; a vector could also be used as the basis for a linked list. Discussion here: http://www.elderscrolls.com/forums/index.php?showtopic=614540 [[User:Scruggs|Scruggs]] 22:53, 5 January 2007 (EST)
Anonymous user

Navigation menu