Jojash Posted February 22, 2013 Share Posted February 22, 2013 (edited) 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 February 22, 2013 by Jojash Link to comment Share on other sites More sharing options...
Gribbleshnibit8 Posted February 23, 2013 Share Posted February 23, 2013 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" rNameVarwhere 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 More sharing options...
Jojash Posted February 23, 2013 Author Share Posted February 23, 2013 Thank you so much! This is exactly what I was looking for! :D Link to comment Share on other sites More sharing options...
Recommended Posts