Difference between revisions of "ModName"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>WereWolf
imported>Haama
(Quotes for syntax)
Line 4: Line 4:


'''Syntax:'''
'''Syntax:'''
(nothing) ''reference.''ModName toReplaceAndReplaceWith:string ''toObject:ref''
(nothing) ''reference.''ModName "toReplaceAndReplaceWith:string" ''toObject:ref''


==Notes==
==Notes==

Revision as of 16:14, 12 September 2007

A command for Oblivion Script Extender

Modifies the name of the calling reference or passed objectID.

Syntax:

(nothing) reference.ModName "toReplaceAndReplaceWith:string" toObject:ref

Notes

  • The toReplaceAndReplaceWith string has the following format: "toReplace|replaceWith".
  • We will do a case insensitve search for the toReplace portion and if found will replace it with the replaceWith portion.
  • The | character is used to separate the portions of the string.
  • If there is nothing before the | character, the replaceWith string is prepended to the name.

See Also