TopicInfoSetResponseStrings

From GECK
Jump to: navigation, search


A function added by the ShowOff NVSE Plugin version 1.30.

Description

Replaces the TopicInfo's Response strings with the contents of the newStrings array.

The array must be "array"-type. Each consecutive array element replaces the next Response string.

Syntax

[help]
(success:bool) TopicInfoSetResponseStrings TopicInfo:form newStrings:array

Example

array_var aArr = ar_list "test", "test two", "test 3.3"
TopicInfoSetResponseStrings E8911 aArr

Replaces the three response texts segments for the TopicInfo with the refID of E8911. The first response text is replaced with "test", the second with "test two", and the third with "test 3.3".

To verify the changes, one can call TopicInfoGetResponseStrings and dump the returned array. The array's contents should now be:

0.00 >> "test"
1.00 >> "test two"
2.00 >> "test TTW 3.3"
Array Size >> 3

See Also