Jump to content

Script to check for favorite items Help needed.


Recommended Posts

Trying to identify if an item from a Formlist has been favorited by the player.
But...
The ck says "IsObjectFavorited is not a function or does not exist"

 

I'm using the same formlist in the same loop for various other operations all of which work as expected... so that's shouldn't be the problem...

This is just a snip-it of example code I'm trying to use...

Target is a Formlist...

int  iIndex = Target.GetSize()
While iIndex
    iIndex -= 1
    if game.IsObjectFavorited( Target.GetAt(iIndex)  )   
       DeBug.MessageBox("This item is a favourite of the player...")
    endif
endwhile

Anyone any idea how to get this to work please :smile:

 

 

 

{SOLVED}

SKSE scripts in wrong directory :whistling:

Edited by The-Wanderer
Link to comment
Share on other sites

Pleased to see it's resolved.

 

How goes things?

 

How's Miserith doing?

 

I haven't checked in to see it for a while. I'm testing a mod to death at the moment to see if it's fit to upload, so I've been playing virtually vanilla for a while to check it out at all levels.

 

Think I'll partly answer my own questions and go and check it out, as I type... well, slightly afterwards, but you get my drift.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...