Jump to content

Is there a way to include names in messages?


Jojash

Recommended Posts

I know that you can include the player's name, via "&PCName;", but I was wondering if you could add the names of specific references to a message. For example, if I set "Reginald" to "ReginaldRef", is there a command that I could use to make "Reginald" appear in a message, something like "&ReginaldRefName;"? Thank in advance!

Edited by Jojash
Link to comment
Share on other sites

The &PCName is a built in value for the player's name, so far as I know nothing else would work.

 

If you have the room in the scripts, and the messages are less than about 450 characters long, you might want to look at NVSEs MessageBoxEX. Using MessageBoxEX you can use the expanded format specifiers from NVSE, which include %n, which will replace the specifier with the name field of a passed in reference.

 

So to use that you'd have a line in your script like:

MessageBoxEX "Lorem ipsum %n" rNameVar
where rNameVar is a variable holding the reference you want to use the name of.

 

If you want more examples of how it's used, take a look at the scripts in my mod Vending Machines of the Wastes.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...