Jump to content

Conditional loot in any instance of a specific Container


ElijahHouck

Recommended Posts

Hi there!

 

For a quest I am implementing, I would like to have a specific loot item appear in any instance of a specific Container. For example, say I have this container:

 

zzzRaiderContainer_LargeRed_01

 

This container has 10 instances, spread throughout the world. Normally this would contain a standard raider loot set. However, during a specific quest, I want any zzzRaiderContainer_LargeRed_01 container to ALSO contain a specific item, zzzSpecialRaiderQuestItem01.

 

Is there a way to accomplish this? It doesn't seem leveled lists allow for conditional loot. I'm not sure if this is something the Story Manager can help with, as I've not touched it in a while. My only thought is that perhaps I could have a script attached to the Container form that calls AddItem in an OnLoad event for the container if we're at the correct quest step, but I'd like to hear if anyone else has other ideas.

 

Thanks! :)

Link to comment
Share on other sites

You can use AddForm() on an event cue like OnQuestInit() and then Revert() upon OnQuestShutdown().

 

https://www.creationkit.com/fallout4/index.php?title=AddForm_-_LeveledItem
https://www.creationkit.com/fallout4/index.php?title=Revert_-_LeveledItem
https://www.creationkit.com/fallout4/index.php?title=Quest_Script <--- lots of different types of events that might suit you better, like OnStageSet()

Link to comment
Share on other sites

You can use AddForm() on an event cue like OnQuestInit() and then Revert() upon OnQuestShutdown().

 

https://www.creationkit.com/fallout4/index.php?title=AddForm_-_LeveledItem

https://www.creationkit.com/fallout4/index.php?title=Revert_-_LeveledItem

https://www.creationkit.com/fallout4/index.php?title=Quest_Script <--- lots of different types of events that might suit you better, like OnStageSet()

Ah, right. Will these events be received on my Container objects even if my object is not currently loaded? (e.g. if Im several cells away, behind many load doors, etc.)

Link to comment
Share on other sites

Scripted AddItem/RemoveItem may be a more predictable approach as any containers in cells that have already loaded will have generated their level list contents which will not refresh until next cellreset.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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