StrLoad

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

Syntax:

StrLoad loadFrom:string loadTo:stringID [quest:quest object]

Load a string previously saved to a script variable sequence to a string's value.

StrLoad looks for a variable with the name variableName in the current script (or quest if given).

It writes the first variable's value to the first character of the string, then the next variable to second character and so on until it finds a variable with the value 0.


Example:

short string

begin OnActivate
   set string to StrNew "DefaultName"
   StrLoad "nameStr0" string myQuest
   StrSetName string player
end