How can you get the name of an actor in the message box?

Post » Wed Jun 20, 2012 4:38 am

sooo....


RandomActor = Game.FindRandomActorFromRef(PlayerRef, 2000)debug.messagebox("RandomActor")

This only gives you the ID number of the actor not their name. Is there a way to get the name?
User avatar
Andrea Pratt
 
Posts: 3396
Joined: Mon Jul 31, 2006 4:49 am

Post » Wed Jun 20, 2012 2:23 am

No way huh? Well, I guess I will make this a SKSE request then.
User avatar
Andrea P
 
Posts: 3400
Joined: Mon Feb 12, 2007 7:45 am

Post » Wed Jun 20, 2012 9:28 am


http://www.creationkit.com/Text_Replacement
User avatar
Far'ed K.G.h.m
 
Posts: 3464
Joined: Sat Jul 14, 2007 11:03 pm

Post » Wed Jun 20, 2012 8:31 am

This is not a quest:


RandomActor = Game.FindRandomActorFromRef(PlayerRef, 2000)
debug.messagebox("RandomActor")


If it can be used with Debug messages how would you phrase it then?

Not much on that pages made sense to me. I had read that page few days ago and thought that only pertained to quests and messages made in the CK .
(Not to Debug messages.)


But you are saying to do this:


debug.messagebox(Alias."RandomActor")


er...so that will work?









http://www.creationkit.com/Text_Replacement
User avatar
Jeneene Hunte
 
Posts: 3478
Joined: Mon Sep 11, 2006 3:18 pm

Post » Wed Jun 20, 2012 12:41 pm

I guess I will just try that

RandomActor = Game.FindRandomActorFromRef(PlayerRef, 2000)
debug.messagebox(Alias."RandomActor")

and see if it works then.
User avatar
David John Hunter
 
Posts: 3376
Joined: Sun May 13, 2007 8:24 am

Post » Wed Jun 20, 2012 2:31 am

No, it will not even compile.
User avatar
Rachel Cafferty
 
Posts: 3442
Joined: Thu Jun 22, 2006 1:48 am

Post » Wed Jun 20, 2012 6:00 am

No, this is right at the top of the list of things the SKSE team has said they'll be implementing: GetName() and SetName().

The closest you can come now, without SKSE, would be to start a quest with the player and an NPC as aliases, and fill the NPC alias via Find Matching Reference with the Closest in the Loaded Area. You could then use the name of that alias in situations like dialogue and messages that permit variable substitution. But that only works for unique actors, and would probably not be a good solution for anything that needs to be fast-paced.
User avatar
Meghan Terry
 
Posts: 3414
Joined: Sun Aug 12, 2007 11:53 am


Return to V - Skyrim