Background for Fallout 4
Member of the ObjectReference script
voidfunctionAddTextReplacementData(stringasTokenLabel, FormakForm)Native

Description

Wiki Description

Adds an association between the given string and the given form for text replacement usage.

Documentation Comment

Adds the given text replacement pair to this ref


Parameters

  1. stringasTokenLabel

    CK Wiki Description

    Label for token to be replaced

  2. FormakForm

    CK Wiki Description

    Form to use to replace token [NOTE:this does NOT work for references]


Examples

; Store data so <Token.Name=Owner> displays the name of the NPC in OwnerNPC
AddTextReplacementData("Owner", OwnerNPC)

Auto-Generated Example

string myString__asTokenLabel
Form myForm__akForm

myObjectReference__toCallFunctionOn.AddTextReplacementData(myString__asTokenLabel, myForm__akForm)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.