Why doesn't this fragment show Notification?

Post » Tue Jan 28, 2014 8:31 am

Got a simple fragment on a quest which does exactly what it is supposed to - take a gold ingot from NPC inventory and put it in player's inventory but no notification is displayed which should be "Gold Ingot Added"

Alias_NPC.GetReference().RemoveItem(Alias_ingot.GetReference(), 1, False, Game.GetPlayer())

Why?

User avatar
Brian LeHury
 
Posts: 3416
Joined: Tue May 22, 2007 6:54 am

Post » Mon Jan 27, 2014 7:36 pm

I think it may be because removeItem() only sends a message to the actor whom the item is being removed from. Instead you could try:

Game.GetPlayer().AddItem(Alias_ingot.GetReference(), 1, False)

Which I think will do the trick.

User avatar
Rachie Stout
 
Posts: 3480
Joined: Sun Jun 25, 2006 2:19 pm

Post » Tue Jan 28, 2014 10:09 am

You may be right, if fact I'm sure. Thanks.

User avatar
LittleMiss
 
Posts: 3412
Joined: Wed Nov 29, 2006 6:22 am


Return to V - Skyrim