Space Engineers

Space Engineers

评价数不足
Consumable Loot Items (BB)
   
奖励
收藏
已收藏
取消收藏
Type: Mod
Mod category: Script, Other
标签: ServerScripts
文件大小
发表于
更新日期
592.470 KB
2023 年 1 月 15 日 上午 10:53
8 月 3 日 上午 2:39
18 项改动说明 ( 查看 )

订阅以下载
Consumable Loot Items (BB)

在 BookBurner 的 1 个合集中
Maintained/Created by BookBurner
27 件物品
描述
Does nothing unless configured (see below)

This mod adds the possibility to hook the spawn of random items into player inventory based on consumption of other consumable items. Thus allowing for having consumable cargo containers as loot, which spawn a range of different items based on the consumed item subtype.

This function can also be used to increase immersion, like shown on the images above. Creating empty tin cans from drinks, or "toys" from happy meals.

This script creates a new config file within your wold data on the first save: Consumables.xml

This file will contain a DefinitionList which you can then alter as you see fit.

<DefinitionList> <ConsumableDefinition> <ItemSubtype>CosmicCoffee</ItemSubtype> <-- consumed item <OnlyOnce>false</OnlyOnce> <-- true/false when set to true, only ONE spawn item will be triggered <OpenHelmet>true</OpenHelmet> <-- helmet will be opened on consumption <PlaySound>Drinking</PlaySound> <-- if defined the consumption will play the following audio <SpawnList> <-- list of items that can be given on consumption <SpawnItemDefinition> <-- single spawn item definition <ItemType>ore</ItemType> <-- type: ore/ingot/component/consumable/tool/talk/prefab <ItemSubtype>Gold</ItemSubtype> <-- subtype, message when itemType talk, prefab subtype if ItemType prefab <Chance>100</Chance> <-- chance to spawn from 1 -> 100 (percents) <MinAmount>10</MinAmount> <-- minimum amount given <MaxAmount>100</MaxAmount> <-- maximum amount given </SpawnItemDefinition> </SpawnList> </ConsumableDefinition> </DefinitionList>

Mod now includes several audio definitions with names: Drinking, Eating, Reading, Package, Smoke which can be used to play audio on consumption. But you can use any other audio definition name from anywhere in your modpack.

Two prefabs included in the pack (space and atmospheric gatling drone), Unpacked Drone Space & Unpacked Drone Atmo .

If you have further questions, you can visit my discord: https://discord.gg/6Gd6W8TcJb
12 条留言
BookBurner  [作者] 2 月 9 日 上午 8:54 
Galax, any time :) my mods are mostly geared for multiplayer, which is why I have so many configs everywhere :D
Galax 2 月 9 日 上午 8:02 
I found it, that is pretty simple. Honestly I operate normally with mods, and not with server file modifications, but OK. I will contact you later. Thx!
BookBurner  [作者] 2 月 9 日 上午 7:33 
Galax, there is a config file generated in the save's storage folder, you just add additional entries there. Visit my discord, I can show you the config file we use on our server :)
Galax 2 月 9 日 上午 3:41 
How can I add new options via mod? file type (.sbc,.ini, .whatever...) and format (header?) ?
Galax 2 月 9 日 上午 2:33 
Thanx!!
BookBurner  [作者] 2 月 8 日 下午 11:23 
Galax yes, it was made specifically for my dedicated :)
Galax 2 月 8 日 下午 10:17 
it looks great, gave me a lot of ideas... does it work on dedicated servers?
BookBurner  [作者] 2023 年 8 月 19 日 下午 12:38 
new configurable variables that allow one of the results be text returned to players within 500m in the chat.
BookBurner  [作者] 2023 年 7 月 5 日 上午 1:49 
yeah, I imagine it can bring more immersion into it :) low key zomboid vibe :D
Calmaria 2023 年 7 月 5 日 上午 1:34 
Empty Rifle magazines, Empty water bottles, (Im using VSE for food immersion) Ect. It bears thinking on, Thanks for making it!