Jump to content

Items stolen flag


Recommended Posts

  • Replies 44
  • Created
  • Last Reply

Top Posters In This Topic

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

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 by TheWanderer001
Link to comment
Share on other sites

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 :D

For now I think I'll not include it.

 

But thanks for pointing me in that direction :)

Link to comment
Share on other sites

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

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

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
EndEvent

The 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

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...