Trouble setting an icon for MessageEx

Post » Tue May 17, 2011 10:46 am

I'm having some trouble with a little bit of my code. I'm trying to get the icon path from a reference variable, for MessageEx. Here's the bit of code that's supposed to do that:

		string_var FoodIconPath		set FoodIconPath to GetTexturePath FoodRef		SetMessageIcon $FoodIconPath


(I use sv_destruct on FoodIconPath later on in thescript)

It doesn't set the icon. Instead, I get a scroll icon. What am I doing wrong?

Btw, I use OBSE 19 beta 4.
User avatar
GPMG
 
Posts: 3507
Joined: Sat Sep 15, 2007 10:55 am

Post » Tue May 17, 2011 11:43 am

Bump?

I've figured out that it isn't always a scroll icon. It always displays the icon from the last item added to the inventory. What am I doing wrong? Am I setting the strings wrong? I use FoodRef to show the item's name later in the script, which shows up exactly like it should. So what am I doing wrong?
User avatar
Chad Holloway
 
Posts: 3388
Joined: Wed Nov 21, 2007 5:21 am


Return to IV - Oblivion