Question Consistent item ID

Vanguard3000

Newcomer
I'm looking for some help with fixing up my Context-Sensitive Gift Cursor mod. Basically, it adds an icon to the cursor that will quickly show if an NPC will like an item you've got in hand. It wokrs well in general, but has some issues with nonstandard gift giving, including certain quests. Spoiler for specific quest example below:


The current code generally involves a check where I use
Code:
getGiftTasteForThisItem(Game1.player.ActiveObject)
to get the gift taste. What I would like to do for those edge cases is manually check the ActiveObject id and compare it against the quest target object id. If this is a match, then I can decide what to do with that info. The difficulty is that the quest object id isn't always exposed properly, which makes that check difficult to do. Or I'm just too dumb to do it, which is very possible.

Anyway, thanks for reading, and thanks in advance for any help you can provide!
 
Top