Difference between revisions of "StrSet"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Talkie Toaster
imported>Tibixe
(rewrite)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
'''Syntax:'''
'''Function:'''
   StrSet ''StringRef:long'' "String"
   StrSet ''stringToSet:stringID'' ''format:string'' [var1, var2, var3...]


'''Example'''
'''Example'''
   StrSet ''sentence'' "Sentence will be set to this"  
   StrSet ''sentence'' "The variable sentence will be set to this"  


Sets the contents of the passed StringRef to the passed string. StrSet will overwrite any existing contents of the string.
Sets the contents of the passed stringID to the passed string. StrSet will overwrite any existing contents of the string.
 
StrSet can be used to embed numbers in strings, like the [[Message]], [[MessageBox]] and [[PrintToConsole]] functions. The only difference is that you have to use the '$' character instead of '%'.


[[Category: Functions (OBSE)]]
[[Category: Functions (OBSE)]]
[[Category: TSFC]]
[[Category: TSFC]]

Latest revision as of 11:40, 10 August 2007

Function:

 StrSet stringToSet:stringID format:string [var1, var2, var3...]

Example

 StrSet sentence "The variable sentence will be set to this" 

Sets the contents of the passed stringID to the passed string. StrSet will overwrite any existing contents of the string.

StrSet can be used to embed numbers in strings, like the Message, MessageBox and PrintToConsole functions. The only difference is that you have to use the '$' character instead of '%'.