Jump to content

Custom container for a fetch quest


mr.devolver

Recommended Posts

2 hours ago, mr.devolver said:

Normally you would get that courier's satchel to retrieve supplies from. Is it possible to create a custom container with custom loot for a fetch quest?

Havent tested but looks possible. In quests.xml:
 

		<objective type="FetchFromContainer">
			<property name="phase" value="3"/>
			<property name="quest_item_ID" value="1"/>
			<property name="item_count" value="1"/>
			<property name="default_container" value="cntFetchQuestSatchel"/>
			<property name="nav_object" value="fetch_container" />
		</objective>

		<quest_item id="2" name="questCassadoreSupplies" description_key="questSuppliesGroupDesc" icon="questCassadoreSupplies" icon_color="255,255,255"/>

So looks like you can create a block to replace the default_container (or just append to the fetchquestsatchel block's lootlist.), then create a new quest_item with id=3, then change the quest_item_ID value to 3 in the quest... Theoretically of course. :)

Link to comment
Share on other sites

41 minutes ago, Telric said:

Havent tested but looks possible. In quests.xml:
 


		<objective type="FetchFromContainer">
			<property name="phase" value="3"/>
			<property name="quest_item_ID" value="1"/>
			<property name="item_count" value="1"/>
			<property name="default_container" value="cntFetchQuestSatchel"/>
			<property name="nav_object" value="fetch_container" />
		</objective>


		<quest_item id="2" name="questCassadoreSupplies" description_key="questSuppliesGroupDesc" icon="questCassadoreSupplies" icon_color="255,255,255"/>

So looks like you can create a block to replace the default_container (or just append to the fetchquestsatchel block's lootlist.), then create a new quest_item with id=3, then change the quest_item_ID value to 3 in the quest... Theoretically of course. :)

Thanks, that's what I thought would work too, but for some reason, when I replaced default_container with my custom block (based on the original Courier's Satchel), regular Courier's Satchel was still there instead. I don't know why. :(

Link to comment
Share on other sites

2 hours ago, Telric said:

Well the block spawned in a poi will be from that helper block. So you sould have to add your new block to that helper.. that might work then.

I feel like I'm running in circles here. This time I tried to do this a little bit differently. I'm creating a new box for testing purpose and downgrading it to the block with the assigned loot list. At first it seemed to work, but I'm not getting the whole list of items in that box. I'm just getting one item from that list. I thought the count attribute of lootcontainer set to 1 was the issue, so I removed the attribute completely, thinking it might fix the problem, but it didn't fix it.

 

Is there no way to get a fixed list of items every time?

Link to comment
Share on other sites

You need to have count="all" in your lootgroup used for the container.

 

<lootgroup name="PewPewloot" count="all">
	<item name="gunPewPew" quality="6"/>
	<item name="ammoEC" count="100,200"/>
	<item name="casinoCoin" count="1000,5000"/>
</lootgroup>

 

Link to comment
Share on other sites

7 hours ago, bdubyah said:

You need to have count="all" in your lootgroup used for the container.

 


<lootgroup name="PewPewloot" count="all">
	<item name="gunPewPew" quality="6"/>
	<item name="ammoEC" count="100,200"/>
	<item name="casinoCoin" count="1000,5000"/>
</lootgroup>

 

 

Thanks, I will try it this way. I was throwing the items in through lootcontainer directly instead of lootgroup and that worked the way I described which is not what I wanted to achieve. So with your suggested method, I must craft a custom lootgroup and then throw that lootgroup into my own lootcontainer, is that right? Are there any specific settings I should put in my lootcontainer for this to work?

Link to comment
Share on other sites

You'll just need to assign the container a unique loot ID. Then in loot.xml, create your lootgroup like I posted above, then add it to the lootgroup for your container. You can look in The Wasteland's xmls for examples. The Nuka recipes and stuff would be similar to what you are doing. Or the PewPewloot from above.

Link to comment
Share on other sites

4 hours ago, bdubyah said:

You'll just need to assign the container a unique loot ID. Then in loot.xml, create your lootgroup like I posted above, then add it to the lootgroup for your container. You can look in The Wasteland's xmls for examples. The Nuka recipes and stuff would be similar to what you are doing. Or the PewPewloot from above.

Thank you again, you're my hero!

 

So while I couldn't figure out how to temporarily replace standard Courier's Satchel with my custom satchel that contains my custom loot, I settled for a less immersive option, but at least it's an option that works and of course I managed to make it finally work thanks to your help! :)

 

I think it's almost ready to go, I will clean up the code a little bit, test it to make sure everything works normally and I will release it. I will also mention that you helped me! ;)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...