Debug.Notification and Alias Names

Post » Thu Dec 03, 2015 4:57 pm

Hi

I like to show a debug.notification whenever my script does something for bug tracking (and a false sense of accomplishment :liplick: ).

I've set up a quest alias and would like to display via debug.notification the name of the NPC that fills that Alias but nothing seems to work. I'm not at my PC now but I've been trying this type of thing:

debug.notification("Alias X is filled by: "+Alias.GetReference()) -but this prints "Alias X is filled by: WIDeadbodyscript"

debug.notification("Alias X is filled by: "+GetName()) - this just returns a blank!

I suppose I can do it via adding a note to the player's inventory with the info (I think, I've not actually tried in yet) but I'm really stubborn.

I'm learning scripting, very early stages still, so any help would be great! Thanks.

User avatar
CxvIII
 
Posts: 3329
Joined: Wed Sep 06, 2006 10:35 pm

Post » Thu Dec 03, 2015 2:39 pm

debug.notification("Alias X is filled by: " +Alias.GetReference().GetName())
User avatar
Janette Segura
 
Posts: 3512
Joined: Wed Aug 22, 2007 12:36 am

Post » Thu Dec 03, 2015 3:30 pm

Hi, thanks. I've a feeling I've tried that but maybe in a script not attached to the quest which might be the problem. I'll try it next chance I get, thanks!

Edit: Just in case anyone's interested

debug.notification("Alias Set to: "+AliasName.GetReference().GetBaseObject().GetName())

User avatar
Holli Dillon
 
Posts: 3397
Joined: Wed Jun 21, 2006 4:54 am


Return to V - Skyrim