Jump to content

Spawning a set amount of items for each large wood box in a raid

Closed 3.1.6

Officer Diggler
Officer Diggler

Posted

Hey,

I was wondering if you could tell me how I would go about making it so that EACH large wood box in a hard raid will spawn 18 items in it. So far I turned of the divide loot into all containers option and set the amount of items to spawn to 18. Upon reloading the plugin, I came across a large would box with 17 items, then all other boxes had nothing in them. I will include some of my config for hard base so you can take a look:


"Profile Enabled": true,
  "Maximum Land Level": 2.5,
  "Allow Players To Use MLRS": true,
  "Allow Third-Party Npc Explosive Damage To Bases": false,
  "Door Controller Requires Power Source": true,
  "Add Code Lock To Unlocked Or KeyLocked Doors": true,
  "Add Key Lock To Unlocked Or CodeLocked Doors": false,
  "Add Code Lock To Tool Cupboards": true,
  "Add Key Lock To Tool Cupboards": false,
  "Add Code Lock To Boxes": true,
  "Add Key Lock To Boxes": false,
  "Add Code Lock To Lockers": true,
  "Add Key Lock To Lockers": false,
  "Close Open Doors With No Door Controller Installed": true,
  "Allow Duplicate Items": false,
  "Allow Players To Pickup Deployables": false,
  "Allow Players To Deploy A Cupboard": false,
  "Allow Players To Deploy Barricades": true,
  "Allow PVP": true,
  "Allow Self Damage": true,
  "Allow Friendly Fire (Teams)": true,
  "Check Lower Probability Once Per Loot Item": false,
  "Amount Of Items To Spawn For Buyable Events (0 = Use Default Value)": 0,
  "Minimum Amount Of Items To Spawn (0 = Use Max Value)": 0,
  "Amount Of Items To Spawn": 18, <----- edited to 18 by me
  "Amount Of Items To Spawn Increased By Item Splits": false,
  "Use Primitive Loot From The Current Era": false,
  "Flame Turret Health": 300.0,
  "Items Always Take Condition Loss And Cannot Be Repaired": true,
  "Block Damage To Players From Player Turrets Deployed Outside Of The Dome": false,
  "Block Damage Outside Of The Dome To Players Inside": false,
  "Block Damage Outside Of The Dome To Bases Inside": false,
  "Block Damage Inside From Npcs To Players Outside": false,
  "Building Blocks Are Immune To Damage": false,
  "Building Blocks Are Immune To Damage (Twig Only)": false,
  "Turrets Can Hurt Event Twig": false,
  "Boxes Are Invulnerable": false,
  "Boxes Are Invulnerable Until Cupboard Is Destroyed": false,
  "Spawn Silently (No Notifcation, No Dome, No Map Marker)": false,
  "Hide Despawn Time On Map Marker (PVP)": false,
  "Hide Despawn Time On Map Marker (PVE)": false,
  "Use Simple Messaging": false,
  "Despawn Dropped Loot Bags From Raid Boxes When Base Despawns": false,
  "Despawn Dropped Loot Bags From Npc When Base Despawns": false,
  "Protect Loot Bags From Raid Boxes For X Seconds After Base Despawns": 0.0,
  "Divide Loot Into All Containers": false,  <------ was originally set to true, I set it to false
  "Drop Tool Cupboard Loot After Raid Is Completed": false,
  "Drop Container Loot X Seconds After It Is Looted": 60.0,
  "Drop Container Loot Applies Only To Boxes And Cupboards": true,
  "Create Dome Around Event Using Spheres (0 = disabled, recommended = 5)": 5,
  "Empty All Containers Before Spawning Loot": false,
  "Empty All Containers (Exclusions)": [
    "xmas_tree.deployed",
    "xmas_tree_a.deployed"

nivex

Posted (edited)

heya, no, this is not supported nor how the plugin works. it can work similar to that, but not exactly.

if you turn off divide loot then no loot can be divided into the containers; which is why you see it clumped up.

ensure there is sufficient loot in your loot tables
set Amount Of Items To Spawn to a realistic amount that can be divided into the boxes, including any from Additional Containers To Include As Boxes.
Allow Duplicate Items will not work when set to false if you do not have sufficient loot to meet the required amount from Amount Of Items To Spawn. if you require 300 items and have 100 items in your loot table then you will get exactly 100 items with Allow Duplicate Items set to false.
the plugin can divide loot into other containers first, prioritizing cupboard -> BBQ -> furnaces -> fridges -> weapon racks -> lockers depending on which is enabled.

tool cupboard: Move Resources Into Tool Cupboard / Resources Not Moved To Cupboards
BBQ and fridges: Move Food Into BBQ Or Fridge / Blacklist For BBQ And Fridge (with fake items as example)
Furnaces: Move Cookables Into Ovens, and can optionally add starting fuel with Furnace Starting Fuel
weapon racks: Move Weapons Onto Weapon Racks / Divide Weapon Rack Loot When Enabled
lockers; Move Items Into Lockers / Divide Locker Loot When Enabled

I don't really want to add a configurable limit with how many items go into each box when the above exists already and would only serve to conflate the amount. 🙂

I advise using the loot table editor, ensuring you have sufficient items, using Allow Duplicate Items set to true when there are not sufficient items, and ensuring a realistic amount is set with Amount Of Items To Spawn. this will allow you to get near your required 18 per box.

https://codefling.com/tools/raidable-bases-boats-loot-editor

 

Edited by nivex
Officer Diggler

Posted

I see ill turn on divide loot again and just increase the amount of items to spawn. For example, If it used to be at 30 for easy, then making it higher would mean more loot in all large would boxes correct?

nivex

Posted

hi, yes, but only if your loot tables have the required amount of loot in them. otherwise you need to enable Allow Duplicate Items

  • Like 1
Officer Diggler

Posted

Sounds good! Thank you for the help! You are good to close this if you want, if I need some more help ill make a new post 🙂
Have a nice night!

nivex

Posted

you're welcome, enjoy!

you too

  • Love 1
nivex

Posted

Changed Status from Pending to Closed

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.9m
Total downloads
Customers
11.9k
Customers served
Files Sold
168.5k
Total sales
Payments
3.7m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.