Jump to content

Recommended Posts

Posted

So I am trying to set up an event function that will set a quest stage when the player sells one of any number of unique items. Rather than setting up an alias and attaching to specific references or having the quest constantly refresh and re-define the alias to be the closest item on the list, is there any way to set up a OnSell event using a list of form items?

Posted

One possibility:

Using a player alias script with the OnItemRemoved event, check that the store UI is open and that the item removed is one on your list. When all is true set your quest stage.

Would require SKSE to determine if the store UI is active.

Posted

You could try using the story manager, i've literally only used the location change event but there is also player remove item that has ObjectForm and RemoveType parameters with the following posible values:

 

0 REMOVE_TYPE_NONE

1 REMOVE_TYPE_STOLEN

2 REMOVE_TYPE_CONSUMED

3 REMOVE_TYPE_SCRIPT

4 REMOVE_TYPE_DROPPED

5 REMOVE_TYPE_GIVEN

6 REMOVE_TYPE_PUT_IN_CONTAINER

7 REMOVE_TYPE_COUNT

 

Maybe given is sold? worth a shot.

Posted

Yeah doing an inventory event filter for the list and slapping an alias on the player would probably be the easiest (at least for me, I've never touched the story manager system and am a complete noob there).

 

What is the SKSE function for checking menu UI state?

  • Recently Browsing   0 members

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