icecreamassassin Posted November 10, 2016 Share Posted November 10, 2016 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? Link to comment Share on other sites More sharing options...
IsharaMeradin Posted November 10, 2016 Share Posted November 10, 2016 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. Link to comment Share on other sites More sharing options...
FrankFamily Posted November 10, 2016 Share Posted November 10, 2016 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_NONE1 REMOVE_TYPE_STOLEN2 REMOVE_TYPE_CONSUMED3 REMOVE_TYPE_SCRIPT4 REMOVE_TYPE_DROPPED5 REMOVE_TYPE_GIVEN6 REMOVE_TYPE_PUT_IN_CONTAINER7 REMOVE_TYPE_COUNT Maybe given is sold? worth a shot. Link to comment Share on other sites More sharing options...
icecreamassassin Posted November 10, 2016 Author Share Posted November 10, 2016 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? Link to comment Share on other sites More sharing options...
IsharaMeradin Posted November 10, 2016 Share Posted November 10, 2016 IsMenuOpen Link to comment Share on other sites More sharing options...
icecreamassassin Posted November 11, 2016 Author Share Posted November 11, 2016 sweet thanks Ish Link to comment Share on other sites More sharing options...
Recommended Posts