TheWanderer001 Posted May 9, 2021 Author Share Posted May 9, 2021 (edited) Ah... just realised that Papyrus Extender is a mod... will need to check how to use it...and what players would also need to have for it to work... Edited May 9, 2021 by TheWanderer001 Link to comment Share on other sites More sharing options...
dylbill Posted May 9, 2021 Share Posted May 9, 2021 Yes, just install it and make sure the source scripts are in the right place. Then you can do If PO3_SKSEFunctions.IsQuestItem(DroppedObject) ;DroppedObejct is a quest item.Endif Edit: This will make papyrus extender a dependency for you mod. Link to comment Share on other sites More sharing options...
TheWanderer001 Posted May 9, 2021 Author Share Posted May 9, 2021 (edited) Okay... any downside you know of agianst using it? Other than players could be reluctant to install it. Had time to have alooksee what is in there... quite a few I think I would find useful :) Edited May 9, 2021 by TheWanderer001 Link to comment Share on other sites More sharing options...
TheWanderer001 Posted May 9, 2021 Author Share Posted May 9, 2021 Decisions, decisions... got 'PO3_SKSEFunctions.IsQuestItem()' to work... but have to decide if forcing the player to install papyrus extender just for this one function is worth it ??? Can't see any real dowside to not excluding quest items... some may even think this an advantage :)all my other option in this mod all include quest items. Hmm... I think I just answered my own question :DFor now I think I'll not include it. But thanks for pointing me in that direction :) Link to comment Share on other sites More sharing options...
dylbill Posted May 9, 2021 Share Posted May 9, 2021 No problem :) if SKSE is already a dependency, I don't really see a downside to using it. If SKSE isn't a dependency, requiring SKSE and Papyrus Extender for one function would be a bit much I think. Link to comment Share on other sites More sharing options...
TheWanderer001 Posted May 9, 2021 Author Share Posted May 9, 2021 Yeah... I don't see a downside either... but it is just the one function so for now I'll leave it out. I am looking at adding some sort of quest for this so it might become more of a most have with that...but that's for v2.0 :D And I'm sure it could be very useful in future mods as well. Link to comment Share on other sites More sharing options...
dylbill Posted May 9, 2021 Share Posted May 9, 2021 Yes it's good to know what's possible. I use Grepwin: https://tools.stefankueng.com/grepWin.html to search for functions. You can set it to your source folder and search all your source files at once, it finds each file that has the search text. For more skse functions the mods that come to mind are Papyrus Extender, PapyrusUtil, Skypal and RaceMenu. Link to comment Share on other sites More sharing options...
TheWanderer001 Posted May 9, 2021 Author Share Posted May 9, 2021 Thanks for the heads up :) grepWin appears to have a similar functionality as my File explorer 'xplorer2' in it's searchs. I've now found another problem though... I'm using the funtion 'Event OnClose()' but of course it only works in my test cell where the container is :(so need to find another way to detect when it's finished with...Tried the 'OnMenuClose()' setting up with "ContainerMenu" but can't get that to work... Link to comment Share on other sites More sharing options...
IsharaMeradin Posted May 10, 2021 Share Posted May 10, 2021 To get OnMenuClose to work with the "ContainerMenu" you need to first register for that menu. Example:Inside the OnInit event, the OnPlayerLoadGame event on a player alias, or inside a function on another script called within the OnPlayerLoadGame event. RegisterForMenu("ContainerMenu")Then you can use the actual event Event OnMenuClose(String MenuName) If (MenuName == "ContainerMenu" ;do something EndIf EndEventThe registration will remain across saves. The only reason to suggest using OnPlayerLoadGame is if this is a feature being added mid-game. Link to comment Share on other sites More sharing options...
TheWanderer001 Posted May 10, 2021 Author Share Posted May 10, 2021 (edited) umm... that's what I thought I was doing... but didn't work so I guess I must be doing something wrong :sad: will have to look at it again... Edited May 10, 2021 by TheWanderer001 Link to comment Share on other sites More sharing options...
Recommended Posts