Rei97 Posted September 3, 2019 Posted September 3, 2019 I am doing script and I need to get the name of the npc in my message, searching on google I found that to get the name of an npc I need to use "^NPC.Name", it happens that using it does not show the message just results in "% PC" This is what I put begin MyScript messagebox, "Hello my name is ^NPC.Name nice to meet you" StopScript MyScript end and this is the result in the game %PC One more thing, I am doing that in Morrowind Goty Edition, with TESConstructionSet, in a Script not in the result of a dialogue, I would greatly appreciate the help as I searched and found no solution, or if they might know another method of obtaining the name of an npc. :'3
Rei97 Posted September 4, 2019 Author Posted September 4, 2019 On 9/3/2019 at 8:39 PM, Oblivionaddicted said: Maybe do you need MWSE.Yes, in fact I already have it together with MGE XE but apparently that is not the problem, do you know of any other method of obtaining the name of the npc for messagebox?
Rei97 Posted September 4, 2019 Author Posted September 4, 2019 On 9/4/2019 at 7:50 AM, abot said: ^NPCNameI've tried it too, but it results %PCName
abot Posted September 4, 2019 Posted September 4, 2019 (edited) oh, then it must be simply: ^Name (%Name in dialog, ^Name is for MessageBox) ^PCName for player Edited September 4, 2019 by abot
Rei97 Posted September 5, 2019 Author Posted September 5, 2019 On 9/4/2019 at 11:48 AM, abot said: oh, then it must be simply:^Name (%Name in dialog, ^Name is for MessageBox) ^PCName for playerI also tried that, but putting it gives me the name of the player and not the npc, it's strange ...
Recommended Posts