Difference between revisions of "StrSet"
Jump to navigation
Jump to search
rewrite
imported>Talkie Toaster |
imported>Tibixe (rewrite) |
||
Line 1: | Line 1: | ||
''' | '''Function:''' | ||
StrSet '' | StrSet ''stringToSet:stringID'' ''format:string'' [var1, var2, var3...] | ||
'''Example''' | '''Example''' | ||
StrSet ''sentence'' "The variable sentence will be set to this" | StrSet ''sentence'' "The variable sentence will be set to this" | ||
Sets the contents of the passed | 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]] |